动态按钮代码生成器
脚本说明:第一步:把如下代码加入<head>区域中:
<SCRIPT LANGUAGE="JavaScript">
<!--
var a = 21
function create() {
this.line = ''
}
function skrivut(formet) {
bild1 = formet.bilden.value;
bild2 = formet.bildtva.value;
kall1 = formet.srcen.value;
kall2 = formet.srctva.value;
bildnamn = formet.bildnmn.value;
widd = formet.widden.value;
hojd = formet.hojden.value;
line = new Array()
for(var i=1; i<=a; i++) { line[i] = new create() }
line[1] = '<html><head><title>Code Window</title></head><body bgcolor="#FFFFFF">'
line[2] = '<HTML><HEAD><br><TITLE>Title of your page</title><P>'
line[3] = '<SCRIPT LANGUAGE="JavaScript"><BR><!--<BR>/**luxiaoqing http://*.*.*/*/*.htm--/<BR>Browser = false ;<BR>if(navigator.appName.indexOf("Netscape") != -1)<BR>'
line[5] = '{ if( (navigator.appVersion.indexOf("3.") != -1) || (navigator.appVersion.indexOf("4.") != -1) )<BR>'
line[6] = ' Browser = true}<BR>'
line[7]='if(navigator.appVersion.indexOf("MSIE") != -1) { if( navigator.appVersion.indexOf("4.") != -1)<BR>'
line[8]='Browser=true}<BR>'
line[9]='if ( Browser == true) {<BR>'
line[10] = bild1+'= new Image();<BR>'
line[11] = bild1+'.src = "'+kall1+'";<BR>'
line[12] = bild2+' = new Image();<BR>'
line[13] = bild2+'.src = "'+kall2+'";<BR>}<P>'
line[14] = 'function byt(place, imgName) {<BR>'
line[15] = 'if (Browser == true) {<BR>'
line[16] = 'document[place].src =eval(imgName + ".src");<BR>'
line[17] = '} }<BR>'
line[18] = '//--><BR>'
line[19] = '</SCRIPT><P></HEAD><br><BODY><P>Here comes the link:<BR>'
补充:asp教程,脚本编码