Indonesia
<!-- http://www.downcodes.com --> <!-- bbs http://bbs.downcodes.com --> <!--把下列代码加到<BODY>区域中--> <SCRIPT> function morph(e,tunggu,langkah,gaya,selesai){ if(e.morphing){ return; } e.morfing = benar; e.langkah = 0; e.selesai = langkah; e.tunggu = tunggu; e.morphDone = selesai; var atribut = _eat_attrib(gaya); if(attribs["top"] != null){ e.deltaTop = Math.round(Number((attribs["top"] - e.style.posTop) / langkah)); e.finalTop = atribut["atas"]; }lainnya{ e.deltaTop = null; e.finalTop = e.style.posTop; } if(attribs["left"] != null){ e.deltaLeft = Math.round(Number((attribs["left"] - e.style.posLeft) / langkah)); e.finalLeft = atribut["kiri"]; }lainnya{ e.deltaLeft = null; e.finalLeft = e.style.posLeft; } if(attribs["height"] != null){ e.deltaHeight = Math.round(Number((attribs["height"] - e.style.posHeight) / langkah)); e.finalHeight = atribut["tinggi"]; }lainnya{ e.deltaHeight = null; e.finalHeight = e.style.posHeight; } if(attribs["width"] != null){ e.deltaWidth = Math.round(Number((attribs["width"] - e.style.posWidth) / langkah)); e.finalWidth = atribut["lebar"]; }lainnya{ e.deltaWidth = null; e.finalWidth = e.style.posWidth; } e.warna = Array baru(); for(attrib in attribs){ if(attrib == "latar belakang"){ e.colors[e.colors.length] = new Array(); e.warna[e.warna.panjang - 1].nama = atribut; e.colors[e.colors.length - 1].safename = attrib; } if(attrib == "warna"){ e.warna[e.warna.panjang] = Array baru(); e.warna[e.warna.panjang - 1].nama = atribut; e.colors[e.colors.length - 1].safename = attrib; } if(attrib == "warna batas"){ e.colors[e.colors.length] = new Array(); e.warna[e.warna.panjang - 1].nama = atribut; e.colors[e.colors.length - 1].safename = "borderColor"; } } for(var i=0;i<e.colors.length;i++){ var rgb = _eat_rgb(attribs[e.colors[i].name]); var prergb = _eat_rgb(e.style[e.colors[i].safename]); e.colors[i].delta = _eat_rgb(attribs[e.colors[i].name]); e.colors[i].finish = _eat_rgb(attribs[e.colors[i].name]); e.colors[i].delta["red"] = Math.round(Number((rgb["red"] - prergb["red"]) / langkah)); e.colors[i].delta["green"] = Math.round(Number((rgb["green"] - prergb["green"]) / langkah)); e.colors[i].delta["blue"] = Math.round(Number((rgb["blue"] - prergb["blue"]) / langkah)); } setTimeout("_morphing(document.all." + e.id + ")", tunggu); } fungsi _morphing(e){ e.langkah++; if(e.deltaTop!=null){ e.style.posTop += e.deltaTop; } if(e.deltaLeft!=null){ e.style.posLeft += e.deltaLeft; } if(e.deltaHeight!=null){ e.style.posHeight += e.deltaHeight; } if(e.deltaWidth!=null){ e.style.posWidth += e.deltaWidth; } for(var i=0;i<e.colors.length;i++){ var rgb = _eat_rgb(e.style[e.colors[i].safename]); e.style[e.colors[i].safename] = "rgb(" + (e.colors[i].delta["red"] + rgb["red"]) + "," + (e.colors [i].delta["hijau"] + rgb["hijau"]) + "," + (e.warna[i].delta["biru"] + rgb["biru"]) + ")"; } if(e.langkah == e.selesai){ if(e.deltaTop != null) e.style.posTop = e.finalTop; if(e.deltaLeft != null) e.style.posLeft = e.finalLeft; if(e.deltaWidth != null) e.style.posWidth = e.finalWidth; if(e.deltaHeight != null) e.style.posHeight = e.finalHeight; for(var i=0;i<e.colors.length;i++){ e.style[e.colors[i].safename] = "rgb(" + (e.colors[i].finish["red" ] + rgb["merah"]) + "," + (e.warna[i].selesai["hijau"] + rgb["hijau"]) + "," + (e.warna[i].selesai ["biru"] + rgb["biru"]) + ")"; } e.morfing = salah; eval(e.morphDone); }else{ setTimeout("_morphing(document.all." + e.id + ")", e.wait); } kembali; } fungsi _eat_attrib(str){ var potongan = Array baru(); var semua = Array baru(); potongan=str.split(";"); for(var i=0;i<potongan.panjang;i++){ var tmpA = new Array(); tmpA=potongan[i].split(":"); semua[tmpA[0]]=tmpA[1]; } kembalikan semua; } fungsi _eat_rgb(str){ var semua = Array baru(); var a = str.indexOf("("); var b = str.indexOf(")"); str = str.substring(a + 1, b); var tmpA = str.split(","); semua["merah"]=Nomor(tmpA[0]); semua["hijau"]=Nomor(tmpA[1]); semua["biru"]=Nomor(tmpA[2]); kembalikan semuanya; } </SCRIPT><SPAN ID="test" STYLE="border:solid;border-width:5;border-color:rgb(0,0,0);color:rgb(255.255.255);posisi:absolute;atas :0;kiri:0;lebar:400;tinggi:400;luapan:tersembunyi;latar belakang:rgb(0,0,255);">想学网页制作技术,请到建站学院来! </SPAN> <SCRIPT> fungsi rander(){ var top = Math.round(Math.random() * 400); var kiri = Matematika.bulat(Matematika.acak() * 600); var lebar = Matematika.bulat(Matematika.acak() * 200); var tinggi = Matematika.bulat(Matematika.acak() * 200); var r = Matematika.bulat(Matematika.acak() * 255); var g = Matematika.bulat(Matematika.acak() * 255); var b = Matematika.bulat(Matematika.acak() * 255); var latar belakang = "rgb(" + r + "," + g + "," + b + ")"; var r = Matematika.bulat(Matematika.acak() * 255); var g = Matematika.bulat(Matematika.acak() * 255); var b = Matematika.bulat(Matematika.acak() * 255); var borderColor = "rgb(" + r + "," + g + "," + b + ")"; var r = Matematika.bulat(Matematika.acak() * 255); var g = Matematika.bulat(Matematika.acak() * 255); var b = Matematika.bulat(Matematika.acak() * 255); var warna = "rgb(" + r + "," + g + "," + b + ")"; morph(document.all.test,30,20,"atas:" + atas + ";kiri:" + kiri + ";lebar:" + lebar + ";tinggi:" + tinggi + ";latar belakang:" + latar belakang + ";warna batas:" + warna batas + ";warna:" + warna + ";","rander();"); } rander(); </SKRIP>