弹出窗口中的javascript或jQuery图像 [英] javascript or jQuery image on popUp
本文介绍了弹出窗口中的javascript或jQuery图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如果您知道如何执行类似此的操作,
我的意思是如何加载javascript或jQuery popUp图像onLoad(一次),以及如何将其链接到其他地方,请帮助我=(
非常感谢...
Hi,
If you know about how to do something like this,
I mean how to load a javascript or jQuery popUp image onLoad (once) and how can i link it to somewhere else, please help me =(
Thanks a lot...
推荐答案
在jQuery文档中包含的以下文章中的代码示例对此进行了解释:
http://www.queness.com/post/77/simple-jquery-modal- window-tutorial [^ ],
http://webcloud.se/log/Building-modal-panels-with-jQuery/ [ ^ ],
http://web.enavu.com/tutorials/how -to-make-a-completely-reusable-jquery-modal-window/ [ http://en.lmgtfy.com/?q=jQuery+modal+面板 [ ^ ].
—SA
This is explained with code samples in these articles included in jQuery documentation:
http://www.queness.com/post/77/simple-jquery-modal-window-tutorial[^],
http://webcloud.se/log/Building-modal-panels-with-jQuery/[^],
http://web.enavu.com/tutorials/how-to-make-a-completely-reusable-jquery-modal-window/[^].
The feature in those code samples are different, find what you prefer. You can probably find a lot more: http://en.lmgtfy.com/?q=jQuery+modal+panel[^].
—SA
尝试以下方法:
http://geekswithblogs.net/vladimirl/archive/2009/12/20/jquery-simple-modal-plugin.aspx [ ^ ]
http://blogs.cametoofar.com/post/jQuery-Context-Menu-and-Modal-Popup-Extender-in-ASPNET.aspx [
Try these:
http://geekswithblogs.net/vladimirl/archive/2009/12/20/jquery-simple-modal-plugin.aspx[^]
http://blogs.cametoofar.com/post/jQuery-Context-Menu-and-Modal-Popup-Extender-in-ASPNET.aspx[^]
hope it helps :)
Head Tag
The Head Tag
<script src="http://code.jquery.com/jquery-latest.pack.js"></script>
<script type="text/javascript" language="javascript">
var expDays = 1;
function GetCookie(name) {
var arg = name + "=";
var alen = arg.length;
var clen = document.cookie.length;
var i = 0;
while (i < clen) {
var j = i + alen;
if (document.cookie.substring(i, j) == arg)
return getCookieVal(j);
i = document.cookie.indexOf(" ", i) + 1;
if (i == 0) break;
}
return null;
}
function SetCookie(name, value) {
var argv = SetCookie.arguments;
var argc = SetCookie.arguments.length;
var expires = (argc > 2) ? argv[2] : null;
var path = (argc > 3) ? argv[3] : null;
var domain = (argc > 4) ? argv[4] : null;
var secure = (argc > 5) ? argv[5] : false;
document.cookie = name + "=" + escape(value) +
((expires == null) ? "" : ("; expires=" + expires.toGMTString())) +
((path == null) ? "" : ("; path=" + path)) +
((domain == null) ? "" : ("; domain=" + domain)) +
((secure == true) ? "; secure" : "");
}
function DeleteCookie(name) {
var exp = new Date();
exp.setTime(exp.getTime() - 1);
var cval = GetCookie(name);
document.cookie = name + "=" + cval + "; expires=" + exp.toGMTString();
}
var exp = new Date();
exp.setTime(exp.getTime() + (expDays * 24 * 60 * 60 * 1000));
function amt() {
var count = GetCookie('count')
if (count == null) {
SetCookie('count', '1')
return 1
} else {
var newcount = parseInt(count) + 1;
DeleteCookie('count')
SetCookie('count', newcount, exp)
return count
}
}
function getCookieVal(offset) {
var endstr = document.cookie.indexOf(";", offset);
if (endstr == -1)
endstr = document.cookie.length;
return unescape(document.cookie.substring(offset, endstr));
}
function checkCount() {
var count = GetCookie('count');
if (count == null) {
count = 1;
SetCookie('count', count, exp);
//window.open(page, "", windowprops);
//
popUpAc();
//
} else {
count++;
SetCookie('count', count, exp);
}
}
window.onload = checkCount;
function popUpAc() {
var id = "#fbAcilis";
var maskHeight =
这篇关于弹出窗口中的javascript或jQuery图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文