Indonesia
Kode efek khusus halaman web, ketika Anda mengklik koneksi dengan mouse di halaman web, jendela prompt kecil yang dipersonalisasi akan muncul di halaman web. Efeknya cukup bagus!
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transisi//EN"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=gb2312"> <title>Jendela prompt, downcodes.com</title> <SCRIPT bahasa=javascript type=text/javascript> function setCopy(_sTxt){try{clipboardData.setData('Text',_sTxt)}catch(e){}} dialog fungsi(){ var titile = ''; var lebar = 300; var tinggi = 180; var src = ""; var path = ""; ="lebar:62px;tinggi:22px;batas:0;latar belakang:url('http://www.downcodes.com/upfiles/20070815/20070815174335_smb_btn_bg.gif');tinggi garis: 20px;" value="Konfirmasi" onclick="dialog baru().reset();" /> <input id="dialogCancel" type="button" style="width:62px;height:22px;border:0; background:url('http://www.downcodes.com/upfiles/20070815/20070815174335_smb_btn_bg.gif');line-height:20px;" value="Batal" onclick="dialog baru( ).reset();" />'; var sClose = '<input type="image" id="dialogBoxClose" onclick="dialog baru().reset();" src="http://www .downcodes.com/upfiles/20070815/20070815174316_dialogClose0.gif" border="0" width="17" height="17" onmouseover="this.src='http://www.downcodes. com/upfiles/20070815/20070815174325_dialogCloseF.gif';" onmouseout="this.src='http://www.downcodes.com/upfiles/20070815/20070815174316_dialogClose0.gif'; " align="absmiddle" />'; var sBody = ' <table id="dialogBodyBox" border="0" align="center" cellpadding="0" Cellspacing="0"> <tr height="10 "><td colspan="4"></td></tr> <tr> <td width="10"></td> <td width="80" align="center" valign= "absmiddle"><img id="dialogBoxFace" src="http://www.downcodes.com/upfiles/20070815/20070815174300_3.gif" /></td> <td id="dialogMsg " style="font-size:12px;color:#000;"></td> <td width="10"></td> </tr> <tr height="10"><td colspan="4" align="center"></td></tr> <tr><td id="dialogFunc" colspan="4" align="center">' + sFunc + '</td> </tr> <tr height="10"><td colspan="4" align="center"></td></tr> </tabel> '; var sBox = ' <id tabel ="dialogBox" width="' + lebar + '" border="0" cellpadding="0" Cellspacing="0" style="border:1px solid #000;display:none;z-index:10;"> <tr height="1" bgcolor="#D6E3EB"><td></td></tr> <tr height="25" bgcolor="#6795B4"> <td> <tabel onselectstart= "kembalikan salah;" style = "-moz-user-select: tidak ada;" lebar = "100%" perbatasan = "0" cellpadding = "0" sel spasi = "0"> <tr> <td lebar = " 6"></td> <td id="dialogBoxTitle" onmousedown="dialog baru().moveStart(event, 'dialogBox')" style="color:#fff;cursor:move;ukuran font: 12px;font-weight:bold;">Informasi perintah sistem</td> <td id="dialogClose" width="27" align="right" valign="middle"> ' + sClose + ' </ td> <td width="6"></td> </tr> </tabel> </td> </tr> <tr height="2" bgcolor="#EDEDED"> <td></td></tr> <tr id="dialogHeight" style="height:' + tinggi + '"> <td id="dialogBody" style="background:#fff;color:# 000;">' + sBody + '</td> </tr> </table> <div id="dialogBoxShadow" style="display:none;z-index:9;"></div> '; function $(_sId){return document.getElementById(_sId)} this.show = function(){$('dialogBodyBox') ? function(){} : this.init();this.middle('dialogBox ');this.shadow();} this.reset = function(){this.hideModule('select', '');$('dialogBox').style.display='none';$('dialogBoxShadow' ).style.display = "tidak ada";$('dialogBody').innerHTML = sBody;} this.html = function(_sHtml){$("dialogBody").innerHTML = _sHtml;this.show();} ini .init = function(){ $('dialogCase') ? $('dialogCase').parentNode.removeChild($('dialogCase')) : function(){}; ; oDiv.id = "dialogCase"; oDiv.innerHTML = sBox; dokumen.body.appendChild(oDiv); .display = ''; if($(_sId).addEventListener){ if($(_sId).act){$(_sId).removeEventListener('klik', function(){eval($(_sId).act) }, false);} $(_sId).act = _sFuc; $(_sId).addEventListener('klik', function(){eval(_sFuc)}, false); ){$(_sId).detachEvent('onclick', function(){eval($(_sId).act)});} $(_sId).act = _sFuc; $(_sId).attachEvent('onclick', function(){eval(_sFuc)}); } } } ini.bayangan = fungsi(){ var oShadow = $('dialogBoxShadow'); var oDialog = $('dialogBox'); posisi'] = "mutlak"; oBayangan['gaya']['latar belakang'] = "#000; oBayangan['gaya']['tampilan'] = "; ] = "0,2"; oBayangan['gaya']['filter'] = "alfa(opasitas=20)"; oBayangan['gaya']['atas'] = oDialog.offsetTop + 6; ]['kiri'] = oDialog.offsetLeft + 6; oShadow['style']['width'] = oDialog.offsetWidth; oShadow['style']['height'] = oDialog.offsetHeight; function(_sUrl, _sMode){ this.show(); if(!_sMode || _sMode == "tidak" || _sMode == "ya"){ $("dialogBody").innerHTML = "<iframe id=' dialogFrame' width='100%' height='100%' frameborder='0' scrolling='" + _sMode + "'></iframe>"; $("dialogFrame").src = _sUrl; } } ini. showWindow = function(_sUrl, _iWidth, _iHeight, _sMode){ var oWindow; var sLeft = (layar.lebar) ? (layar.lebar - _iWidth)/2 : 0; - _iHeight)/2 : 0; if(window.showModalDialog && _sMode == "m"){ oWindow = window.showModalDialog(_sUrl,"","dialogWidth:" + _iWidth + "px;dialogheight:" + _iHeight + " px"); } else { oWindow = window.open(_sUrl, '', 'height=' + _iHeight + ', width=' + _iWidth + ', top=' + sTop + ', kiri=' + sLeft + ' , bilah alat=tidak, bilah menu=tidak, bilah gulir=' + _sMode + ', dapat diubah ukurannya=tidak,lokasi=tidak, status=tidak'); } this.event = function(_sMsg, _sOk, _sCancel, _sClose){ $( 'dialogFunc').innerHTML = sFunc; $('dialogClose').innerHTML = sTutup; $('dialogBodyBox') == null $('dialogBody').innerHTML = sBody : function(){}; dialogMsg') ? $('dialogMsg').innerHTML = _sMsg : function(){}; ini.show(); _sOk ? ini.button('dialogOk', _sOk) |. : $('dialogOk').style.display = 'tidak ada'; 'dialogBoxClose', _sClose) : function(){}; //_sOk ? ini.button('dialogOk', _sOk) : _sOk == "" ? = 'tidak ada'; //_sCancel ? this.button('dialogCancel', _sCancel) : _sCancel == "" ? function(){} : $('dialogCancel').style.display = 'tidak ada'; set = fungsi(_oAttr, _sVal){ var oShadow = $('dialogBoxShadow'); var oDialog = $('dialogBox'); var oHeight = $('dialogHeight'); _oAttr){ kasus 'judul': $('dialogBoxTitle').innerHTML = _sVal; judul = _sVal; istirahat; kasus 'lebar': oDialog['gaya']['lebar'] = _sVal; kasus 'tinggi': oTinggi['gaya']['tinggi'] = _sVal; tinggi = _sVal; istirahat; kasus 'src': if(parseInt(_sVal) > 0){ $('dialogBoxFace') ? dialogBoxFace').src = jalur + _sVal + '.gif' : function(){}; }else{ $('dialogBoxFace') ? $('dialogBoxFace').src = _sVal : function(){} } src = _sVal; istirahat; } } ini.tengah('kotakdialog'); oBayangan['gaya']['atas'] = oDialog.offsetTop + 6; oBayangan['gaya']['kiri'] = oDialog.offsetLeft + 6; oShadow['style']['width'] = oDialog.offsetWidth; oShadow['style']['height'] = oDialog.offsetHeight; } this.moveStart = fungsi (peristiwa, _sId){ var oObj = $ (_sId); oObj.onmousemove = mousemove; oObj.onmouseup = mouseup; oObj.setCapture ? oObj.setCapture() : function(){}; oEvent.clientX, y : oEvent.clientY}; var backData = {x : parseInt(oObj.style.top), y : parseInt(oObj.style.left)}; fungsi mousemove(){ var oEvent = window.event ? window.event : acara; var iLeft = oEvent.clientX - dragData["x"] + parseInt(oObj.style.left); var iTop = oEvent.clientY - dragData["y"] + parseInt(oObj.style.top) ); oObj.style.left = iLeft; oObj.style.top = iTop; $('dialogBoxShadow').style.left = iLeft + 6 $('dialogBoxShadow').style.top = iTop + 6; {x: oEvent.clientX, y: oEvent.clientY}; } fungsi mouseup(){ var oEvent = window.event ? window.event : acara; oObj.onmousemove = null; < 1 ||. oEvent.clientY < 1 ||. oEvent.clientX > dokumen.body.clientWidth ||. oEvent.clientY > document.body.clientHeight){ oObj.style.left = backData.y; .x; $('dialogBoxShadow').style.left = backData.y + 6; $('dialogBoxShadow').style.top = backData.x + 6; } oObj.releaseCapture ? ){}; } } this.hideModule = fungsi(_sType, _sDisplay){ var aIframe = induk.document.getElementsByTagName("iframe");aIframe=0; untuk (var i = 0; i < aType.length; i++){ aType[i].style.display = _sDisplay; } untuk (var j = 0; j < aIframe.length; j++){ iChildObj = document.frames ? dokumen.bingkai[j] : aIframe[j].contentWindow; iChildLen = iChildObj.document.body.getElementsByTagName(_sType).length; untuk (var k = 0; k < iChildLen; k++){ iChildObj.document.body.getElementsByTagName (_sType)[k].style.display = _sDisplay; } } } this.middle = function(_sId){ document.getElementById(_sId)['style']['display'] = ''; )['gaya']['posisi'] = "mutlak"; document.getElementById(_sId)['style']['kiri'] = (document.body.clientWidth / 2) - (document.getElementById(_sId) .offsetWidth / 2); document.getElementById(_sId)['style']['top'] = (document.body.clientHeight / 2 + document.body.scrollTop) - (document.getElementById(_sId).offsetHeight / 2 ); } } </script> </head> <BODY> <A onclick="setCopy('http://www.downcodes.com');new dialog().event(' URL perpustakaan efek khusus halaman web telah disalin ke clipboard sistem, Anda dapat menggunakan fungsi tempel (Ctrl+V atau tombol kanan mouse) untuk merekam atau mengirim ke teman Anda melalui perangkat lunak lain. ','void 0')" href="javascript:;">http://www.downcodes.com Klik untuk menyalin</A> <SCRIPT bahasa=javascript type=text/javascript>dialog baru().init( ) ;</SCRIPT> </BODY></HTML>