当前位置: 编程技术>jquery
jquery弹窗代码示例
来源: 互联网 发布时间:2014-10-09
本文导语: 1,jquery脚本,弹窗代码。 代码示例: $('.popup').click(function (event) { event.preventDefault(); var iTop = (window.screen.height-30-600)/2; var iLeft = (window.screen.width-10-850)/2; window.open($(this).attr("href"), "popupWindow", "width=850,height=600,top="+iTop+",left...
1,jquery脚本,弹窗代码。
代码示例:
$('.popup').click(function (event) {
event.preventDefault();
var iTop = (window.screen.height-30-600)/2;
var iLeft = (window.screen.width-10-850)/2;
window.open($(this).attr("href"), "popupWindow", "width=850,height=600,top="+iTop+",left="+iLeft+",scrollbars=yes");
});
例子: