二十四孝的小故事:JS“打开新窗口”代码问题

来源:百度文库 编辑:神马品牌网 时间:2024/05/03 21:09:54
<script type="text/javascript">
function openIT() {
theURL="main.html"
wname ="CHROMELESSWIN"
W=1;
H=1;
windowCERRARa = "img/close_a.gif"
windowCERRARd = "img/close_d.gif"
windowCERRARo = "img/close_o.gif"
windowNONEgrf = "img/none.gif"
windowCLOCK = "img/clock.gif"
windowREALtit = " Stink Net...Design in Netjoin.net..."
windowTIT = "<font face=verdana size=1> Stink Net...Design in Netjoin.net... </font>"
windowBORDERCOLOR = "#000000"
windowBORDERCOLORsel = "#999999"
windowTITBGCOLOR = "#999999"
windowTITBGCOLORsel = "#333333"
openchromeless(theURL, wname, WIDTH, HEIGHT, windowCERRARa, windowCERRARd, windowCERRARo, windowNONEgrf, windowCLOCK, windowTIT, windowREALtit , windowBORDERCOLOR, windowBORDERCOLORsel, windowTITBGCOLOR, windowTITBGCOLORsel)
}
</script>

谁能帮我分析一下这段代码?
主要告诉我在哪调整宽度高度就行!
参数如何修改成固定值

二楼的还是不行。。。

W=1;
H=1;

把:W=1; H=1里的W和H分别改成:WIDTH, HEIGHT。

WIDTH=1;
HEIGHT=1;

改了以后修改WIDTH和HEIGHT两个值就可以改变高度和宽度了。