Indonesia
<html> <head> <title>_xWin</title> <meta http-equiv="Content-Type" content="text/html; charset=gb2312"> <META NAME="Deskripsi" CONTENT="http:/ /www.youthfly.net"> <style type='text/css'> <!-- body{font-size:12px;} a:visited{text-decoration:none;color:slategray;} a:hover{ text-decoration:underline;color:slategray;} a:link{text-decoration:none;color:slategray;} --> </style> <script bahasa=JScript> <!-- //Dapat dikemas sebagai file js ; var x0=0,y0=0,x1=0,y1=0; var offx=6,offy=6; var dapat dipindahkan=false; var hover='oranye',normal='#336699';// color; var index=10000;//z-index; //Mulai menyeret; function startDrag(obj) { if(event.button==1) {//Kunci bilah judul; objek; var win = obj.parentNode; var sha = win.nextSibling; //Rekam posisi mouse dan lapisan; parseInt(win .style.top); //Rekam warna; normal = obj.style.backgroundColor; //Ubah gaya.style.color = hover; = arahkan; sha.style.left = x1 + offx; sha.style.top = y1 + offy; dapat dipindahkan = true; ; var sha = win.style.top = y1 + event.clientY - y0; + offx ; sha.style.top = parseInt(win.style.top) + offy; } } //Berhenti menyeret; function stopDrag(obj) { if(dapat dipindahkan) { var win = obj.parentNode; nextSibling ; var pesan = obj.nextSibling; win.style.borderColor = normal; obj.style.backgroundColor = normal; sha.style.left = obj.parentNode.style.left; .top = obj.parentNode.style.top; obj.releaseCapture(); dapat dipindahkan = false; } } //Dapatkan fokus; fungsi getFocus(obj) { if(obj.style.zIndex!=index) 2 ; var idx = indeks; obj.style.zIndex=idx; obj.nextSibling.style.zIndex=idx-1; = win.nextSibling; var tit = obj.parentNode; var pesan = tit.nextSibling; var flg = msg.style.display=="tidak ada"; tinggi) + parseInt(tit.style.height) + 2*2; sha.style.height = win.style.height; msg.style.display = "blok"; .style.height = parseInt(tit.style.height) + 2*2; sha.style.height = win.style.height; obj.innerHTML = "2"; //Buat sebuah objek; fungsi xWin(id,w,h,l,t,tit,msg) { indeks = indeks+2; ini.id = id; ini.lebar = w; kiri = l; ini.atas = t; ini.zIndex = indeks; ini.judul = tit; ini.pesan = pesan; ini.obj = null; ; fungsi bulid() { var str = "" + "<div id=xMsg" + this.id + " " + "style='" + "z-index:" + this.zIndex + ";" :" + ini.lebar + ";" + "tinggi:" + ini.tinggi + ";" + "kiri:" + ini.kiri + ";" + "atas:" + ini.atas + ";" + "warna latar belakang:" + normal + ";" + "warna:" + normal + ";" + "ukuran font:8pt;" + "keluarga font: Tahoma;" + "posisi:absolute;" kursor:default;" + "border:2px solid " + normal + ";" + "' " + "onmousedown='getFocus(this)'>" + "<div " + "style='" + "warna latar :" + normal + ";" + "lebar:" + (ini.lebar-2*2) + ";" + "tinggi:20;" + "warna:putih;" + "' " + "onmousedown=' startDrag(ini)' " + "onmouseup='stopDrag(ini)' " + "onmousemove='drag(ini)' " + "ondblclick='min(ini.childNodes[1])'" + ">" + " <span style='width:" + (this.width-2*12-4) + ";padding-left:3px;'>" + this.title + "</span>" + "<span style=' lebar:12;lebar batas:0px;warna:putih;keluarga font:webdings;' onclick='min(ini)'>0</span>" + "<span style='width:12;lebar batas :0px;color:white;font-family:webdings;' onclick='ShowHide(""+this.id+"",null)'>r</span>" + "</div>" + "< div style='" + "width:100%;" + "height:" + (this.height-20-4) + ";" + "background-color:white;" + "line-height:14px;" + "kata-break:break-all;" + "padding:3px;" + "'>" + pesan ini + "</div>" + "</div>" + "<div id=xMsg" + ini.id + "bg style='" + "lebar:" + ini.lebar + ";" + "tinggi:" + ini.tinggi + ";" + "atas:" + ini.atas + ";" "kiri:" + ini.kiri + ";" + "z-index:" + (ini.zIndex-1) + ";" + "posisi:absolute;" + "warna latar:hitam;" :alpha(opacity=40);" + "'></div>"; document.body.insertAdjacentHTML("beforeEnd",str); } //Tampilkan fungsi jendela tersembunyi ShowHide(id,dis){ var bdisplay = ( dis==null)?((document.getElementById("xMsg"+id).style.display=="")?"none":""):dis document.getElementById("xMsg"+id).style. tampilan = bdisplay; document.getElementById("xMsg"+id+"bg").style.display = bdisplay; { var a = new xWin("1",160,200,200,200,"Jendela 1","xWin <br> Jendela Div Pop Keren<br>Versi:1.0<br>2002-8-13"); var b = xWin baru ("2",240,200,100,100,"Window 2","Selamat datang mengunjungi situs web pribadi saya:<br><a href=http://www.youthfly.net target=_blank>http://www.youthfly.net< /a><br>anducanalsosignmyguestbookat:<br><ahref=http://www ... youthfly.net</a><br><br>thx!!!=)..."); var c = new xWin("3",200,160,250,50,"Window 3","Hak Cipta oleh <a href='mailto:webmaster#youthfly.net'>Wildwind</a>!"); ");//Sembunyikan jendela 1 } window.onload = inisialisasi; //--> </script> </head> <base target="_blank"> <body onselectstart='return false' oncontextmenu='return false' > <a onclick="ShowHide('1',null);return false;" href="">Jendela 1</a> <a onclick="ShowHide('2',null);return false;" "">Jendela 2</a> <a onclick="ShowHide('3',null);return false;" href="">Jendela 3</a> </body> </html>