点击电话号码拨打

html

<!-- 左侧定位开始 --> 
<div class="pcLeftD65">
    <div class="pcLefttel65">
        <img  src="http://bd.jgyljt.com/jgswt/img/pcFooter/pcLeftFree65.gif">
    </div>
    <div class="pcLeftkey65">
        <form action="" method="post" id="jgForm_1" onsubmit="return false;" class='pcLeftFo65' target='i'> <input type="tel" class="pcTel_in65"  class="guahao_int"  name="tell" placeholder="您的电话号码" autofocus="autofocus" >
            <table id="myTable" class="pcPho65">
                <tbody>
                    <tr>
                        <td class="pcLeftNum">1</td>
                        <td class="pcLeftNum">2</td>
                        <td class="pcLeftNum">3</td>
                    </tr>
                    <tr>
                        <td class="pcLeftNum">4</td>
                        <td class="pcLeftNum">5</td>
                        <td class="pcLeftNum">6</td>
                    </tr>
                    <tr>
                        <td class="pcLeftNum">7</td>
                        <td class="pcLeftNum">8</td>
                        <td class="pcLeftNum">9</td>
                    </tr>
                    <tr>
                        <td class="pcLeftNum">*</td>
                        <td class="pcLeftNum">0</td>
                        <td class="leftDel65"><img src="http://bd.jgyljt.com/jgswt/img/pcFooter/pcLeftclear65.png" style="display:inline-block;"></td>
                    </tr>
                </tbody>
            </table>
            <input type="submit" class="pcLeftSu65" name="说明" id="" value="" jgformname="jgForm_1" >
        </form>
    </div>
</div>
<script type="text/javascript">
    $(function(){
        $(".pcLefttel65").mouseover(function() {
            $(".pcLeftkey65").stop().animate({ "left": "0px" }, 1000)
            $(".pcLefttel65").hide(200);
        })
        $(".pcLeftkey65").mouseleave(function() {
                $(".pcLeftkey65").stop().animate({ "left": "-170px" }, 500)
                $(".pcLefttel65").show(800)
        })
    });
    $(".pcLeftNum").click(function(){
        let a=$(".pcTel_in65").val();
        let leftNum=$(this).html();
        $(".pcTel_in65").val(a+leftNum);
    })
    $(".leftDel65").click(function(){
        let a=$(".pcTel_in65").val();
        console.log(a.substr(0, a.length - 1));
        $(".pcTel_in65").val(a.substr(0, a.length - 1));
    })
</script>
<!-- 左侧定位结束 -->

css

    /*左侧定位开始*/
    .pcLeftD65{
        z-index:999;
    }
    .pcLefttel65{
        position: fixed;
        left:0px;
        top:200px;
        list-style:none;
        margin:0;
        padding:0;
        z-index:99;
    }
    .pcLeftkey65
    {
        background-image:url("http://bd.jgyljt.com/jgswt/img/pcFooter/pcLeftdianhua65.png");
        height: 340px;
        width: 170px;
        position: fixed;
        top:200px;
        list-style:none;
        margin:0;
        padding:0;
        left:-170px;
        z-index:9999;
    }
    .pcPho65{
        width:120px;
        height: 120px;
        table-layout: fixed;
        border-collapse: collapse;
        cursor:pointer;
    }
    .pcPho65 td,.first-table th{
        border:1px solid #ccc;
        text-align: center;
        font-weight:bold;
        color:#666;
        height: 30px;
    }
    .pcLeftFo65{
        margin-top: 100px;
        margin-left: 25px;
    }
    .pcTel_in65{
        outline:none;
        padding-left:5px;
        box-sizing:border-box;
        width: 120px;
        height:26px;
        font-size:14px;
    }
    .pcLeftSu65{
        outline:none;
        border:0;
        margin-top: 10px;
        height: 24px;
        width: 119px;
        background:url("http://bd.jgyljt.com/jgswt/img/pcFooter/pcLeftHui65.png") no-repeat;
        background-size:100% 100%;
    }
/*左侧定位结束*/

转载于:https://www.cnblogs.com/1666818961-lxj/p/9366843.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值