查看: 1351|回复: 2

[其他求助] 为什么点第一个能弹出框,后面的都不再弹出了啊

[复制链接]
发表于 2013-12-2 17:00:37 | 显示全部楼层 |阅读模式
列表页信息,为什么点每页的第一个信息能弹出联系方式框,但是点击后面的几个都不弹出联系方式框了啊?



代码如下,请高手看看谢谢!

<p class="bddh_span yahei">
<span class="bdanniu songti"><a onclick="_hmt.push(['_trackEvent', 'shouye', 'call', 'chanpin-1']);" href="javascript:void(0);" id="inside">联系方式</a></span>
</p>

<!--联系方式弹出框开始-->
<div id="box" style="display:none;">
  <div class="mainlist">
    <ul>
       姓名******
       电话******
    </ul>
  </div>
</div>
<!--弹出框结束-->

<!-- 弹出层-->
<style type="text/css">
*{margin:0;padding:0;list-style-type:none;}
a,img{border:0;}
.mainlist{padding:10px;}
.mainlist li{height:32px;line-height:32px;font-size:14px;}
.mainlist li span{margin:0 5px 0 0;font-family:"宋体";font-size:14px;font-weight:200;color:#ddd;}
/* Button base */
.Button{
        position:relative;
        display:inline-block;
        padding:.45em .825em .45em;
        text-align:center;
        line-height:1em;
        border:1px solid transparent;
        cursor:pointer;
         
        border-radius:.3em;
        -moz-border-radius:.3em;
        -webkit-border-radius:.3em;
       
        -moz-transition-property:color, -moz-box-shadow, text-shadow;
        -moz-transition-duration:.05s;
        -moz-transition-timing-function:ease-in-out;
        -webkit-transition-property:color, -webkit-box-shadow, text-shadow;
        -webkit-transition-duration:.05s;
        -webkit-transition-timing-function:ease-in-out;
       
        box-shadow:0 1px rgba(255,255,255,0.8), inset 0 1px rgba(255,255,255,0.35);
        -moz-box-shadow:0 1px rgba(255,255,255,0.8), inset 0 1px rgba(255,255,255,0.35);
        -webkit-box-shadow:0 1px rgba(255,255,255,0.8), inset 0 1px rgba(255,255,255,0.35);
}

.Button:hover {text-decoration:none;}
.Button strong {position:relative; z-index:2;}

.Button{
        display:block;border:1px solid;opacity:1;color:#fff;font-size:22px;width:240px;text-decoration:none;margin:20px auto;
       
        border-radius:.3em;
        -moz-border-radius:.3em;
        -webkit-border-radius:.3em;
       
        box-shadow:inset 0 1px rgba(255,255,255,0.35);
        -moz-box-shadow:inset 0 1px rgba(255,255,255,0.35);
        -webkit-box-shadow:inset 0 1px rgba(255,255,255,0.35);
       
        -moz-transition-propertypacity;
        -moz-transition-duration:0.5s;
        -moz-transition-timing-function:ease-in-out;
        -webkit-transition-property:opacity;
        -webkit-transition-duration:0.5s;
        -webkit-transition-timing-function:ease-in-out;
}

.Button:hover span{
        -moz-transition-property:opacity;
        -moz-transition-duration:0.05s;
        -moz-transition-timing-function:linear;
        -webkit-transition-property:opacity;
        -webkit-transition-duration:0.05s;
        -webkit-transition-timing-function:linear;
}
.Button:active span{
        -moz-transition:none;
        -webkit-transition:none;
}

/* blue Button */
.blueButton{color:#fcf9f9; text-shadow:0 -1px rgba(34,25,25,0.5);}
.blueButton:hover {color:#fff; text-shadow:0 -1px rgba(34,25,25,0.3);}
.blueButton:active {color:#f2f0f0; text-shadow:0 -1px rgba(34,25,25,0.6);}

.blueButton{
        border-color:#015E91;
        background-color:#3693D5;
        background:-moz-linear-gradient(center top , #54B1EB, #47A0E0 50%, #419FE1 50%, #3683D5);
        background:-o-linear-gradient(top left, #54B1EB, #47A0E0 50%, #419FE1 50%, #3683D5);
        background:-webkit-gradient(linear, 0% 0%, 0% 100%, from(#54B1EB), to(#47A0E0), color-stop(.5,#419FE1),color-stop(.5,#3683D5));
        filter:progidXImageTransform.Microsoft.gradient(startColorstr='#54B1EB', endColorstr='#3683D5');
}

.blueButton:hover{
        border-color:#0366AD;
        background-color:#3EA1D6;
        background:-moz-linear-gradient(center top, #5EB4EA, #61A1EE 50%, #59A5EB 50%, #3691E6);
        background:-o-linear-gradient(top left, #5EB4EA, #61A1EE 50%, #59A5EB 50%, #3691E6);
        background:-webkit-gradient(linear, 0% 0%, 0% 100%, from(#5EB4EA), to(#61A1EE), color-stop(.5,#59A5EB),color-stop(.5,#3691E6));
        filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#5EB4EA', endColorstr='#3691E6');
}

.blueButton:active{
        border-color:#013B6A;
        background-color:#3089C8;
        background:-moz-linear-gradient(center top, #4B9CDD, #4189D5 50%, #3D8BD3 50%, #3093C8);
        background:-o-linear-gradient(top left, #4B9CDD, #4189D5 50%, #3D8BD3 50%, #3093C8);
        background:-webkit-gradient(linear, 0% 0%, 0% 100%, from(#4B9CDD), to(#4189D5), color-stop(.5,#3D8BD3),color-stop(.5,#3093C8));
        filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#4B9CDD', endColorstr='#3093C8');
}

.blueButton.Button18:hover{
        box-shadow:0 1px rgba(255, 255, 255, 0.8), 0 1px rgba(255, 255, 255, 0.35) inset, 0 0 10px rgba(82, 162, 235, 0.25);
        -moz-box-shadow:0 1px rgba(255, 255, 255, 0.8), 0 1px rgba(255, 255, 255, 0.35) inset, 0 0 10px rgba(82, 162, 235, 0.25);
        -webkit-box-shadow:0 1px rgba(255, 255, 255, 0.8), 0 1px rgba(255, 255, 255, 0.35) inset, 0 0 10px rgba(82, 162, 235, 0.25);
}
.blueButton.Button18:active{
        box-shadow:0 1px 2px rgba(34, 25, 25, 0.25) inset, 0 0 3px rgba(82, 202, 235, 0.35);
        -moz-box-shadow:0 1px 2px rgba(34, 25, 25, 0.25) inset, 0 0 3px rgba(82, 202, 235, 0.35);
        -webkit-box-shadow:0 1px 2px rgba(34, 25, 25, 0.25) inset, 0 0 3px rgba(82, 202, 235, 0.35);       
}
</style>
<link href="http://www.3g210.com/lzq_3g210/image/jquery-webox.css" rel="stylesheet" type="text/css">
<script src="http://www.3g210.com/lzq_3g210/js/jquery.js"></script>
<script src="http://www.3g210.com/lzq_3g210/js/jquery-webox.js"></script>
<script type="text/javascript">
$(document).ready(function(){
        //内嵌弹出层调用
        $('#inside').click(function(){
                $.webox({
                        height:190,
                        width:290,
                        bgvisibel:true,
                        title:'联系方式',
                        html("#box").html()
                });
        });       
})
</script>
<!-- 弹出层完-->
 楼主| 发表于 2013-12-2 21:32:03 | 显示全部楼层
顶起求解决
回复 支持 反对

使用道具 举报

发表于 2013-12-2 21:51:46 | 显示全部楼层
现在都用jquery了,此类插件一箩筐,再不济用artdialog也行啊.
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 点击这里注册

本版积分规则

小黑屋|Archiver|phpcms网站管理系统 ( 京ICP备14011169 )

GMT+8, 2019-6-20 19:21 , Processed in 0.293725 second(s), 9 queries , Memcache On.

Powered by Discuz! X3.2

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表