网页设计常用的一些技巧
程序员文章站
2022-07-11 18:39:27
各种用途的按钮
各种用途的按钮
<!--脚本说明:
把如下代码加入<body>区域中:-->
<form>
<p>
<input type="button" value="返回" name="button" class="pt9">
<input type="button" name="view" value="查看本例的源码" view-source:" +window.location.href" class="pt9">
</p>
</form>
<form>
<p><input type="button" value="返回上一步" ></p>
</form>
<form>
<p><input type="button" value="刷新按钮一" ></p>
</form>
<script language="javascript"><!--
function reloadbutton(){location.href="allbutton.htm";}
// --></script>
<form>
<p><input type="button" value="刷新按钮二" > </p>
</form>
<form>
<p><input type="button" value="回首页按钮" ></p>
</form>
<script language="javascript"><!--
function homebutton(){location.href="http://vinterest.568idc.com";}/ // --></script>
<form>
<p><input type="button" value="弹出警告框" ></p>
</form>
<script language="javascript"><!--
function alertbutton(){window.alert("要多多光临呀!");}
// --></script>
<form>
<p><input type="button" value="状态栏信息" ></p>
</form>
<script language="javascript"><!--
function statusbutton(){window.status="要多多光临呀!";}
// --></script>
<form>
<p><input type="button" value="背景色变换" ></p>
</form>
<script>function bgbutton(){
if (document.bgcolor=='#00ffff')
{document.bgcolor='#ffffff';}
else{document.bgcolor='#00ffff';}
} </script>
<form>
<p><input type="button" value="打开新窗口" ></p>
</form>
<script language="javascript"><!--
function newwindow(){window.open("test.htm","","height=240,width=340,status=no,location=no,toolbar=no,directories=no,menubar=no");}
// --></script>
个非常漂亮的下拉列表框
<html>
<head>
<title></title>
<script language=javascript>
function getselected()
{ return hddl.innertext
} function hddl_onmousemove()
{ window.event.cancelbubble = true
}
function ddli_onmousemove()
{ window.event.cancelbubble = true
}
function ddli_onmouseover(item)
{ item.style.color = ddl_hfc
item.style.backgroundcolor = ddl_hbc
}
function ddli_onmouseout(item)
{ item.style.color = ddl_fgc
item.style.backgroundcolor = ddl_bgc
}
function ddli_onclick(item)
{ hddl.innertext = item.innertext
ddl.style.display = "none"
alert("you click " + item.innertext + "!")
}
function document_onmousemove()
{ ddl.style.display = "none"
}
function ddl_onmousemove()
{ window.event.cancelbubble = true
}
function hddl_onclick()
{ ddl.style.posleft = hddl.offsetleft
ddl.style.postop = hddl.offsettop + hddl.offsetheight
ddl.style.display = "block"
}
function writedropdownlist()
{
document.write("<span id=hddl")
document.write(" style="background-color: " + ddl_bgc + ";")
document.write(" border-bottom: " + ddl_bc + " " + ddl_bw + " solid;")
document.write(" border-left: " + ddl_bc + " " + ddl_bw + " solid;")
document.write(" border-right: " + ddl_bc + " " + ddl_bw + " solid;")
document.write(" border-top: " + ddl_bc + " " + ddl_bw + " solid;")
document.write(" padding-left: 10px; color: " + ddl_fgc + ";")
document.write(" cursor: hand; position: absolute;")
document.write(" left: " + ddl_left + "; top: " + ddl_top + "; width: " + ddl_width + """)document.write(" language="javascript"")
document.write(" ")
document.write(" >")
document.write(dropdownlistdata[0] + "</span>")
document.write("<span style="background-color: " + ddl_bgc + ";")
document.write(" background-image: url(imageddlpic.gif); cursor: hand;")document.write(" position: absolute; top: " + (ddl_top + ddl_bw) + ";")document.write(" left: " + (ddl_left + ddl_width - ddl_bw - ddl_picw) + ";")document.write(" width: " + ddl_picw + ";")
document.write(" background-repeat: no-repeat"")
document.write(" language="javascript"")
document.write(" ")
document.write(" >")
document.write("</span>")
document.write("<div id=ddl")
document.write(" style ="background-color: " + ddl_bgc + ";")
document.write(" border-bottom: " + ddl_bc + " " + ddl_bw + " solid;")
document.write(" border-left: " + ddl_bc + " " + ddl_bw + " solid;")
document.write(" border-right: " + ddl_bc + " " + ddl_bw + " solid;")
document.write(" border-top: " + ddl_bc + " " + ddl_bw + " solid;")
document.write(" display: none; position: absolute;")
document.write(" left: 10px; height: 99px; top: 124px; width: " + ddl_width + """)document.write(" language="javascript"")
document.write(" >")
var i
for(i=0; i<dropdownlistdata.length; i++)
{ document.write("<span id=ddli" + i)
document.write(" style="background-color: " + ddl_bgc + "; cursor: hand;")document.write(" color: " + ddl_fgc + "; padding-left: 10px; width: " + (ddl_width - 2 * ddl_bw) + """)document.write(" language="javascript"")
document.write(" + i + ")"")document.write(" + i + ")"")
document.write(" + i + ")"")
document.write(" >")
document.write(dropdownlistdata + "</span><br>")
} document.write("</div>")
}
document.onmousemove = document_onmousemove
var dropdownlistdata = new array()
var ddl_bgc = "papayawhip"
var ddl_fgc = "green"
var ddl_hbc = "orange"
var ddl_hfc = "red"
var ddl_bc = "red"
var ddl_bw = 1
var ddl_width = 90
var ddl_top = 100
var ddl_left = 80
var ddl_picw = 15
dropdownlistdata[0] = "item0"
dropdownlistdata[1] = "item1"
dropdownlistdata[2] = "item2"
dropdownlistdata[3] = "item3"
dropdownlistdata[4] = "item4"
writedropdownlist()
</script>
</head>
<body>
<p><input type="button" value="selected" id=button1 name=button1
language=javascript
></p>
<p>下拉列表框演示程序:</p>
<label id=l1>
</label>
</body>
</html>
鼠标右键绝对禁止法
softet
<script language="javascript">
<!--
if (window.event)
document.captureevents(event.mouseup);
function nocontextmenu()
{ event.cancelbubble = true
event.returnvalue = false;
return false;
}
function norightclick(e)
{ if (window.event)
{ if (e.which == 2 || e.which == 3)
return false;
} else
if (event.button == 2 || event.button == 3)
{
event.cancelbubble = true
event.returnvalue = false;
return false;
}
}
document.oncontextmenu = nocontextmenu; // for ie5+
document.onmousedown = norightclick; // for all others
//-->
</script>
dreamweaver定制网页过渡功能:
首先用dreamweaver打开页面,然后单击菜单中的insert\head\meta(插入/文件头标签/meta).
在对话框中的attribute选项的下拉列表中选http-equivalent选项,在value:中键入page-enter,表示进入网页时有网页过渡效果。在content:中键入revealtrans(duration=6,transition=2),duration=6表示网页过渡效果的延续时间为6秒,transition表示过渡效果方式,值为2时表示圆形收缩。
输入完后单击确定,存盘。这样当我们点击一个超链接进入这个页面时就可以看到效果了。另外还有二十多种效供你选择,只要将transition的值改为相应的效果的代号即可,具体效果和设置如下表所示:
效果 content transitionv
盒状收缩 revealtrans 0
盒状展开 revealtrans 1
圆形收缩 revealtrans 2
圆形展开 revealtrans 3
向上擦除 revealtrans 4
向下擦除 revealtrans 5
向左擦除 revealtrans 6
向右擦除 revealtrans 7
垂直百页窗 revealtrans 8
水平百页窗 revealtrans 9
横向棋盘式 revealtrans 10
纵向棋盘式 revealtrans 11
溶解 revealtrans 12
左右向中部收缩 revealtrans 13
中部向左右展开 revealtrans 14
上下向中部收缩 revealtrans 15
中部向上下展开 revealtrans 16
阶梯状向左下展开 revealtrans 17
阶梯状向左上展开 revealtrans 18
阶梯状向右下展开 revealtrans 19
阶梯状向右上展开 revealtrans 20
随机水平线 revealtrans 21
随机垂直线 revealtrans 22
随机 revealtrans 23
加到文字中间,以显示倒计时。
<script>
var url = "html/index.html"; {'html/index.html'为转到页面}
var loctime = 9; {9=9秒}
timedown.innerhtml = loctime;
var gourl = setinterval("downtimes()",1000);
function downtimes(){
loctime--;
timedown.innerhtml= loctime;
if(loctime <= 0){
clearinterval(gourl);
window.location = url;
}
}
</script>
然后把
<span id="timedown"></span>
又一个一个非常漂亮的下拉列表框
<html>
<head>
<title></title>
<script language=javascript>
function getselected()
{ return hddl.innertext
} function hddl_onmousemove()
{ window.event.cancelbubble = true
}
function ddli_onmousemove()
{ window.event.cancelbubble = true
}
function ddli_onmouseover(item)
{ item.style.color = ddl_hfc
item.style.backgroundcolor = ddl_hbc
}
function ddli_onmouseout(item)
{ item.style.color = ddl_fgc
item.style.backgroundcolor = ddl_bgc
}
function ddli_onclick(item)
{ hddl.innertext = item.innertext
ddl.style.display = "none"
alert("you click " + item.innertext + "!")
}
function document_onmousemove()
{ ddl.style.display = "none"
}
function ddl_onmousemove()
{ window.event.cancelbubble = true
}
function hddl_onclick()
{ ddl.style.posleft = hddl.offsetleft
ddl.style.postop = hddl.offsettop + hddl.offsetheight
ddl.style.display = "block"
}
function writedropdownlist()
{
document.write("<span id=hddl")
document.write(" style="background-color: " + ddl_bgc + ";")
document.write(" border-bottom: " + ddl_bc + " " + ddl_bw + " solid;")
document.write(" border-left: " + ddl_bc + " " + ddl_bw + " solid;")
document.write(" border-right: " + ddl_bc + " " + ddl_bw + " solid;")
document.write(" border-top: " + ddl_bc + " " + ddl_bw + " solid;")
document.write(" padding-left: 10px; color: " + ddl_fgc + ";")
document.write(" cursor: hand; position: absolute;")
document.write(" left: " + ddl_left + "; top: " + ddl_top + "; width: " + ddl_width + """)document.write(" language="javascript"")
document.write(" ")
document.write(" >")
document.write(dropdownlistdata[0] + "</span>")
document.write("<span style="background-color: " + ddl_bgc + ";")
document.write(" background-image: url(imageddlpic.gif); cursor: hand;")document.write(" position: absolute; top: " + (ddl_top + ddl_bw) + ";")document.write(" left: " + (ddl_left + ddl_width - ddl_bw - ddl_picw) + ";")document.write(" width: " + ddl_picw + ";")
document.write(" background-repeat: no-repeat"")
document.write(" language="javascript"")
document.write(" ")
document.write(" >")
document.write("</span>")
document.write("<div id=ddl")
document.write(" style ="background-color: " + ddl_bgc + ";")
document.write(" border-bottom: " + ddl_bc + " " + ddl_bw + " solid;")
document.write(" border-left: " + ddl_bc + " " + ddl_bw + " solid;")
document.write(" border-right: " + ddl_bc + " " + ddl_bw + " solid;")
document.write(" border-top: " + ddl_bc + " " + ddl_bw + " solid;")
document.write(" display: none; position: absolute;")
document.write(" left: 10px; height: 99px; top: 124px; width: " + ddl_width + """)document.write(" language="javascript"")
document.write(" >")
var i
for(i=0; i<dropdownlistdata.length; i++)
{ document.write("<span id=ddli" + i)
document.write(" style="background-color: " + ddl_bgc + "; cursor: hand;")document.write(" color: " + ddl_fgc + "; padding-left: 10px; width: " + (ddl_width - 2 * ddl_bw) + """)document.write(" language="javascript"")
document.write(" + i + ")"")document.write(" + i + ")"")
document.write(" + i + ")"")
document.write(" >")
document.write(dropdownlistdata + "</span><br>")
} document.write("</div>")
}
document.onmousemove = document_onmousemove
var dropdownlistdata = new array()
var ddl_bgc = "papayawhip"
var ddl_fgc = "green"
var ddl_hbc = "orange"
var ddl_hfc = "red"
var ddl_bc = "red"
var ddl_bw = 1
var ddl_width = 90
var ddl_top = 100
var ddl_left = 80
var ddl_picw = 15
dropdownlistdata[0] = "item0"
dropdownlistdata[1] = "item1"
dropdownlistdata[2] = "item2"
dropdownlistdata[3] = "item3"
dropdownlistdata[4] = "item4"
writedropdownlist()
</script>
</head>
<body>
<p><input type="button" value="selected" id=button1 name=button1
language=javascript
></p>
<p>下拉列表框演示程序:</p>
<label id=l1>
</label>
</body>
</html>
<!--脚本说明:
把如下代码加入<body>区域中:-->
<form>
<p>
<input type="button" value="返回" name="button" class="pt9">
<input type="button" name="view" value="查看本例的源码" view-source:" +window.location.href" class="pt9">
</p>
</form>
<form>
<p><input type="button" value="返回上一步" ></p>
</form>
<form>
<p><input type="button" value="刷新按钮一" ></p>
</form>
<script language="javascript"><!--
function reloadbutton(){location.href="allbutton.htm";}
// --></script>
<form>
<p><input type="button" value="刷新按钮二" > </p>
</form>
<form>
<p><input type="button" value="回首页按钮" ></p>
</form>
<script language="javascript"><!--
function homebutton(){location.href="http://vinterest.568idc.com";}/ // --></script>
<form>
<p><input type="button" value="弹出警告框" ></p>
</form>
<script language="javascript"><!--
function alertbutton(){window.alert("要多多光临呀!");}
// --></script>
<form>
<p><input type="button" value="状态栏信息" ></p>
</form>
<script language="javascript"><!--
function statusbutton(){window.status="要多多光临呀!";}
// --></script>
<form>
<p><input type="button" value="背景色变换" ></p>
</form>
<script>function bgbutton(){
if (document.bgcolor=='#00ffff')
{document.bgcolor='#ffffff';}
else{document.bgcolor='#00ffff';}
} </script>
<form>
<p><input type="button" value="打开新窗口" ></p>
</form>
<script language="javascript"><!--
function newwindow(){window.open("test.htm","","height=240,width=340,status=no,location=no,toolbar=no,directories=no,menubar=no");}
// --></script>
个非常漂亮的下拉列表框
<html>
<head>
<title></title>
<script language=javascript>
function getselected()
{ return hddl.innertext
} function hddl_onmousemove()
{ window.event.cancelbubble = true
}
function ddli_onmousemove()
{ window.event.cancelbubble = true
}
function ddli_onmouseover(item)
{ item.style.color = ddl_hfc
item.style.backgroundcolor = ddl_hbc
}
function ddli_onmouseout(item)
{ item.style.color = ddl_fgc
item.style.backgroundcolor = ddl_bgc
}
function ddli_onclick(item)
{ hddl.innertext = item.innertext
ddl.style.display = "none"
alert("you click " + item.innertext + "!")
}
function document_onmousemove()
{ ddl.style.display = "none"
}
function ddl_onmousemove()
{ window.event.cancelbubble = true
}
function hddl_onclick()
{ ddl.style.posleft = hddl.offsetleft
ddl.style.postop = hddl.offsettop + hddl.offsetheight
ddl.style.display = "block"
}
function writedropdownlist()
{
document.write("<span id=hddl")
document.write(" style="background-color: " + ddl_bgc + ";")
document.write(" border-bottom: " + ddl_bc + " " + ddl_bw + " solid;")
document.write(" border-left: " + ddl_bc + " " + ddl_bw + " solid;")
document.write(" border-right: " + ddl_bc + " " + ddl_bw + " solid;")
document.write(" border-top: " + ddl_bc + " " + ddl_bw + " solid;")
document.write(" padding-left: 10px; color: " + ddl_fgc + ";")
document.write(" cursor: hand; position: absolute;")
document.write(" left: " + ddl_left + "; top: " + ddl_top + "; width: " + ddl_width + """)document.write(" language="javascript"")
document.write(" ")
document.write(" >")
document.write(dropdownlistdata[0] + "</span>")
document.write("<span style="background-color: " + ddl_bgc + ";")
document.write(" background-image: url(imageddlpic.gif); cursor: hand;")document.write(" position: absolute; top: " + (ddl_top + ddl_bw) + ";")document.write(" left: " + (ddl_left + ddl_width - ddl_bw - ddl_picw) + ";")document.write(" width: " + ddl_picw + ";")
document.write(" background-repeat: no-repeat"")
document.write(" language="javascript"")
document.write(" ")
document.write(" >")
document.write("</span>")
document.write("<div id=ddl")
document.write(" style ="background-color: " + ddl_bgc + ";")
document.write(" border-bottom: " + ddl_bc + " " + ddl_bw + " solid;")
document.write(" border-left: " + ddl_bc + " " + ddl_bw + " solid;")
document.write(" border-right: " + ddl_bc + " " + ddl_bw + " solid;")
document.write(" border-top: " + ddl_bc + " " + ddl_bw + " solid;")
document.write(" display: none; position: absolute;")
document.write(" left: 10px; height: 99px; top: 124px; width: " + ddl_width + """)document.write(" language="javascript"")
document.write(" >")
var i
for(i=0; i<dropdownlistdata.length; i++)
{ document.write("<span id=ddli" + i)
document.write(" style="background-color: " + ddl_bgc + "; cursor: hand;")document.write(" color: " + ddl_fgc + "; padding-left: 10px; width: " + (ddl_width - 2 * ddl_bw) + """)document.write(" language="javascript"")
document.write(" + i + ")"")document.write(" + i + ")"")
document.write(" + i + ")"")
document.write(" >")
document.write(dropdownlistdata + "</span><br>")
} document.write("</div>")
}
document.onmousemove = document_onmousemove
var dropdownlistdata = new array()
var ddl_bgc = "papayawhip"
var ddl_fgc = "green"
var ddl_hbc = "orange"
var ddl_hfc = "red"
var ddl_bc = "red"
var ddl_bw = 1
var ddl_width = 90
var ddl_top = 100
var ddl_left = 80
var ddl_picw = 15
dropdownlistdata[0] = "item0"
dropdownlistdata[1] = "item1"
dropdownlistdata[2] = "item2"
dropdownlistdata[3] = "item3"
dropdownlistdata[4] = "item4"
writedropdownlist()
</script>
</head>
<body>
<p><input type="button" value="selected" id=button1 name=button1
language=javascript
></p>
<p>下拉列表框演示程序:</p>
<label id=l1>
</label>
</body>
</html>
鼠标右键绝对禁止法
softet
<script language="javascript">
<!--
if (window.event)
document.captureevents(event.mouseup);
function nocontextmenu()
{ event.cancelbubble = true
event.returnvalue = false;
return false;
}
function norightclick(e)
{ if (window.event)
{ if (e.which == 2 || e.which == 3)
return false;
} else
if (event.button == 2 || event.button == 3)
{
event.cancelbubble = true
event.returnvalue = false;
return false;
}
}
document.oncontextmenu = nocontextmenu; // for ie5+
document.onmousedown = norightclick; // for all others
//-->
</script>
dreamweaver定制网页过渡功能:
首先用dreamweaver打开页面,然后单击菜单中的insert\head\meta(插入/文件头标签/meta).
在对话框中的attribute选项的下拉列表中选http-equivalent选项,在value:中键入page-enter,表示进入网页时有网页过渡效果。在content:中键入revealtrans(duration=6,transition=2),duration=6表示网页过渡效果的延续时间为6秒,transition表示过渡效果方式,值为2时表示圆形收缩。
输入完后单击确定,存盘。这样当我们点击一个超链接进入这个页面时就可以看到效果了。另外还有二十多种效供你选择,只要将transition的值改为相应的效果的代号即可,具体效果和设置如下表所示:
效果 content transitionv
盒状收缩 revealtrans 0
盒状展开 revealtrans 1
圆形收缩 revealtrans 2
圆形展开 revealtrans 3
向上擦除 revealtrans 4
向下擦除 revealtrans 5
向左擦除 revealtrans 6
向右擦除 revealtrans 7
垂直百页窗 revealtrans 8
水平百页窗 revealtrans 9
横向棋盘式 revealtrans 10
纵向棋盘式 revealtrans 11
溶解 revealtrans 12
左右向中部收缩 revealtrans 13
中部向左右展开 revealtrans 14
上下向中部收缩 revealtrans 15
中部向上下展开 revealtrans 16
阶梯状向左下展开 revealtrans 17
阶梯状向左上展开 revealtrans 18
阶梯状向右下展开 revealtrans 19
阶梯状向右上展开 revealtrans 20
随机水平线 revealtrans 21
随机垂直线 revealtrans 22
随机 revealtrans 23
加到文字中间,以显示倒计时。
<script>
var url = "html/index.html"; {'html/index.html'为转到页面}
var loctime = 9; {9=9秒}
timedown.innerhtml = loctime;
var gourl = setinterval("downtimes()",1000);
function downtimes(){
loctime--;
timedown.innerhtml= loctime;
if(loctime <= 0){
clearinterval(gourl);
window.location = url;
}
}
</script>
然后把
<span id="timedown"></span>
又一个一个非常漂亮的下拉列表框
<html>
<head>
<title></title>
<script language=javascript>
function getselected()
{ return hddl.innertext
} function hddl_onmousemove()
{ window.event.cancelbubble = true
}
function ddli_onmousemove()
{ window.event.cancelbubble = true
}
function ddli_onmouseover(item)
{ item.style.color = ddl_hfc
item.style.backgroundcolor = ddl_hbc
}
function ddli_onmouseout(item)
{ item.style.color = ddl_fgc
item.style.backgroundcolor = ddl_bgc
}
function ddli_onclick(item)
{ hddl.innertext = item.innertext
ddl.style.display = "none"
alert("you click " + item.innertext + "!")
}
function document_onmousemove()
{ ddl.style.display = "none"
}
function ddl_onmousemove()
{ window.event.cancelbubble = true
}
function hddl_onclick()
{ ddl.style.posleft = hddl.offsetleft
ddl.style.postop = hddl.offsettop + hddl.offsetheight
ddl.style.display = "block"
}
function writedropdownlist()
{
document.write("<span id=hddl")
document.write(" style="background-color: " + ddl_bgc + ";")
document.write(" border-bottom: " + ddl_bc + " " + ddl_bw + " solid;")
document.write(" border-left: " + ddl_bc + " " + ddl_bw + " solid;")
document.write(" border-right: " + ddl_bc + " " + ddl_bw + " solid;")
document.write(" border-top: " + ddl_bc + " " + ddl_bw + " solid;")
document.write(" padding-left: 10px; color: " + ddl_fgc + ";")
document.write(" cursor: hand; position: absolute;")
document.write(" left: " + ddl_left + "; top: " + ddl_top + "; width: " + ddl_width + """)document.write(" language="javascript"")
document.write(" ")
document.write(" >")
document.write(dropdownlistdata[0] + "</span>")
document.write("<span style="background-color: " + ddl_bgc + ";")
document.write(" background-image: url(imageddlpic.gif); cursor: hand;")document.write(" position: absolute; top: " + (ddl_top + ddl_bw) + ";")document.write(" left: " + (ddl_left + ddl_width - ddl_bw - ddl_picw) + ";")document.write(" width: " + ddl_picw + ";")
document.write(" background-repeat: no-repeat"")
document.write(" language="javascript"")
document.write(" ")
document.write(" >")
document.write("</span>")
document.write("<div id=ddl")
document.write(" style ="background-color: " + ddl_bgc + ";")
document.write(" border-bottom: " + ddl_bc + " " + ddl_bw + " solid;")
document.write(" border-left: " + ddl_bc + " " + ddl_bw + " solid;")
document.write(" border-right: " + ddl_bc + " " + ddl_bw + " solid;")
document.write(" border-top: " + ddl_bc + " " + ddl_bw + " solid;")
document.write(" display: none; position: absolute;")
document.write(" left: 10px; height: 99px; top: 124px; width: " + ddl_width + """)document.write(" language="javascript"")
document.write(" >")
var i
for(i=0; i<dropdownlistdata.length; i++)
{ document.write("<span id=ddli" + i)
document.write(" style="background-color: " + ddl_bgc + "; cursor: hand;")document.write(" color: " + ddl_fgc + "; padding-left: 10px; width: " + (ddl_width - 2 * ddl_bw) + """)document.write(" language="javascript"")
document.write(" + i + ")"")document.write(" + i + ")"")
document.write(" + i + ")"")
document.write(" >")
document.write(dropdownlistdata + "</span><br>")
} document.write("</div>")
}
document.onmousemove = document_onmousemove
var dropdownlistdata = new array()
var ddl_bgc = "papayawhip"
var ddl_fgc = "green"
var ddl_hbc = "orange"
var ddl_hfc = "red"
var ddl_bc = "red"
var ddl_bw = 1
var ddl_width = 90
var ddl_top = 100
var ddl_left = 80
var ddl_picw = 15
dropdownlistdata[0] = "item0"
dropdownlistdata[1] = "item1"
dropdownlistdata[2] = "item2"
dropdownlistdata[3] = "item3"
dropdownlistdata[4] = "item4"
writedropdownlist()
</script>
</head>
<body>
<p><input type="button" value="selected" id=button1 name=button1
language=javascript
></p>
<p>下拉列表框演示程序:</p>
<label id=l1>
</label>
</body>
</html>
上一篇: 燕窝的食用方法你不知道的都在这里
下一篇: 猪心茶树菇的做法