杀破狼巷战被美国fbi:我想用下面的代码把论坛变成1024*768的,请问具体怎么用?

来源:百度文库 编辑:查人人中国名人网 时间:2024/05/15 03:53:40
我的论坛是窄版面的,我从网上找到一段代码,我想用下面的代码把论坛变成1024*768的,请问具体怎么用?谢谢!(已经有人更改成功了)

下面是复制网上的原文:

这段代码是为了适应不同分辨率而添加的,希望大家看懂后再修改。
//------------- width
var bgwidth;
if((screen.width==640)&&(screen.height==480))
bgwidth=600;
else if((screen.width==800)&&(screen.height==600))
bgwidth=760;
else if((screen.width==1024)&&(screen.height==768))
bgwidth=980;
else bgwidth=980;
document.write("<IFRAME marginWidth=0 marginHeight=0 src=\"about:blank\" frameBorder=0 width="+bgwidth+" scrolling=no height=0></IFRAME>");

//------------- width
var bgwidth;
if((screen.width==1024)&&(screen.height==768))
bgwidth=980;
else bgwidth=980;
document.write("<IFRAME marginWidth=0 marginHeight=0 src=\"about:blank\" frameBorder=0 width="+bgwidth+" scrolling=no height=0></IFRAME>");