主题:  请问这段代码如何定制?

楚楚

职务:普通成员
等级:1
金币:1.0
发贴:187
#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>



缺缺

职务:管理员
等级:8
金币:41.0
发贴:9620
#22004/12/23 11:05:23
var ExitWindow = window.open(exitURL,'');

参考一下window.open方法



楚楚

职务:普通成员
等级:1
金币:1.0
发贴:187
#32004/12/23 11:27:15
谢谢提醒。