한국어
웹 페이지 특수 효과 코드, 웹 페이지에서 마우스로 연결을 클릭하면 작은 개인 프롬프트 창이 웹 페이지에 나타납니다. 효과가 꽤 좋아요!
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=gb2312"> <title>프롬프트 창, downcodes.com</title> <SCRIPT 언어=javascript type=text/javascript> 함수 setCopy(_sTxt){try{clipboardData.setData('Text',_sTxt)}catch(e){}} 함수 대화 상자(){ var titile = ''; var height = 180; var src = ""; var sFunc = '<input id="dialogOk" type="button" ="너비:62px;높이:22px;테두리:0;배경:url('http://www.downcodes.com/upfiles/20070815/20070815174335_smb_btn_bg.gif');줄 높이: 20px;" value="확인" onclick="새 대화 상자().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="취소" onclick="새 대화 상자( ).reset();" />'; var sClose = '<input type="image" id="dialogBoxClose" onclick="새 대화 상자().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" cellpacing="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> </table> '; ="dialogBox" width="' + 너비 + '" border="0" cellpadding="0" cellpacing="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> <table onselectstart= "거짓 반환;" style="-moz-user-select:none;" width="100%" border="0" cellpadding="0" 세포 간격="0"> <tr> <td width=" 6"></td> <td id="dialogBoxTitle" onmousedown="새 대화 상자().moveStart(event, 'dialogBox')" style="color:#fff;cursor:move;font-size: 12px;font-weight:bold;">시스템 프롬프트 정보</td> <td id="dialogClose" width="27" align="right" valign="middle"> ' + sClose + ' </ td> <td width="6"></td> </tr> </table> </td> </tr> <tr height="2" bgcolor="#EDEDED"> <td></td></tr> <tr id="dialogHeight" style="height:' + height + '"> <td id="dialogBody" style="배경:#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 = "none";$('dialogBody').innerHTML = sBody;} this.html = function(_sHtml){$("dialogBody").innerHTML = _sHtml;this.show();} this .init = function(){ $('dialogCase') ? $('dialogCase').parentNode.removeChild($('dialogCase')) : function(){}; ; oDiv.id = "dialogCase"; oDiv.innerHTML = sBox; document.body.appendChild(oDiv); } this.button = function(_sId, _sFuc){ if($(_sId)){ $(_sId).style .display = ''; if($(_sId).addEventListener){ if($(_sId).act){$(_sId).removeEventListener('click', function(){eval($(_sId).act) }, false);} $(_sId).act = _sFuc; $(_sId).addEventListener('click', function(){eval(_sFuc)}, false) }else{ if($(_sId).act ){$(_sId).detachEvent('onclick', function(){eval($(_sId).act)});} $(_sId).act = $(_sId).attachEvent('onclick', function(){eval(_sFuc)}); } } } this.shadow = function(){ var oShadow = $('dialogBoxShadow') var oDialog = $('style'][' position'] = "절대"; oShadow['style']['배경'] = "#000" oShadow['style']['display'] = ""; ] = "0.2"; oShadow['style']['filter'] = "alpha(opacity=20)"; oShadow['style']['top'] = oDialog.offsetTop + 6; ]['left'] = oDialog.offsetLeft + 6; oShadow['style']['width'] = oDialog.offsetWidth; oShadow['style']['height'] = oDialog.offsetHeight; function(_sUrl, _sMode){ this.show(); if(!_sMode || _sMode == "no" || _sMode == "yes"){ $("dialogBody").innerHTML = "<iframe id=' DialogFrame' width='100%' height='100%'frameborder='0' scrolling='" + _sMode + "'></iframe>"; $("dialogFrame").src = _sUrl; } } 이. showWindow = function(_sUrl, _iWidth, _iHeight, _sMode){ var oWindow; var sLeft = (screen.width) ? (screen.width - _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 + ', left=' + sLeft + ' , 도구 모음=no, menubar=no, 스크롤바=' + _sMode + ', 크기 조정 가능=no,location=no, status=no') } } this.event = function(_sMsg, _sOk, _sCancel, _sClose){ $( 'dialogFunc').innerHTML = sFunc; $('dialogClose').innerHTML = $('dialogBodyBox') == null ? $('dialogBody').innerHTML = sBody: function(){}; DialogMsg') ? $('dialogMsg').innerHTML = _sMsg : function(){}; _sOk ? this.button('dialogOk', _sOk) | : $('dialogOk').style.display = 'none'; _sCancel ? this.button('dialogCancel', _sCancel) : $('dialogCancel').style.display = 'none'; 'dialogBoxClose', _sClose) : function(){}; //_sOk ? this.button('dialogOk', _sOk) : _sOk == "" ? function(){} : $('dialogOk').style.display = 'none'; //_sCancel ? this.button('dialogCancel', _sCancel) : _sCancel == "" ? function(){} : $('dialogCancel').style.display = 'none'; set = function(_oAttr, _sVal){ var oShadow = $('dialogBoxShadow'); var oDialog = $('dialogBox') var oHeight = $('dialogHeight'); if(_sVal != ''){ 스위치( _oAttr){ 케이스 '제목': $('dialogBoxTitle').innerHTML = _sVal; break; 케이스 'width': oDialog['style']['width'] = _sVal; case 'height': oHeight['style']['height'] = _sVal; height = _sVal; break; case 'src': if(parseInt(_sVal) > 0) $('dialogBoxFace') ? DialogBoxFace').src = 경로 + _sVal + '.gif' : function(){}; }else{ $('dialogBoxFace') ? $('dialogBoxFace').src = _sVal : function(){} src = _sVal; } } this.middle('style']['top'] = oDialog.offsetTop + 6; oDialog.offsetLeft + 6; oShadow['style']['width'] = oDialog.offsetWidth; oShadow['style']['height'] = oDialog.offsetHeight; } this.moveStart = function (event, _sId){ var oObj = $ (_sId); oObj.onmousemove; oObj.onmouseup = oObj.setCapture() : function(){}; var dragData = oEvent.clientX, y : oEvent.clientY}; var backData = {x :parseInt(oObj.style.top), y :parseInt(oObj.style.left)}; function mousemove(){ var oEvent = window.event ? window.event : 이벤트; var iLeft = oEvent.clientX - dragData["x"] +parseInt(oObj.style.left); var iTop = oEvent.clientY - dragData["y"] +parseInt(oObj.style.top ); oObj.style.left = iLeft; $('dialogBoxShadow').style.left = $('dialogBoxShadow').style.top = iTop + 6; {x: oEvent.clientX, y: oEvent.clientY}; } function mouseup(){ var oEvent = window.event : oObj.onmouseup = null; < 1 || oEvent.clientY < 1 || oEvent.clientX > document.body.clientWidth || oEvent.clientY > document.body.clientHeight){ oObj.style.left = oObj.style.top = backData .x; $('dialogBoxShadow').style.left = backData.y + 6; $('dialogBoxShadow').style.top = backData.x + 6; oObj.releaseCapture() : 함수( ){}; } } this.hideModule = function(_sType, _sDisplay){ var aIframe = parent.document.getElementsByTagName("iframe");aIframe=0; var aType = document.getElementsByTagName(_sType); for (var i = 0; i < aType.length; i++){ aType[i].style.display = _sDisplay; } for (var j = 0; j < aIframe.length; j++){ iChildObj = document.frames ? document.frames[j] : aIframe[j].contentWindow; iChildLen = iChildObj.document.body.getElementsByTagName(_sType).length; for (var k = 0; k < iChildLen; k++){ iChildObj.document.body.getElementsByTagName (_sType)[k].style.display = _sDisplay; } } } this.middle = function(_sId){ document.getElementById(_sId)['style']['display'] = ''; )['style']['position'] = "절대"; document.getElementById(_sId)['style']['left'] = (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');newDialog().event(' 웹 페이지 특수 효과 라이브러리 URL 시스템 클립보드에 복사한 경우(Ctrl+V 또는 마우스 오른쪽 버튼) 붙여넣기 기능을 사용하여 녹음하거나 다른 소프트웨어를 통해 친구에게 보낼 수 있습니다. ','void 0')" href="javascript:;">http://www.downcodes.com 복사하려면 클릭하세요.</A> <SCRIPT 언어=javascript type=text/javascript>newDialog().init( ) ;</SCRIPT> </BODY></HTML>