#12004/12/23 10:42:28
红色的字部分,我想让弹出来的窗口是定制的,比如没有地址栏之内。不知该如何写:
<script language="javascript">
function setCookie(name, value, expire) {
window.documents.cookie = name + "=" + escape(value) + ((expire == null) ? "" : ("; expires=" + expire.toGMTString()));
}
function getCookie(Name) {
var search = Name + "=";
if (window.documents.cookie.length > 0) { // if there are any cookies
offset = window.documents.cookie.indexOf(search);
if (offset != -1) { // if cookie exists
offset += search.length; // set index of beginning of value
end = window.documents.cookie.indexOf(";", offset) // set index of end of cookie value
if (end == -1)
end = window.documents.cookie.length;
return unescape(window.documents.cookie.substring(offset, end));
}
}
return null;
}
function register(name) {
var today = new Date();
var expires = new Date();
expires.setTime(today.getTime() + 1000*60*60*24);
setCookie("i2xe", name, expires);
}
var exitURL="http://www.7788ok.com/21cn2.htm";
function openWin() {
var c = getCookie("i2xe");
if (c != null) {
return;
}
register("i2xe");
self.focus();
var ExitWindow = window.open(exitURL,'');
ExitWindow.focus();
}
</script>