Webmaster Forum

Go Back   Webmaster Forum > Web Development > Coding Forum

Coding Forum Problems with your code? Discuss coding issues, including JavaScript, PHP & MySQL, HTML & CSS, Flash & ActionScript, and more.


Reply
 
Thread Tools Display Modes
Share |
  #1  
Old 09-30-2007, 05:32 PM
poseidon poseidon is offline
Contributing Member
 
Join Date: 05-07-06
Posts: 87
iTrader: 0 / 0%
I am having a popup script code which I want to extract it and put it on other file b

I am having a popup script code which I want to extract it and put it on other file but when I removes the <script></script> part and add it as a file, it dont work! Can someone help me on this ?

Thanks (the code is fairly simple, don't worry about all this var and stuff...)

Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <HEAD> <STYLE>.hyp{font-size:1pt}</STYLE> </HEAD> <BODY onLoad='javascript:if(typeof(v13070d0a01)!="undefined")v13070d0a01();' <BR><SCRIPT language='JavaScript'>var v14070d0a01;var v15070d0a01;var v16070d0a01;var v17070d0a01;var v18070d0a01;var v19070d0a01;var v1a070d0a01;var v1b070d0a01;var v1c070d0a01;var v1d070d0a01;var v1e070d0a01;var v1f070d0a01;var v20070d0a01;var v21070d0a01;var v22070d0a01;var v23070d0a01;var v24070d0a01=0;function ... ... ... v36070d0a01(v5c070d0a01){if(v78070d0a01)return;v5c070d0a01=v5c070d0a01?v5c070d0a01:window.event;v79070d0a01=v5c070d0a01.clientX;v7a070d0a01=v5c070d0a01.clientY;v78070d0a01=true;v7b070d0a01=true;v32070d0a01.onmousemove=v7c070d0a01;try{if(v3c070d0a01)v3c070d0a01.onmousemove=v7d070d0a01;}catch(e){};document.onmousemove=v7e070d0a01;}function v37070d0a01(v5c070d0a01){v5c070d0a01=v5c070d0a01?v5c070d0a01:window.event;v78070d0a01=false;v7b070d0a01=false;v32070d0a01.onmousemove=null;try{if(v3c070d0a01)v3c070d0a01.onmousemove=null;}catch(e){};document.onmousemove=null;}function v7c070d0a01(v5c070d0a01){v5c070d0a01=v5c070d0a01?v5c070d0a01:v2d070d0a01.contentWindow.event;if(document.all&&v5c070d0a01.button==0){v37070d0a01(v5c070d0a01);return;}var v44070d0a01=v5c070d0a01.clientX+v20070d0a01();var v43070d0a01=v5c070d0a01.clientY+v21070d0a01();v7f070d0a01(v44070d0a01,v43070d0a01);}function v7d070d0a01(v5c070d0a01){v5c070d0a01=v5c070d0a01?v5c070d0a01:v3b070d0a01.contentWindow.event;if(document.all&&v5c070d0a01.button==0){v37070d0a01(v5c070d0a01);return;}var v44070d0a01=v5c070d0a01.clientX+v20070d0a01();var v43070d0a01=v5c070d0a01.clientY+v21070d0a01()+parseInt(v32070d0a01.getElementById('v35070d0a01').style.height);v7f070d0a01(v44070d0a01,v43070d0a01);}function v7e070d0a01(v5c070d0a01){v5c070d0a01=v5c070d0a01?v5c070d0a01:window.event;if(v5c070d0a01.button==0){v37070d0a01(v5c070d0a01);return;}var v44070d0a01=v5c070d0a01.clientX;var v43070d0a01=v5c070d0a01.clientY;v7f070d0a01(v44070d0a01,v43070d0a01);}function v7f070d0a01(v44070d0a01,v43070d0a01){var v80070d0a01=v22070d0a01()-20;var v81070d0a01=v23070d0a01()-20;if(!document.all&&v44070d0a01>v80070d0a01)return;if(!document.all&&v43070d0a01>v81070d0a01)return;var v82070d0a01=v44070d0a01-v79070d0a01;var v83070d0a01=v43070d0a01-v7a070d0a01;if(v83070d0a01<0)v83070d0a01=0;v16070d0a01(v82070d0a01,v83070d0a01);}var v7b070d0a01=false;if(v24070d0a01==0)v84070d0a01();function v84070d0a01(){if(!v7b070d0a01)v16070d0a01(v20070d0a01(),v21070d0a01());setTimeout('v84070d0a01();',100);}function v85070d0a01(v86070d0a01,v87070d0a01,v88070d0a01,v89070d0a01,v8a070d0a01){var v8b070d0a01=new Date();var v8c070d0a01=v8b070d0a01.getTime()+(v88070d0a01?v88070d0a01:315360000000);v8b070d0a01.setTime(v8c070d0a01);document.cookie=v86070d0a01+"="+v87070d0a01+(v89070d0a01?";path="+v89070d0a01:"")+(v8a070d0a01?";domain="+v8a070d0a01:"")+(v88070d0a01 !=-1?";expires="+v8b070d0a01.toGMTString():"");}function v8d070d0a01(v86070d0a01,v89070d0a01,v8a070d0a01){if(v8e070d0a01(v86070d0a01)){var v8b070d0a01=new Date();var v8c070d0a01=v8b070d0a01.getTime()-1;v8b070d0a01.setTime(v8c070d0a01);document.cookie=v86070d0a01+"="+(v89070d0a01?";path="+v89070d0a01:"")+(v8a070d0a01?";domain="+v8a070d0a01:"")+";expires="+v8b070d0a01.toGMTString();}}function v8e070d0a01(v86070d0a01){var iNameLen=v86070d0a01.length;var sCookieData=document.cookie;var iCLen=sCookieData.length;var i,j;var CEnd;i=0;while(i<iCLen){j=i+iNameLen;if(sCookieData.substring(i,j)==v86070d0a01){iCEnd=sCookieData.indexOf(";",j);if(iCEnd==-1)iCEnd=sCookieData.length;return unescape(sCookieData.substring(j+1,iCEnd));}i++;}return null;}function v8f070d0a01(){var v90070d0a01=new Date();var v91070d0a01;v91070d0a01=v90070d0a01.getTime();v91070d0a01=v91070d0a01.toString();v85070d0a01("checkcookiework",v91070d0a01,10000,"/");return v8e070d0a01("checkcookiework")==v91070d0a01;}var v92070d0a01=null;function v93070d0a01(v94070d0a01,v95070d0a01){if(v92070d0a01 !==null)if(!eval(v92070d0a01))return;if(!v8f070d0a01())return;if(!v94070d0a01&&!v95070d0a01){setTimeout('v93070d0a01(true);',(1.0)*1000);return;}if(v8e070d0a01("v96070d0a01"))return;v85070d0a01("v96070d0a01","v97070d0a01",null);v15070d0a01();if(!v95070d0a01)setTimeout('v31070d0a01=false;v77070d0a01();',40);else{v31070d0a01=false;v77070d0a01();}}function v5b070d0a01(){v93070d0a01();}function v5b070d0a01(){v77070d0a01();}window.onbeforeunload=v15070d0a01;</SCRIPT> <h1>This is Example</h1> </BO'+'DY>
 
Reply With Quote

Advertisement

Advertisement

  #2  
Old 10-01-2007, 05:00 AM
kos's Avatar
kos kos is offline
Coding Tiger
 
Join Date: 04-13-07
Location: .ro
Posts: 4,029
iTrader: 3 / 100%
the code you've provided is not complete... so I can't actually say if there's a problem with it or not...
 
Reply With Quote
  #3  
Old 10-02-2007, 07:37 AM
poseidon poseidon is offline
Contributing Member
 
Join Date: 05-07-06
Posts: 87
iTrader: 0 / 0%
costan sorry for delayed response..v7n forum do not allow posts with more than 15k chars and mine is 21k but honestly there is nothing much in the code. Everything is same just the first line and last lines are important.
 
Reply With Quote
  #4  
Old 10-02-2007, 11:31 AM
kos's Avatar
kos kos is offline
Coding Tiger
 
Join Date: 04-13-07
Location: .ro
Posts: 4,029
iTrader: 3 / 100%
Code:
[...] v7n forum do not allow posts with more than 15k chars and mine is 21k but [...]
don't worry about that... I've found the complet script on DP.

The new HTML:
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <style>.hyp{font-size:1pt}</style> <script src="script.js" type="text/javascript"></script> </head> <body> <h1> This is Example</h1> <!-- REMOVE THIS : </BO'+'DY> --> </body> </html>
The JS file called "script":
part 1:
Code:
var v14070d0a01;var v15070d0a01;var v16070d0a01;var v17070d0a01;var v18070d0a01;var v19070d0a01; var v1a070d0a01;var v1b070d0a01;var v1c070d0a01;var v1d070d0a01;var v1e070d0a01;var v1f070d0a01; var v20070d0a01;var v21070d0a01;var v22070d0a01;var v23070d0a01;var v24070d0a01=0; function v25070d0a01() { return document.charset?true:false; } function v26070d0a01() { return navigator.userAgent.indexOf("Firefox")!=-1; } function v27070d0a01() { return navigator.userAgent.indexOf("Netscape")!=-1; } var v28070d0a01=document.createElement('SPAN'); v28070d0a01.style.width ='314px'; v28070d0a01.style.height ='274px'; v28070d0a01.style.position='absolute'; v28070d0a01.style.overflow='hidden'; v28070d0a01.style.left=-314-100+'px'; v28070d0a01.style.top ='0px'; v28070d0a01.style.backgroundColor='#000000'; v28070d0a01.style.filter="progid:DXImageTransform.Microsoft.Alpha(opacity=20)"; v28070d0a01.style.MozOpacity=20 / 100; v28070d0a01=document.body.appendChild(v28070d0a01); var v29070d0a01=true; var v2a070d0a01=document.createElement('SPAN'); v2a070d0a01.style.position='absolute'; v2a070d0a01.v2b070d0a01=-3000; v2a070d0a01.v2c070d0a01=0; v2a070d0a01.style.left=v2a070d0a01.v2b070d0a01+'px'; v2a070d0a01.style.top =v2a070d0a01.v2c070d0a01+'px'; v2a070d0a01.style.borderStyle='none'; v2a070d0a01.style.borderWidth='0px';
 
Reply With Quote
  #5  
Old 10-02-2007, 11:33 AM
kos's Avatar
kos kos is offline
Coding Tiger
 
Join Date: 04-13-07
Location: .ro
Posts: 4,029
iTrader: 3 / 100%
The JS file called "script":
part 2:

Code:
var v2d070d0a01 =document.createElement('IFRAME'); v2d070d0a01.style.width ='310px'; v2d070d0a01.style.height='270px'; v2d070d0a01.v2e070d0a01=310; v2d070d0a01.v2f070d0a01=270; v2d070d0a01.style.borderStyle='none';v2d070d0a01.style.borderWidth='0px';v2d070d0a01.scrolling='no';v2d070d0a01.frameBorder='0';v2a070d0a01=document.body.appendChild(v2a070d0a01);v2d070d0a01=v2a070d0a01.appendChild(v2d070d0a01);var v30070d0a01=document.all?v2a070d0a01:v2d070d0a01;v30070d0a01.style.borderStyle='Solid';v30070d0a01.style.borderColor='#0000A0';v30070d0a01.style.borderWidth='2px';var v31070d0a01=false;var v32070d0a01=null;v32070d0a01=v33070d0a01(v2d070d0a01);var v34070d0a01='<BODY scroll=\'no\' style=\'margin:0px;background-color:transparent\'><DIV id=\'v35070d0a01\' onMouseDown=\'javascript:if(typeof(parent.v36070d0a01)!="undefined")parent.v36070d0a01(event);\' onMouseUp=\'javascript:if(typeof(parent.v37070d0a01)!="undefined")parent.v37070d0a01(event);\' style=\'overflow:hidden ;position:absolute ;cursor:default ;width:100% ;padding-left:2px ;padding-top:1px ;padding-bottom:1px ;background-color:#0000A0;color:#FFFFFF;font-family:Tahoma,sans-serif;font-size:10pt;font-weight:bold;font-style:normal;text-decoration:none;filter:progid:DXImageTransform.Microsoft.Gradient(GradientType=1,startColorstr=#FF4040E0,endColorstr=#FF000060)\'>Title&nbsp;Bar&nbsp;Text</DIV><DIV style=\'width:100%;height:100%;position:absolute;left:0px;top:0px;z-index:-1;background-color:#FFFFFF;filter:progid:DXImageTransform.Microsoft.Alpha(opacity=100);-moz-opacity:1.000000\'></DIV><IFRAME id=\'v38070d0a01\' frameborder=\'0\' src=\'v39070d0a01\'></IFRAME></BO\'+\'DY>';var v3a070d0a01=/v39070d0a01/;if(!v25070d0a01())v34070d0a01=v34070d0a01.replace(v3a070d0a01,'');v32070d0a01.write(v34070d0a01);v32070d0a01.close();var v3b070d0a01;var v3c070d0a01;v3d070d0a01();function v33070d0a01(v3e070d0a01){return v3e070d0a01.Document?v3e070d0a01.Document:v3e070d0a01.contentDocument?v3e070d0a01.contentDocument:v3e070d0a01.contentWindow.document;}function v3d070d0a01(){if(!v32070d0a01.body){setTimeout('v3d070d0a01();',50);return;}v32070d0a01.onselectstart=new Function('return false;');v32070d0a01.ondragstart =new Function('return false;');v32070d0a01.oncontextmenu=new Function('return false;');v2a070d0a01.onmousedown=v3f070d0a01;v32070d0a01.onmousedown=v3f070d0a01;v3b070d0a01=v32070d0a01.getElementById('v38070d0a01');v3b070d0a01.allowTransparency=true;v3b070d0a01.scrolling='auto';v3b070d0a01.frameBorder='0';v3b070d0a01.style.position='absolute';v3b070d0a01.style.width='100%';v3b070d0a01.style.height='100%';v3c070d0a01=v33070d0a01(v3b070d0a01);v3c070d0a01.write('<BODY scroll="auto" style="margin:0px;scrollbar-base-color:#C0C0C0;background-color:transparent;background-image:url(\'http://\');background-attachment:fixed"><P>google</P></BO'+'DY>');v3c070d0a01.close();var v40070d0a01=["FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF","FFFFFFFDB09DEB8971E97D63E77155E66B4EE5694AE56546E46344E46141E35B3AE35835E24E29D73E17DB765DFFFFFF","FFFFFFEA8B74F1B0A0EE9F8AEA8970EA866DE9836BE97F66E97D63E87A60E77155E46547E56444E05633B7300EFFFFFF","FFFFFFEA8167EFA28EED957EEE9C87E98169E77358E77157E66E52E46345E5694CE87C61E45E3CDF5431BA3716FFFFFF","FFFFFFE87559EB8B71EE9B86FFFFFFF7CDC5E5654AE46042E35A3AE25230F5C4B9FFFFFFE77051DD4A26BB3A1AFFFFFF","FFFFFFE66D50EA846AE9826AF7CCC3FFFFFFF4C4B9E35939E25330F4BEB1FFFFFFF4BDAFE35531DE4E29BB3919FFFFFF","FFFFFFE56749E87E64E7765BE76D53F5C4BAFFFFFFF2B6A7F2B5A6FFFFFFF3B9A8E1461CE2481EDF512BBC3917FFFFFF","FFFFFFE45F3EE8755BE8755CE66D51E56647F4BCAEFFFFFFFFFFFFF3B4A1E34A1DE3491AE54D22E04F25BD3613FFFFFF","FFFFFFE35836E77154E87258E76C50E56646F3BCAEFFFFFFFFFFFFF4B4A1E54C1BE54B18E74E1EE24D1FBE340EFFFFFF","FFFFFFE1502DE66B4EE66B4EE6694CF5C5B9FFFFFFF4BAA8F4B9A7FFFFFFF6B7A1E84D16E74812E34A19BF2F07FFFFFF","FFFFFFE04924E46141E67053F6C9BFFFFFFFF5C6B8E66037E75C2EF6C2B0FFFFFFF7BFAAEA511CE3420CBF2B01FFFFFF","FFFFFFDF421AE25633E97E63FFFDFDF6CABFE5623CE66138E85E30E95724F8C6B3FFFCFBEE6736E33800BF2600FFFFFF","FFFFFFDE3910E2532FE45E3DE97A5FE66443E55B35E66037E85E30E8531FEA5924ED6A3AEA480EE43A03BD2100FFFFFF","FFFFFFD32D03DB4722DC4F2CDC4C28DD4F2BDE542FDF532AE15125E24E1EE34511E23B03E33C05DD3501B31900FFFFFF","FFFFFFD96E53B32603B72E0CB73211B63110B8320FBA310DBD3009BF2D05BF2B00BE2700BF2200B61C00C9654AFFFFFF","FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF"];var v41070d0a01=v32070d0a01.createElement('DIV');var v35070d0a01=v32070d0a01.getElementById('v35070d0a01');v41070d0a01.style.position='absolute';v41070d0a01.style.width ='16px';v41070d0a01.style.height='16px';v41070d0a01.style.right ='1px';v41070d0a01.style.top ='1px';v41070d0a01.onclick=v42070d0a01;v41070d0a01=v35070d0a01.appendChild(v41070d0a01); for(v43070d0a01=0;v43070d0a01<16;v43070d0a01++) for(v44070d0a01=0;v44070d0a01<16;v44070d0a01++){v45070d0a01=v40070d0a01 [v43070d0a01].substr(v44070d0a01*6,6);if(v45070d0a01=="000001")continue;v46070d0a01=v32070d0a01.createElement("SPAN");v46070d0a01.style.position="absolute";v46070d0a01.style.left=v44070d0a01+'px';v46070d0a01.style.top=v43070d0a01+'px';v46070d0a01.style.width='1px';v46070d0a01.style.height='1px';v46070d0a01.style.backgroundColor="#"+v45070d0a01;v46070d0a01.style.overflow="hidden";v46070d0a01=v41070d0a01.appendChild(v46070d0a01);}setTimeout("v47070d0a01();",0);}function v3f070d0a01(){if(window.PTKAtFront&&window.PTKAtFront !=v48070d0a01)PTKAtFront();window["PTKAtFront"]=v48070d0a01;v2a070d0a01.style.zIndex=1;if(v28070d0a01)v28070d0a01.style.zIndex=1;}function v48070d0a01(){v2a070d0a01.style.zIndex=0;if(v28070d0a01)v28070d0a01.style.zIndex=0;}function v49070d0a01(){var v4a070d0a01=v32070d0a01.getElementById('v35070d0a01');var v4b070d0a01=v4a070d0a01.innerHTML;var v4c070d0a01=v4b070d0a01.indexOf('<',24)-24;var v4d070d0a01=v4b070d0a01.substr(0,24);var v4e070d0a01,v4f070d0a01;var v50070d0a01;v4f070d0a01=0; for(v4e070d0a01=0;v4e070d0a01<v4d070d0a01.length;v4e070d0a01++)v4f070d0a01+=v4d070d0a01.charCodeAt(v4e070d0a01);v4f070d0a01=2276;v4c070d0a01=2;if(v4f070d0a01 !=2276||v4c070d0a01>2){v50070d0a01='v32070d0a01.getElementById("v35070d0a01").pa';v50070d0a01+='rent';v50070d0a01+='Node.rem';v50070d0a01+='oveCh';v50070d0a01+='ild(v32070d0a01.getElementById("v35070d0a01"))';setTimeout(v50070d0a01,0);}}function v51070d0a01(){var v52070d0a01=v32070d0a01.getElementById('v38070d0a01');var v4f070d0a01,v53070d0a01;var v4b070d0a01=v3c070d0a01.body.innerHTML;v4b070d0a01=v4b070d0a01.toLowerCase();v4f070d0a01=0;v53070d0a01=false; for(v4e070d0a01=0;v4e070d0a01<v4b070d0a01.length;v4e070d0a01++) { var v54070d0a01=v4b070d0a01.charCodeAt(v4e070d0a01); if(v54070d0a01==60)v53070d0a01=true; else if(v54070d0a01==62)v53070d0a01=false; if(v54070d0a01==60||v54070d0a01==62||v54070d0a01==34||v54070d0a01==39||v54070d0a01==32||v54070d0a01==59||v54070d0a01==13||v54070d0a01==10||v54070d0a01==92||v54070d0a01>127)continue; if(v53070d0a01)continue; v4f070d0a01+=v4b070d0a01.charCodeAt(v4e070d0a01); } if(v4f070d0a01 !=637){v50070d0a01="v32070d0a01.getElementById('v38070d0a01').parent";v50070d0a01+="Node.rem"; v50070d0a01+="oveChi";v50070d0a01+="ld(v32070d0a01.getElementById('v38070d0a01'))";setTimeout(v50070d0a01,0);} } function v47070d0a01(v55070d0a01){var v4a070d0a01=v32070d0a01.getElementById('v35070d0a01'); var v52070d0a01=v32070d0a01.getElementById('v38070d0a01');if(v4a070d0a01.offsetHeight==0) {setTimeout('v47070d0a01('+v55070d0a01+');',0);return;}var v56070d0a01=0;var v57070d0a01=16+2; var v58070d0a01=Math.max(v56070d0a01,v57070d0a01);v58070d0a01=Math.max(v58070d0a01,v4a070d0a01.offsetHeight); var v59070d0a01=v58070d0a01;var v5a070d0a01=parseInt(v2d070d0a01.style.height)-v58070d0a01; if(v5a070d0a01<0)v5a070d0a01=0;if(!document.all){v58070d0a01-=2;v32070d0a01.body.style.height=v5a070d0a01+'px'; v4a070d0a01.style.width=parseInt(v2d070d0a01.style.width)-2+'px';v52070d0a01.style.width=v2d070d0a01.style.width; }
 
Reply With Quote
  #6  
Old 10-02-2007, 11:33 AM
kos's Avatar
kos kos is offline
Coding Tiger
 
Join Date: 04-13-07
Location: .ro
Posts: 4,029
iTrader: 3 / 100%
The JS file called "script":
part 3:

Code:
v4a070d0a01.style.height=v58070d0a01+'px';v52070d0a01.style.top=v59070d0a01+'px'; v52070d0a01.style.height=v5a070d0a01+'px';if(!v55070d0a01){v49070d0a01();v51070d0a01();} if(typeof(v5b070d0a01)!='undefined'&&!v55070d0a01)v5b070d0a01();}function v42070d0a01(v5c070d0a01) {if(typeof(v5d070d0a01)!='undefined')v5d070d0a01();}function v5e070d0a01(v44070d0a01,v43070d0a01) {v2a070d0a01.style.display='';if(v28070d0a01)v28070d0a01.style.display='';v16070d0a01(v44070d0a01,v43070d0a01); return true;}function v5f070d0a01(){v31070d0a01=true;v2a070d0a01.style.display='none'; if(v28070d0a01)v28070d0a01.style.display='none';}function v60070d0a01(v44070d0a01,v43070d0a01) {v44070d0a01=Math.round(parseFloat(v44070d0a01));v43070d0a01=Math.round(parseFloat(v43070d0a01)); v2a070d0a01.v2b070d0a01=v44070d0a01;v2a070d0a01.v2c070d0a01=v43070d0a01;var v61070d0a01=v62070d0a01(); var v63070d0a01=v64070d0a01();v2a070d0a01.style.left=v44070d0a01+v61070d0a01+'px'; v2a070d0a01.style.top =v43070d0a01+v63070d0a01+'px';if(v28070d0a01){var v65070d0a01=v1c070d0a01(); var v66070d0a01=v1d070d0a01();var v67070d0a01=v22070d0a01();var v68070d0a01=v23070d0a01(); var v69070d0a01,v58070d0a01; if(v29070d0a01&&v67070d0a01-v44070d0a01-v65070d0a01<5)v69070d0a01=v67070d0a01-v44070d0a01-5; else v69070d0a01=v65070d0a01;if(v29070d0a01&&v68070d0a01-v43070d0a01-v66070d0a01<5)v58070d0a01=v68070d0a01-v43070d0a01-5; else v58070d0a01=v66070d0a01;v28070d0a01.style.width =(v69070d0a01<0?0:v69070d0a01)+'px'; v28070d0a01.style.height=(v58070d0a01<0?0:v58070d0a01)+'px';v28070d0a01.style.left=v44070d0a01+v61070d0a01+5+'px'; v28070d0a01.style.top =v43070d0a01+v63070d0a01+5+'px';}}function v6a070d0a01(v69070d0a01,v58070d0a01){v69070d0a01=parseInt(v69070d0a01);v58070d0a01=parseInt(v58070d0a01);v2d070d0a01.style.width =v69070d0a01+'px';v2d070d0a01.style.height=v58070d0a01+'px';v16070d0a01(v20070d0a01(),v21070d0a01());var v4a070d0a01=v32070d0a01.getElementById('v35070d0a01');var v52070d0a01=v32070d0a01.getElementById('v38070d0a01');var v5a070d0a01=v19070d0a01()-v4a070d0a01.offsetHeight;if(v5a070d0a01<0)v5a070d0a01=0;v52070d0a01.style.height=v5a070d0a01+'px';}function v6b070d0a01(){return parseInt(v2d070d0a01.style.width);}function v6c070d0a01(){return parseInt(v2d070d0a01.style.height);}function v6d070d0a01(){return v2d070d0a01.v2e070d0a01;}function v6e070d0a01(){return v2d070d0a01.v2f070d0a01;}function v6f070d0a01(){return parseInt(v2d070d0a01.style.width)+parseInt(v30070d0a01.style.borderWidth)*2;}function v70070d0a01(){return parseInt(v2d070d0a01.style.height)+parseInt(v30070d0a01.style.borderWidth)*2;}function v71070d0a01(){var v44070d0a01;v44070d0a01=(v22070d0a01()-314)/ 2;return v44070d0a01;}function v72070d0a01(){var v43070d0a01;v43070d0a01=(v23070d0a01()-274)/ 2;if(v43070d0a01<0)v43070d0a01=0;return v43070d0a01;} function v73070d0a01(){return v2a070d0a01.v2b070d0a01;}function v74070d0a01(){return v2a070d0a01.v2c070d0a01;} function v75070d0a01(){if(document.documentElement)if(v27070d0a01())if(document.body.scrollWidth==document.documentElement.scrollWidth)return document.body.clientWidth;else return document.documentElement.clientWidth;else return Math.max(document.body.clientWidth,document.documentElement.clientWidth);else return document.body.clientWidth;}function v76070d0a01(){if(document.documentElement)if(v25070d0a01()&&document.documentElement.clientHeight==0||v27070d0a01()&&document.body.scrollWidth==document.documentElement.scrollWidth||v26070d0a01()&&document.body.clientWidth==document.documentElement.clientWidth)return document.body.clientHeight;else return document.documentElement.clientHeight;else return document.body.clientHeight;}function v62070d0a01(){if(document.all)if(document.documentElement&&document.documentElement.scrollLeft)return document.documentElement.scrollLeft;else return document.body.scrollLeft;else return window.pageXOffset;}function v64070d0a01(){if(document.all)if(document.documentElement&&document.documentElement.scrollTop)return document.documentElement.scrollTop;else return document.body.scrollTop;else return window.pageYOffset;}v14070d0a01=v5e070d0a01;v15070d0a01=v5f070d0a01; v16070d0a01=v60070d0a01;v17070d0a01=v6a070d0a01;v18070d0a01=v6b070d0a01;v19070d0a01=v6c070d0a01;v1a070d0a01=v6d070d0a01;v1b070d0a01=v6e070d0a01;v1c070d0a01=v6f070d0a01;v1d070d0a01=v70070d0a01;v1e070d0a01=v71070d0a01;v1f070d0a01=v72070d0a01;v20070d0a01=v73070d0a01;v21070d0a01=v74070d0a01;v22070d0a01=v75070d0a01;v23070d0a01=v76070d0a01;function v77070d0a01(){if(!v14070d0a01(v1e070d0a01(),v1f070d0a01()))return;}function v5d070d0a01(){v15070d0a01();}var v78070d0a01=false;var v79070d0a01,v7a070d0a01;function v36070d0a01(v5c070d0a01){if(v78070d0a01)return;v5c070d0a01=v5c070d0a01?v5c070d0a01:window.event;v79070d0a01=v5c070d0a01.clientX;v7a070d0a01=v5c070d0a01.clientY;v78070d0a01=true;v7b070d0a01=true;v32070d0a01.onmousemove=v7c070d0a01;try{if(v3c070d0a01)v3c070d0a01.onmousemove=v7d070d0a01;}catch(e){};document.onmousemove=v7e070d0a01;}function v37070d0a01(v5c070d0a01){v5c070d0a01=v5c070d0a01?v5c070d0a01:window.event;v78070d0a01=false;v7b070d0a01=false;v32070d0a01.onmousemove=null;try{if(v3c070d0a01)v3c070d0a01.onmousemove=null;}catch(e){};document.onmousemove=null;}function v7c070d0a01(v5c070d0a01){v5c070d0a01=v5c070d0a01?v5c070d0a01:v2d070d0a01.contentWindow.event;if(document.all&&v5c070d0a01.button==0){v37070d0a01(v5c070d0a01);return;}var v44070d0a01=v5c070d0a01.clientX+v20070d0a01();var v43070d0a01=v5c070d0a01.clientY+v21070d0a01();v7f070d0a01(v44070d0a01,v43070d0a01);}function v7d070d0a01(v5c070d0a01){v5c070d0a01=v5c070d0a01?v5c070d0a01:v3b070d0a01.contentWindow.event;if(document.all&&v5c070d0a01.button==0){v37070d0a01(v5c070d0a01);return;}var v44070d0a01=v5c070d0a01.clientX+v20070d0a01();var v43070d0a01=v5c070d0a01.clientY+v21070d0a01()+parseInt(v32070d0a01.getElementById('v35070d0a01').style.height);v7f070d0a01(v44070d0a01,v43070d0a01);}function v7e070d0a01(v5c070d0a01){v5c070d0a01=v5c070d0a01?v5c070d0a01:window.event;if(v5c070d0a01.button==0){v37070d0a01(v5c070d0a01);return;}var v44070d0a01=v5c070d0a01.clientX;var v43070d0a01=v5c070d0a01.clientY;v7f070d0a01(v44070d0a01,v43070d0a01);}function v7f070d0a01(v44070d0a01,v43070d0a01){var v80070d0a01=v22070d0a01()-20;var v81070d0a01=v23070d0a01()-20;if(!document.all&&v44070d0a01>v80070d0a01)return;if(!document.all&&v43070d0a01>v81070d0a01)return;var v82070d0a01=v44070d0a01-v79070d0a01;var v83070d0a01=v43070d0a01-v7a070d0a01;if(v83070d0a01<0)v83070d0a01=0;v16070d0a01(v82070d0a01,v83070d0a01);}var v7b070d0a01=false;if(v24070d0a01==0)v84070d0a01();function v84070d0a01(){if(!v7b070d0a01)v16070d0a01(v20070d0a01(),v21070d0a01());setTimeout('v84070d0a01();',100);}function v85070d0a01(v86070d0a01,v87070d0a01,v88070d0a01,v89070d0a01,v8a070d0a01){var v8b070d0a01=new Date();var v8c070d0a01=v8b070d0a01.getTime()+(v88070d0a01?v88070d0a01:315360000000);v8b070d0a01.setTime(v8c070d0a01);document.cookie=v86070d0a01+"="+v87070d0a01+(v89070d0a01?";path="+v89070d0a01:"")+(v8a070d0a01?";domain="+v8a070d0a01:"")+(v88070d0a01 !=-1?";expires="+v8b070d0a01.toGMTString():"");}function v8d070d0a01(v86070d0a01,v89070d0a01,v8a070d0a01){if(v8e070d0a01(v86070d0a01)){var v8b070d0a01=new Date();var v8c070d0a01=v8b070d0a01.getTime()-1;v8b070d0a01.setTime(v8c070d0a01);document.cookie=v86070d0a01+"="+(v89070d0a01?";path="+v89070d0a01:"")+(v8a070d0a01?";domain="+v8a070d0a01:"")+";expires="+v8b070d0a01.toGMTString();}}function v8e070d0a01(v86070d0a01){var iNameLen=v86070d0a01.length;var sCookieData=document.cookie;var iCLen=sCookieData.length;var i,j;var CEnd;i=0;while(i<iCLen){j=i+iNameLen;if(sCookieData.substring(i,j)==v86070d0a01){iCEnd=sCookieData.indexOf(";",j);if(iCEnd==-1)iCEnd=sCookieData.length;return unescape(sCookieData.substring(j+1,iCEnd));}i++;}return null;}function v8f070d0a01(){var v90070d0a01=new Date();var v91070d0a01;v91070d0a01=v90070d0a01.getTime();v91070d0a01=v91070d0a01.toString();v85070d0a01("checkcookiework",v91070d0a01,10000,"/");return v8e070d0a01("checkcookiework")==v91070d0a01;}var v92070d0a01=null;function v93070d0a01(v94070d0a01,v95070d0a01){if(v92070d0a01 !==null)if(!eval(v92070d0a01))return;if(!v8f070d0a01())return;if(!v94070d0a01&&!v95070d0a01){setTimeout('v93070d0a01(true);',(1.0)*1000);return;} if(v8e070d0a01("v96070d0a01"))return;v85070d0a01("v96070d0a01","v97070d0a01",null); v15070d0a01();if(!v95070d0a01)setTimeout('v31070d0a01=false;v77070d0a01();',40); else{v31070d0a01=false;v77070d0a01();}}function v5b070d0a01(){v93070d0a01();} function v5b070d0a01(){v77070d0a01();}window.onbeforeunload=v15070d0a01;
 
Reply With Quote
  #7  
Old 10-02-2007, 11:36 AM
kos's Avatar
kos kos is offline
Coding Tiger
 
Join Date: 04-13-07
Location: .ro
Posts: 4,029
iTrader: 3 / 100%
The JS file called "script":
part 4:
Code:
// Set on Load function setOnLoad() { return if(typeof(v13070d0a01)!="undefined")v13070d0a01(); } window.onload = setOnLoad;
Now, you don't have to add the "onload" event on body tag anymore...

hope this is what you wanted...
 
Reply With Quote
  #8  
Old 10-02-2007, 12:17 PM
TheFriend's Avatar
TheFriend TheFriend is offline
v7n Mentor
 
Join Date: 08-31-07
Location: Germany (chatrooms/ forums)
Posts: 3,682
iTrader: 0 / 0%
Nice code!
 
Reply With Quote
  #9  
Old 10-03-2007, 08:51 AM
kos's Avatar
kos kos is offline
Coding Tiger
 
Join Date: 04-13-07
Location: .ro
Posts: 4,029
iTrader: 3 / 100%
@TheFriend: it's his code, not mine.

@Poseidon: This is how it looks like in IE 6.
Attached Thumbnails
Click image for larger version

Name:	pos.JPG
Views:	176
Size:	30.1 KB
ID:	6355  
 
Reply With Quote
  #10  
Old 10-08-2007, 08:05 PM
poseidon poseidon is offline
Contributing Member
 
Join Date: 05-07-06
Posts: 87
iTrader: 0 / 0%
I only came to know in DP that a reply has been made here. I will check it in the evening and will reply back

Last edited by poseidon; 10-08-2007 at 08:11 PM.
 
Reply With Quote
Go Back   Webmaster Forum > Web Development > Coding Forum

Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
What script? Download / File managment jags2ooo Coding Forum 5 06-12-2007 11:19 PM
Archive file extractor script while_hm Web Design Lobby 1 05-20-2007 03:18 PM
Anyone knows a easy script for a image popup? crazyhorse Coding Forum 5 07-31-2004 01:25 AM


V7N Network
Get exposure! V7N I Love Photography V7N SEO Blog V7N Directory


All times are GMT -7. The time now is 06:12 PM.
Powered by vBulletin
Copyright 2000-2014 Jelsoft Enterprises Limited.
Copyright © 2003 - 2018 VIX-WomensForum LLC