$(".a_test").attr({"href":"javascript:void(0);"}).bind("click",function(){
$(this).newWindow({
windowTitle:$(this).attr("ct"),
content: "<iframe scrolling='no' width='95%' frameborder='0' src='Test.aspx'></iframe>",
windowType: "iframe",
width:450,
height:350,
backgroundable:true
});
})大家好,上面是我绑定newWindow的代码.
页面上有多个class包含a_test的对象,可是这些对象只能在点第二次才可以出现弹出层,有没有方法可以只点一次就可以出来.因为页面上的a_test 比较多,所以我不想一个一个去写.
$(this).newWindow({
windowTitle:$(this).attr("ct"),
content: "<iframe scrolling='no' width='95%' frameborder='0' src='Test.aspx'></iframe>",
windowType: "iframe",
width:450,
height:350,
backgroundable:true
});
})大家好,上面是我绑定newWindow的代码.
页面上有多个class包含a_test的对象,可是这些对象只能在点第二次才可以出现弹出层,有没有方法可以只点一次就可以出来.因为页面上的a_test 比较多,所以我不想一个一个去写.
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货