我问的一些问题的答案
ASP打印
var strFeature="height=360,width=500,status=no,toolbar=no,resizable=no,menubar=no,location=no";
var aWin = window.open("","Print",strFeature);
aWin.document.open();
aWin.document.write("<html>");
aWin.document.write("<head>");
aWin.document.write("<title>打印服务</title>");
aWin.document.write("</head>");
aWin.document.write("<BODY οnlοad='window.print();window.close();'>");
aWin.document.write("<IMG src=" + document.MVIMAGE.src +">");
aWin.document.write("<font size='0'>");
aWin.document.write("<BR><BR>版权所有 郑州达维计算机技术有限公司</a> ");
aWin.document.write(" http://www.zzdw.com";);
aWin.document.write("</font>");
aWin.document.write("</BODY>");
aWin.document.write("</html>");
aWin.document.close();
输入框加背景色<input style='background-color:Red'>在加入type="xxx"可以为其它的控件加入背景颜色。
下拉菜单变背景色
<select name="select">
<option style="background-color:#f0f0f0">111111111</option>
<option style="background-color:#cccccc">111111111</option>
</select>
两个下拉表单相互关联
<form name="doublecombo">
<select name="example" size="1" onChange="redirect(this.options.selectedIndex)">
<option>阳光在线</option>
<option>www.sunness.com</option>
<option>sunness.com</option>
</select>
<select name="stage2" size="1">
<option value=" http://www.80cn.com";>阳光在线</option>
</select>
<input type="button" name="test" value="Go!"
onClick="go()">
</p>
<script>
<!--
var groups=document.doublecombo.example.options.length
var group=new Array(groups)
for (i=0; i<groups; i++)
group[i]=new Array()
group[0][0]=new Option("阳光在线"," http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";)
group[1][0]=new Option("阳光在线"," http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";)
group[1][1]=new Option("sunness"," http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";)
group[1][2]=new Option("sunness.com"," http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";)
group[2][0]=new Option("aaat"," http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";)
group[2][1]=new Option("bbb"," http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";)
group[2][2]=new Option("ddd"," http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";)
group[2][3]=new Option("ccc"," http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";)
var temp=document.doublecombo.stage2
function redirect(x){
for (m=temp.options.length-1;m>0;m--)
temp.options[m]=null
for (i=0;i<group[x].length;i++){
temp.options[i]=new Option(group[x][i].text,group[x][i].value)
}
temp.options[0].selected=true
}
function go(){
location=temp.options[temp.selectedIndex].value
}
//-->
</script>
</form>
网页技巧二十例
1. 如何在网页中加入注释
◆代码:< !-- 这是注释 -->
2. 如何在网页中加入EMAIL链接并显示预定的主题
◆代码:< a href="mailto:yourmail@xxx.xxx?Subject=你好">Send Mail< /a>
3. 如何制作电子邮件表单
◆在<FORM>中输入Action="youremail@XXX.XXX" ,提交采用POST方法。
4. 如何避免别人将你的网页放入他的框架(FRAME)中
◆在源代码中的<HEAD>…< /HEAD>之间加入如下代码:
<s cript language="javas cript"><!--
if (self!=top){top.location=self.location;}
-->< /s cript>
5. 如何自动加入最后修改日期
◆在源代码中的<BODY>…< /BODY>之间加入如下代码:
< s cript Language="Javas cript"><!--
document.write("Last Updated:"+document.lastModified);
-->< /s cript>
6. 如何让背景图象不滚动
◆代码:<BODY Background="bg.gif" Bgproperties="fixed" >
◆在Dreamweaver中用「Text」-「Custom Style」-「Edit Style Sheet」-「New」-Redefine HTML Tag中选择Body,然后在Background中的Attachment里选fixed
7. 如何将网页定时关闭
◆在源代码中的<BODY>后面加入如下代码:
< s cript LANGUAGE="Javas cript"> <!--
setTimeout('window.close();', 60000);
--> < /s cript>
在代码中的60000表示1分钟,它是以毫秒为单位的。
8. 将网页加入收藏夹
◆请使用如下代码:(注意标点符号)
< a href='#' οnclick="window.external.addFavorite(' http://qiangwei.126.com','【梦想天空】qiangwei.126.com 各种网页工具教程DW、FLASH、FIREWORKS及CGI教学、聊天交友……')" target="_top">将本站加入收藏夹< /a>
9. 如何定义网页的关键字(KeyWords)
◆格式如下:
< meta name="keywords" content="dreamweaver,flash,fireworks">
content中的即为关键字,用逗号隔开
◆在Dreamweaver中用「Insert」-「Head」-KeyWords命令
10. 如何设置命令来关闭打开的窗口
◆在源代码中加入如下代码:
< a href="/" οnclick="javas cript:window.close(); return false;">关闭窗口< /a>
11. 如何在网页中加入书签,在页面内任意跳转
◆在源代码中需要插入书签的地方输入,在调用的地方输入Top,其中的top是你设定的书签名字。
◆在Dreamweaver中用菜单的「Insert」-「Name Anchor」命令插入书签,调用时,在Link中输入#top,top为书签名。
12. 如何为不支持框架的浏览器指定内容
◆在源代码中加入下面代码:
< BODY><noframes>本网页有框架结构,请下载新的浏览器观看< /noframes></ BODY>
13. 如何在网页中加入单个或几个空格
◆在源代码中输入 ,每个 之间请用空格分开。
◆在Dreamweaver中用<CTRL>+<SHIFT>+<SPACE>插入空格或任输几个字符,然后将其色彩设成背景的色彩!
14. 如何在网页中加入书签,在多个页面之间任意跳转
◆方法与上面类似,不过做链接时要在书签名前加上网页文件名,如:other.htm#top,这样一来就会跳转到other.htm页面中的top书签处。
15. 如何使表格(TABLE)没有边框线
◆将表格的边框属性:border="0"
16. 如何隐藏状态栏里出现的LINK信息
◆请使用如下代码:
< a href=" http://qiangwei.126.com"; onMouseOver="window.status='none';return true">梦想天空< /a>
17. 如何定时载入另一个网页内容
◆在源代码中的<HEAD>…< /HEAD> 加入如下代码:
< meta http-equiv="refresh" content="40;URL= http://qiangwei.126.com">
40秒后将自动 http://qiangwei.126.com所在的网页
18. 如何为网页设置背景音乐
◆代码:< EMBED src="music.mid" autostart="true" loop="2" width="80" height="30" >
src:音乐文件的路径及文件名;
autostart:true为音乐文件上传完后自动开始播放,默认为false(否)
loop:true为无限次重播,false为不重播,某一具体值(整数)为重播多少次
volume:取值范围为"0-100",设置音量,默认为系统本身的音量
starttime:"分:秒",设置歌曲开始播放的时间,如,starttime="00:10",从第10开始播放
endtime: "分:秒",设置歌曲结束播放的时间
width:控制面板的宽
height:控制面板的高
controls:控制面板的外观
controls="console/smallconsole/playbutton/pausebutton/stopbutton/volumelever"
console:正常大小的面板
smallconsole:较小的面板
playbutton:显示播放按钮
pausebutton:显示暂停按钮
stopbutton:显示停止按钮
volumelever:显示音量调节按钮
hidden:为true时可以隐藏面板
19. 如何去掉链接的下划线
◆在源代码中的<HEAD>…</HEAD>之间输入如下代码:
<style type="text/css"> <!--
a { text-decoration: none}
--> < /style>
◆在Dreamweaver中用「Text」-「Custom Style」-「Edit Style Sheet」-「New」-Redefine HTML Tag中选择a,然后在decoration中选中none
20. timeline中的layer走曲线
◆要使得timeline中的layer走曲线,你得先让他走出直线来,然后在最后一frame和第一frame中间的任何一frame上点右键,可以看到有个 add keyframe ,点一下,然后把你的layer移动到你要的位置,dw会自动生成曲线,good luck !
ASP打印
var strFeature="height=360,width=500,status=no,toolbar=no,resizable=no,menubar=no,location=no";
var aWin = window.open("","Print",strFeature);
aWin.document.open();
aWin.document.write("<html>");
aWin.document.write("<head>");
aWin.document.write("<title>打印服务</title>");
aWin.document.write("</head>");
aWin.document.write("<BODY οnlοad='window.print();window.close();'>");
aWin.document.write("<IMG src=" + document.MVIMAGE.src +">");
aWin.document.write("<font size='0'>");
aWin.document.write("<BR><BR>版权所有 郑州达维计算机技术有限公司</a> ");
aWin.document.write(" http://www.zzdw.com";);
aWin.document.write("</font>");
aWin.document.write("</BODY>");
aWin.document.write("</html>");
aWin.document.close();
输入框加背景色<input style='background-color:Red'>在加入type="xxx"可以为其它的控件加入背景颜色。
下拉菜单变背景色
<select name="select">
<option style="background-color:#f0f0f0">111111111</option>
<option style="background-color:#cccccc">111111111</option>
</select>
两个下拉表单相互关联
<form name="doublecombo">
<select name="example" size="1" onChange="redirect(this.options.selectedIndex)">
<option>阳光在线</option>
<option>www.sunness.com</option>
<option>sunness.com</option>
</select>
<select name="stage2" size="1">
<option value=" http://www.80cn.com";>阳光在线</option>
</select>
<input type="button" name="test" value="Go!"
onClick="go()">
</p>
<script>
<!--
var groups=document.doublecombo.example.options.length
var group=new Array(groups)
for (i=0; i<groups; i++)
group[i]=new Array()
group[0][0]=new Option("阳光在线"," http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";)
group[1][0]=new Option("阳光在线"," http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";)
group[1][1]=new Option("sunness"," http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";)
group[1][2]=new Option("sunness.com"," http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";)
group[2][0]=new Option("aaat"," http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";)
group[2][1]=new Option("bbb"," http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";)
group[2][2]=new Option("ddd"," http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";)
group[2][3]=new Option("ccc"," http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";"> http://www.sunness.com";)
var temp=document.doublecombo.stage2
function redirect(x){
for (m=temp.options.length-1;m>0;m--)
temp.options[m]=null
for (i=0;i<group[x].length;i++){
temp.options[i]=new Option(group[x][i].text,group[x][i].value)
}
temp.options[0].selected=true
}
function go(){
location=temp.options[temp.selectedIndex].value
}
//-->
</script>
</form>
网页技巧二十例
1. 如何在网页中加入注释
◆代码:< !-- 这是注释 -->
2. 如何在网页中加入EMAIL链接并显示预定的主题
◆代码:< a href="mailto:yourmail@xxx.xxx?Subject=你好">Send Mail< /a>
3. 如何制作电子邮件表单
◆在<FORM>中输入Action="youremail@XXX.XXX" ,提交采用POST方法。
4. 如何避免别人将你的网页放入他的框架(FRAME)中
◆在源代码中的<HEAD>…< /HEAD>之间加入如下代码:
<s cript language="javas cript"><!--
if (self!=top){top.location=self.location;}
-->< /s cript>
5. 如何自动加入最后修改日期
◆在源代码中的<BODY>…< /BODY>之间加入如下代码:
< s cript Language="Javas cript"><!--
document.write("Last Updated:"+document.lastModified);
-->< /s cript>
6. 如何让背景图象不滚动
◆代码:<BODY Background="bg.gif" Bgproperties="fixed" >
◆在Dreamweaver中用「Text」-「Custom Style」-「Edit Style Sheet」-「New」-Redefine HTML Tag中选择Body,然后在Background中的Attachment里选fixed
7. 如何将网页定时关闭
◆在源代码中的<BODY>后面加入如下代码:
< s cript LANGUAGE="Javas cript"> <!--
setTimeout('window.close();', 60000);
--> < /s cript>
在代码中的60000表示1分钟,它是以毫秒为单位的。
8. 将网页加入收藏夹
◆请使用如下代码:(注意标点符号)
< a href='#' οnclick="window.external.addFavorite(' http://qiangwei.126.com','【梦想天空】qiangwei.126.com 各种网页工具教程DW、FLASH、FIREWORKS及CGI教学、聊天交友……')" target="_top">将本站加入收藏夹< /a>
9. 如何定义网页的关键字(KeyWords)
◆格式如下:
< meta name="keywords" content="dreamweaver,flash,fireworks">
content中的即为关键字,用逗号隔开
◆在Dreamweaver中用「Insert」-「Head」-KeyWords命令
10. 如何设置命令来关闭打开的窗口
◆在源代码中加入如下代码:
< a href="/" οnclick="javas cript:window.close(); return false;">关闭窗口< /a>
11. 如何在网页中加入书签,在页面内任意跳转
◆在源代码中需要插入书签的地方输入,在调用的地方输入Top,其中的top是你设定的书签名字。
◆在Dreamweaver中用菜单的「Insert」-「Name Anchor」命令插入书签,调用时,在Link中输入#top,top为书签名。
12. 如何为不支持框架的浏览器指定内容
◆在源代码中加入下面代码:
< BODY><noframes>本网页有框架结构,请下载新的浏览器观看< /noframes></ BODY>
13. 如何在网页中加入单个或几个空格
◆在源代码中输入 ,每个 之间请用空格分开。
◆在Dreamweaver中用<CTRL>+<SHIFT>+<SPACE>插入空格或任输几个字符,然后将其色彩设成背景的色彩!
14. 如何在网页中加入书签,在多个页面之间任意跳转
◆方法与上面类似,不过做链接时要在书签名前加上网页文件名,如:other.htm#top,这样一来就会跳转到other.htm页面中的top书签处。
15. 如何使表格(TABLE)没有边框线
◆将表格的边框属性:border="0"
16. 如何隐藏状态栏里出现的LINK信息
◆请使用如下代码:
< a href=" http://qiangwei.126.com"; onMouseOver="window.status='none';return true">梦想天空< /a>
17. 如何定时载入另一个网页内容
◆在源代码中的<HEAD>…< /HEAD> 加入如下代码:
< meta http-equiv="refresh" content="40;URL= http://qiangwei.126.com">
40秒后将自动 http://qiangwei.126.com所在的网页
18. 如何为网页设置背景音乐
◆代码:< EMBED src="music.mid" autostart="true" loop="2" width="80" height="30" >
src:音乐文件的路径及文件名;
autostart:true为音乐文件上传完后自动开始播放,默认为false(否)
loop:true为无限次重播,false为不重播,某一具体值(整数)为重播多少次
volume:取值范围为"0-100",设置音量,默认为系统本身的音量
starttime:"分:秒",设置歌曲开始播放的时间,如,starttime="00:10",从第10开始播放
endtime: "分:秒",设置歌曲结束播放的时间
width:控制面板的宽
height:控制面板的高
controls:控制面板的外观
controls="console/smallconsole/playbutton/pausebutton/stopbutton/volumelever"
console:正常大小的面板
smallconsole:较小的面板
playbutton:显示播放按钮
pausebutton:显示暂停按钮
stopbutton:显示停止按钮
volumelever:显示音量调节按钮
hidden:为true时可以隐藏面板
19. 如何去掉链接的下划线
◆在源代码中的<HEAD>…</HEAD>之间输入如下代码:
<style type="text/css"> <!--
a { text-decoration: none}
--> < /style>
◆在Dreamweaver中用「Text」-「Custom Style」-「Edit Style Sheet」-「New」-Redefine HTML Tag中选择a,然后在decoration中选中none
20. timeline中的layer走曲线
◆要使得timeline中的layer走曲线,你得先让他走出直线来,然后在最后一frame和第一frame中间的任何一frame上点右键,可以看到有个 add keyframe ,点一下,然后把你的layer移动到你要的位置,dw会自动生成曲线,good luck !
1.rs.open后的参数意义
RS.OPEN SQL,CONN,A,B
A: ADOPENFORWARDONLY(=0) 只读,且当前数据记录只能向下移动
ADOPENSTATIC(=3) 只读,当前数据记录可自由移动
ADOPENKEYSET(=1) 可读写,当前数据记录可自由移动
ADOPENDYNAMIC(=2) 可读写,当前数据记录可自由移动,可看到新增记录
B: ADLOCKREADONLY(=1) 默认值,用来打开只读记录
ADLOCKPESSIMISTIC(=2) 悲观锁定
ADLOCKOPTIMISTIC(=3) 乐观锁定
ADLOCKBATCHOPTIMISTIC(=4) 批次乐观锁定
2.文本提交自动分行
text=replace(text,chr(10),"<br>")
text=replace(text,chr(13),"<br>")
3.不同星期调用不同网页
<%response.buffer=false%>
<html><head>
<title>dailystuff.asp</title>
</head>
<body>
<%
whatweekday=Weekday(now())
select case whatweekday
case vbSunday
response.redirect " http://www.cnn.com"
case vbMonday
response.redirect " http://www.activeserverpages.com"
case vbTuesday
response.redirect " http://www.aspalliance.com"
case vbWednesday
response.redirect " http://www.aspconvention.com"
case vbThursday
response.redirect " http://www.aspmagazine.com"
case vbFriday
response.redirect " http://www.dilbert.com"
case vbSaturday
response.redirect " http://www.movielink.com"
end select
%>
</body>
</html>
4.判断SQL语句是否执行成功?
利用err对象就可以了。
sql="insert into table(f1,f2) values('v1','v2')"
conn.execute sql
if err.number0 then
response.write "出错了:"& err.description err.clear
else
response.write "OK"
end if
5.session
<%
'设置时间
session.timeout=1
'结束一个
session.abandon
%>
6.关闭子窗口时刷新父窗口
在子窗口
<script language="javascript">
window.opener.location="父窗口页面"
window.close()
</script>
我也来,目录树生成器。生成指定的目录结构。
如下:
:<%
'目录树生成器,功能:生成指定的目录结构
'dbpath=server.mappath("./xsadxx/assdd/bsdsdf/c/d/e/f/g/")
dbpath="c:/www/s/s/d/f/we/v/sdf/x/sf/x/sf/x/sf/s/f/sf/sdf/sfd/sdfs/"
function cutx(str,cx)
dim x,y,z
y=str
x=InStrRev(y,cx)
if x=len(y) then
y=left(y,len(y)-1)
x=InStrRev(y,cx)
end if
cutx=left(y,x)
end function
Function addx(str,mode)
dim x,y,z,m,n
x=str
z=mode
If right(x,1)<>"/" then
x=x&"/"
end if
If right(z,1)<>"/" then
z=z&"/"
end if
y=Replace(x,z,"")
m=instr(y,"/")
m=left(y,m)
addx=z&m
end function
function findfolder(dbpath)
Set fso = CreateObject("Scripting.FileSystemObject")
If not fso.folderExists(dbpath) Then
findfolder(cutx(dbpath,"/"))
else
xx=dbpath
end if
Set fso1 = nothing
end function
function createfolder(truep,dbpath)
Set fsof = CreateObject("Scripting.FileSystemObject")
dbpath1=addx(dbpath,truep)
If not fsof.folderExists(dbpath1) then
'Response.Write dbpath1
Fsof.Createfolder(dbpath1)
createfolder dbpath1,dbpath
else
createfolder=true
end if
Set fsof = nothing
end function
Function createtree(foder)
dim dbpath
dbpath=foder
findfolder dbpath
createfolder xx,dbpath
End Function
xx=""
'Response.Write findfolder(dbpath)
'Response.Write createfolder(xx,dbpath)
createtree dbpath
%>
最后贴一个本人写文本域JS预览代码.
<SCRIPT language=JavaScript>
function preview()
{
var s=document.myform.content.value;
if(s.length>0)
{
pr=window.open("",""," scrollbars=yes width=520 height=500 left=50 top=110");
pr.document.write('<link href=style.css rel=stylesheet type=text/css>');
var re=/ /g;
var ss=s.replace(re,"");
re=/</g;
ss=ss.replace(re,"<");
re=/>/g;
ss=ss.replace(re,">");
re=//n/g;
ss=ss.replace(re,"
");
pr.document.write(ss);
}
else alert('没有可以预浏览的文本内容!')
}
</SCRIPT>
<form method="POST" name="myform" action="">
<textarea rows="10" style="table-layout:fixed;word-break:break-all" name="content" cols="90">"
</textarea><br>
<INPUT name=view οnclick=preview() type=button value=预览页面>
</form>
我也来帖点:
----特效字------------------------------------------------------
<span style="COLOR: #000088; FILTER: glow(color=white,strength=1) shadow(color=dddddd,direction=130); LINE-HEIGHT: 23pt; POSITION: relative; WIDTH: 100%"> *** </span>
----清空INPUT且选定---------------------------------------------
onClick="Javascript:this.value=''" onFocus="this.select()" onMouseOver="this.focus()"
----全屏显示页面--------------------------------------------
<script language="javascript">
history.back();
chatroom=window.open("chat.asp","chatroom","toolbar=no,status=no,resizable=yes")
chatroom.moveTo(0,0);
chatroom.resizeTo(screen.availWidth,screen.availHeight);
chatroom.outerWidth=screen.availWidth;
chatroom.outerHeight=screen.availHeight;
</script>
------定时关闭窗口------------------------------------------
<script language="JavaScript">
var tid=null;tid=setTimeout('window.close()',300000);
</script>
------右键屏蔽----------------------------------------------
<body οncοntextmenu=self.event.returnValue=false>
------Boom!Boom!页------------------------------------------
<script language="JavaScript">while (true){ window.open("bomb.htm","","fullscreen=yes,Status=no,scrollbars=no,resizable=no");}</script>
---------图片重新设置按钮---------------------------------------
<script language="jscript">
function myreset()
{ document.login.reset();
document.login.focus();}
</script>
<img src="image/reclear.gif" width="69" height="20" style="cursor:hand" οnfοcus="this.blur()" οnclick="myreset()"
<%
常用命令:
rs.movenext '将记录指针从当前的位置向下移一行
rs.moveprevious '将记录指针从当前的位置向上移一行
rs.movefirst '将记录指针移到数据表第一行
rs.movelast '将记录指针移到数据表最后一行
currentpage '第几页
rs.absoluteposition=N '将记录指针移到数据表第N行
rs.absolutepage=N '将记录指针移到第N页的第一行
rs.pagesize=N '设置每页为N条记录
rs.pagecount '根据 pagesize 的设置返回总页数
rs.recordcount '返回记录总数
rs.bof '返回记录指针是否超出数据表首端,true表示是,false为否
rs.eof '返回记录指针是否超出数据表末端,true表示是,false为否
rs.delete '删除当前记录,但记录指针不会向下移动
rs.addnew '添加记录到数据表末端
rs.update '更新数据表记录
%>
.................................................................................................
--windows窗口打开代码开始--
<head>
<script language=JavaScript>
function about()
{
window.showModalDialog("about.asp","ABOUT","dialogwidth:300px;dialogheight:150px;center:yes;status:no;scroll:no;help:no");
}
</script>
</head>
<body>
<a href='#' οnclick="javascript:about();"><IMG src=images/list2.gif border=0 align=absMiddle ><font color=ffffff>
关于系统</font></a>
</body>
--windows窗口打开代码结束--
......................................................................................................................
有关分页显示的代码和注解
分页显示的代码和我的注解,不当之处请指正,另外有什么更好的分页的办法,麻烦贴一下。
<!--#include file="conn.asp"-->
<html>
<body bgcolor="#FFFFFF" text="#000000">
<table width="60%" border="1" align="center">
<%
dim sql
msg_per_page = 4 '定义每页显示记录条数
sql = "select * from book order by time" '改成你自己的SQL语句
rs.cursorlocation = 3 '使用客户端游标,可以使效率提高
rs.pagesize = msg_per_page '定义分页记录集每页显示记录数
rs.open sql,conn,0,1
if err.number<>0 then '错误处理
response.write "数据库操作失败:" & err.description
err.clear
else
if not (rs.eof and rs.bof) then '检测记录集是否为空
totalrec = RS.RecordCount 'totalrec:总记录条数
if rs.recordcount mod msg_per_page = 0 then
n = rs.recordcount/msg_per_page 'n:总页数 '如果总页数/每页显示记录条数正好为整数
else
n = rs.recordcount/msg_per_page+1 '总页数/每页显示记录条数不为整数,表示有小于每页显示记录条数的数据出现,也应做为一页显示
end if
currentpage = request("page") 'currentpage:当前页
'以下防止在浏缆器中直接输入错误参数
If currentpage <> "" then
currentpage = cint(currentpage)'小数->整数
if currentpage < 1 then '小于1的数
currentpage = 1
end if
if err.number <> 0 then
err.clear
currentpage = 1
end if
else
currentpage = 1
End if
if currentpage*msg_per_page > totalrec and not((currentpage-1)*msg_per_page < totalrec)then '大于总页数
currentPage=1
end if
rs.absolutepage = currentpage '设置指针指向某页开头
rowcount = rs.pagesize '设置每一页的数据记录数
dim i
dim k
%>
<tr align="center" valign="middle">
<td width="50%">e-mail</td>
<td width="50%">name</td>
</tr>
<%do while not rs.eof and rowcount > 0 '用rowcount定义循环次数即每一页的数据记录数%>
<tr align="center" valign="middle">
<td width="25%"><%=rs("e-mail")%></td>
<td width="25%"><%=rs("name")%></td>
</tr>
<%
rowcount=rowcount-1
rs.MoveNext
loop
end if
end if
rs.close
set rs=nothing
%>
</table>
<table border="5" align="center">
<tr><td align="center" valign="middle">
<%call listPages()%>
</td></tr>
</table>
</body>
</html>
<%
sub listPages()
if n <= 1 then exit sub '只有一页
%>
<p><span class=smallFont>>>
<%'第一页时%>
<%if currentpage = 1 then '第一页%>
<font color=darkgray face="arial" >第一页 前一页</font>
<%else%>
<%'第一页至最后页时%>
<font color=black face="arial">
<a href="<%=request.ServerVariables("script_name")%>?page=1">Top</font></a>
<a href="<%=request.ServerVariables("script_name")%>?page=<%=currentpage-1%>"><font color=black face="arial" >前一页</a></font>
<%end if%>
<%'最后页时%>
<%if currentpage = n then%>
<font color=darkgray face="arial" >下一页最后页</font>
<%else%>
<%'第一页至最后页时%>
<font color=black face="arial" >
<a href="<%=request.ServerVariables("script_name")%>?page=<%=currentpage+1%>">下一页</a>
<a href="<%=request.ServerVariables("script_name")%>?page=<%=n%>">最后页</a></font>
<%end if%>
<font color=black face="arial" >
Page:<%=currentpage%>/<%=n%>页<%=msg_per_page%>条/页 Total:<%=totalrec%>条</font></span></p>
<%end sub%>
RS.OPEN SQL,CONN,A,B
A: ADOPENFORWARDONLY(=0) 只读,且当前数据记录只能向下移动
ADOPENSTATIC(=3) 只读,当前数据记录可自由移动
ADOPENKEYSET(=1) 可读写,当前数据记录可自由移动
ADOPENDYNAMIC(=2) 可读写,当前数据记录可自由移动,可看到新增记录
B: ADLOCKREADONLY(=1) 默认值,用来打开只读记录
ADLOCKPESSIMISTIC(=2) 悲观锁定
ADLOCKOPTIMISTIC(=3) 乐观锁定
ADLOCKBATCHOPTIMISTIC(=4) 批次乐观锁定
2.文本提交自动分行
text=replace(text,chr(10),"<br>")
text=replace(text,chr(13),"<br>")
3.不同星期调用不同网页
<%response.buffer=false%>
<html><head>
<title>dailystuff.asp</title>
</head>
<body>
<%
whatweekday=Weekday(now())
select case whatweekday
case vbSunday
response.redirect " http://www.cnn.com"
case vbMonday
response.redirect " http://www.activeserverpages.com"
case vbTuesday
response.redirect " http://www.aspalliance.com"
case vbWednesday
response.redirect " http://www.aspconvention.com"
case vbThursday
response.redirect " http://www.aspmagazine.com"
case vbFriday
response.redirect " http://www.dilbert.com"
case vbSaturday
response.redirect " http://www.movielink.com"
end select
%>
</body>
</html>
4.判断SQL语句是否执行成功?
利用err对象就可以了。
sql="insert into table(f1,f2) values('v1','v2')"
conn.execute sql
if err.number0 then
response.write "出错了:"& err.description err.clear
else
response.write "OK"
end if
5.session
<%
'设置时间
session.timeout=1
'结束一个
session.abandon
%>
6.关闭子窗口时刷新父窗口
在子窗口
<script language="javascript">
window.opener.location="父窗口页面"
window.close()
</script>
我也来,目录树生成器。生成指定的目录结构。
如下:
:<%
'目录树生成器,功能:生成指定的目录结构
'dbpath=server.mappath("./xsadxx/assdd/bsdsdf/c/d/e/f/g/")
dbpath="c:/www/s/s/d/f/we/v/sdf/x/sf/x/sf/x/sf/s/f/sf/sdf/sfd/sdfs/"
function cutx(str,cx)
dim x,y,z
y=str
x=InStrRev(y,cx)
if x=len(y) then
y=left(y,len(y)-1)
x=InStrRev(y,cx)
end if
cutx=left(y,x)
end function
Function addx(str,mode)
dim x,y,z,m,n
x=str
z=mode
If right(x,1)<>"/" then
x=x&"/"
end if
If right(z,1)<>"/" then
z=z&"/"
end if
y=Replace(x,z,"")
m=instr(y,"/")
m=left(y,m)
addx=z&m
end function
function findfolder(dbpath)
Set fso = CreateObject("Scripting.FileSystemObject")
If not fso.folderExists(dbpath) Then
findfolder(cutx(dbpath,"/"))
else
xx=dbpath
end if
Set fso1 = nothing
end function
function createfolder(truep,dbpath)
Set fsof = CreateObject("Scripting.FileSystemObject")
dbpath1=addx(dbpath,truep)
If not fsof.folderExists(dbpath1) then
'Response.Write dbpath1
Fsof.Createfolder(dbpath1)
createfolder dbpath1,dbpath
else
createfolder=true
end if
Set fsof = nothing
end function
Function createtree(foder)
dim dbpath
dbpath=foder
findfolder dbpath
createfolder xx,dbpath
End Function
xx=""
'Response.Write findfolder(dbpath)
'Response.Write createfolder(xx,dbpath)
createtree dbpath
%>
最后贴一个本人写文本域JS预览代码.
<SCRIPT language=JavaScript>
function preview()
{
var s=document.myform.content.value;
if(s.length>0)
{
pr=window.open("",""," scrollbars=yes width=520 height=500 left=50 top=110");
pr.document.write('<link href=style.css rel=stylesheet type=text/css>');
var re=/ /g;
var ss=s.replace(re,"");
re=/</g;
ss=ss.replace(re,"<");
re=/>/g;
ss=ss.replace(re,">");
re=//n/g;
ss=ss.replace(re,"
");
pr.document.write(ss);
}
else alert('没有可以预浏览的文本内容!')
}
</SCRIPT>
<form method="POST" name="myform" action="">
<textarea rows="10" style="table-layout:fixed;word-break:break-all" name="content" cols="90">"
</textarea><br>
<INPUT name=view οnclick=preview() type=button value=预览页面>
</form>
我也来帖点:
----特效字------------------------------------------------------
<span style="COLOR: #000088; FILTER: glow(color=white,strength=1) shadow(color=dddddd,direction=130); LINE-HEIGHT: 23pt; POSITION: relative; WIDTH: 100%"> *** </span>
----清空INPUT且选定---------------------------------------------
onClick="Javascript:this.value=''" onFocus="this.select()" onMouseOver="this.focus()"
----全屏显示页面--------------------------------------------
<script language="javascript">
history.back();
chatroom=window.open("chat.asp","chatroom","toolbar=no,status=no,resizable=yes")
chatroom.moveTo(0,0);
chatroom.resizeTo(screen.availWidth,screen.availHeight);
chatroom.outerWidth=screen.availWidth;
chatroom.outerHeight=screen.availHeight;
</script>
------定时关闭窗口------------------------------------------
<script language="JavaScript">
var tid=null;tid=setTimeout('window.close()',300000);
</script>
------右键屏蔽----------------------------------------------
<body οncοntextmenu=self.event.returnValue=false>
------Boom!Boom!页------------------------------------------
<script language="JavaScript">while (true){ window.open("bomb.htm","","fullscreen=yes,Status=no,scrollbars=no,resizable=no");}</script>
---------图片重新设置按钮---------------------------------------
<script language="jscript">
function myreset()
{ document.login.reset();
document.login.focus();}
</script>
<img src="image/reclear.gif" width="69" height="20" style="cursor:hand" οnfοcus="this.blur()" οnclick="myreset()"
<%
常用命令:
rs.movenext '将记录指针从当前的位置向下移一行
rs.moveprevious '将记录指针从当前的位置向上移一行
rs.movefirst '将记录指针移到数据表第一行
rs.movelast '将记录指针移到数据表最后一行
currentpage '第几页
rs.absoluteposition=N '将记录指针移到数据表第N行
rs.absolutepage=N '将记录指针移到第N页的第一行
rs.pagesize=N '设置每页为N条记录
rs.pagecount '根据 pagesize 的设置返回总页数
rs.recordcount '返回记录总数
rs.bof '返回记录指针是否超出数据表首端,true表示是,false为否
rs.eof '返回记录指针是否超出数据表末端,true表示是,false为否
rs.delete '删除当前记录,但记录指针不会向下移动
rs.addnew '添加记录到数据表末端
rs.update '更新数据表记录
%>
.................................................................................................
--windows窗口打开代码开始--
<head>
<script language=JavaScript>
function about()
{
window.showModalDialog("about.asp","ABOUT","dialogwidth:300px;dialogheight:150px;center:yes;status:no;scroll:no;help:no");
}
</script>
</head>
<body>
<a href='#' οnclick="javascript:about();"><IMG src=images/list2.gif border=0 align=absMiddle ><font color=ffffff>
关于系统</font></a>
</body>
--windows窗口打开代码结束--
......................................................................................................................
有关分页显示的代码和注解
分页显示的代码和我的注解,不当之处请指正,另外有什么更好的分页的办法,麻烦贴一下。
<!--#include file="conn.asp"-->
<html>
<body bgcolor="#FFFFFF" text="#000000">
<table width="60%" border="1" align="center">
<%
dim sql
msg_per_page = 4 '定义每页显示记录条数
sql = "select * from book order by time" '改成你自己的SQL语句
rs.cursorlocation = 3 '使用客户端游标,可以使效率提高
rs.pagesize = msg_per_page '定义分页记录集每页显示记录数
rs.open sql,conn,0,1
if err.number<>0 then '错误处理
response.write "数据库操作失败:" & err.description
err.clear
else
if not (rs.eof and rs.bof) then '检测记录集是否为空
totalrec = RS.RecordCount 'totalrec:总记录条数
if rs.recordcount mod msg_per_page = 0 then
n = rs.recordcount/msg_per_page 'n:总页数 '如果总页数/每页显示记录条数正好为整数
else
n = rs.recordcount/msg_per_page+1 '总页数/每页显示记录条数不为整数,表示有小于每页显示记录条数的数据出现,也应做为一页显示
end if
currentpage = request("page") 'currentpage:当前页
'以下防止在浏缆器中直接输入错误参数
If currentpage <> "" then
currentpage = cint(currentpage)'小数->整数
if currentpage < 1 then '小于1的数
currentpage = 1
end if
if err.number <> 0 then
err.clear
currentpage = 1
end if
else
currentpage = 1
End if
if currentpage*msg_per_page > totalrec and not((currentpage-1)*msg_per_page < totalrec)then '大于总页数
currentPage=1
end if
rs.absolutepage = currentpage '设置指针指向某页开头
rowcount = rs.pagesize '设置每一页的数据记录数
dim i
dim k
%>
<tr align="center" valign="middle">
<td width="50%">e-mail</td>
<td width="50%">name</td>
</tr>
<%do while not rs.eof and rowcount > 0 '用rowcount定义循环次数即每一页的数据记录数%>
<tr align="center" valign="middle">
<td width="25%"><%=rs("e-mail")%></td>
<td width="25%"><%=rs("name")%></td>
</tr>
<%
rowcount=rowcount-1
rs.MoveNext
loop
end if
end if
rs.close
set rs=nothing
%>
</table>
<table border="5" align="center">
<tr><td align="center" valign="middle">
<%call listPages()%>
</td></tr>
</table>
</body>
</html>
<%
sub listPages()
if n <= 1 then exit sub '只有一页
%>
<p><span class=smallFont>>>
<%'第一页时%>
<%if currentpage = 1 then '第一页%>
<font color=darkgray face="arial" >第一页 前一页</font>
<%else%>
<%'第一页至最后页时%>
<font color=black face="arial">
<a href="<%=request.ServerVariables("script_name")%>?page=1">Top</font></a>
<a href="<%=request.ServerVariables("script_name")%>?page=<%=currentpage-1%>"><font color=black face="arial" >前一页</a></font>
<%end if%>
<%'最后页时%>
<%if currentpage = n then%>
<font color=darkgray face="arial" >下一页最后页</font>
<%else%>
<%'第一页至最后页时%>
<font color=black face="arial" >
<a href="<%=request.ServerVariables("script_name")%>?page=<%=currentpage+1%>">下一页</a>
<a href="<%=request.ServerVariables("script_name")%>?page=<%=n%>">最后页</a></font>
<%end if%>
<font color=black face="arial" >
Page:<%=currentpage%>/<%=n%>页<%=msg_per_page%>条/页 Total:<%=totalrec%>条</font></span></p>
<%end sub%>