Your Ad Here Your Ad Here
Results 1 to 9 of 9

Thread: Javascript Help

  1. #1
    Poster
    Join Date
    May 2003
    Location
    North-east england UK
    Posts
    2,661
    could someone give me the code to allow me to do the following.

    all i want is a code that after the page say index.html has been opened for 1 second to pop up another window ontop say home.html of 300 by 300 in size for example. Can anyone help me out?


    edit, dont need a timer just to popup the window

  2. Internet, Programming and Graphics   -   #2
    BANNED
    Join Date
    Dec 2003
    Posts
    1,656
    Originally posted by Marius24@5 April 2004 - 16:45
    could someone give me the code to allow me to do the following.

    all i want is a code that after the page say index.html has been opened for 1 second to pop up another window ontop say home.html of 300 by 300 in size for example. Can anyone help me out?
    www.google.com


    pay back :sneaky1:

  3. Internet, Programming and Graphics   -   #3
    Poster
    Join Date
    May 2003
    Location
    North-east england UK
    Posts
    2,661
    Originally posted by gungrave+5 April 2004 - 16:49--></div><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td>QUOTE (gungrave @ 5 April 2004 - 16:49)</td></tr><tr><td id='QUOTE'> <!--QuoteBegin-Marius24@5 April 2004 - 16:45
    could someone give me the code to allow me to do the following.

    all i want is a code that after the page say index.html has been opened for 1 second to pop up another window ontop say home.html of 300 by 300 in size for example.&nbsp; Can anyone help me out?
    www.google.com


    pay back :sneaky1: [/b][/quote]
    tried and got nothing

  4. Internet, Programming and Graphics   -   #4
    BANNED
    Join Date
    Dec 2003
    Posts
    1,656
    Originally posted by Marius24+5 April 2004 - 16:57--></div><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td>QUOTE (Marius24 @ 5 April 2004 - 16:57)</td></tr><tr><td id='QUOTE'>
    Originally posted by gungrave@5 April 2004 - 16:49
    <!--QuoteBegin-Marius24
    @5 April 2004 - 16:45
    could someone give me the code to allow me to do the following.

    all i want is a code that after the page say index.html has been opened for 1 second to pop up another window ontop say home.html of 300 by 300 in size for example.* Can anyone help me out?

    www.google.com


    pay back :sneaky1:
    tried and got nothing [/b][/quote]
    try try again
    B)

  5. Internet, Programming and Graphics   -   #5
    BANNED
    Join Date
    Dec 2003
    Posts
    1,656
    function popup() {
    window.open("index.html","bannerpopup","height=300,width=300,scrollbars=no");
    }

  6. Internet, Programming and Graphics   -   #6
    Poster
    Join Date
    May 2003
    Location
    North-east england UK
    Posts
    2,661
    Originally posted by gungrave@5 April 2004 - 17:02
    function popup() {
    window.open("index.html","bannerpopup","height=300,width=300,scrollbars=no");
    }
    doesn&#39;t work +u missed the script tags etc

  7. Internet, Programming and Graphics   -   #7
    h1
    Guest
    Use setTimeout.
    Code:
    &#60;script type=&#34;text/javascript&#34; runat=&#34;local&#34;&#62;
     &nbsp; var menubar=&#34;yes&#34;; // would you like the menubar?
     &nbsp; var status=&#34;yes&#34;; // would you like the status bar?
     &nbsp; var titlebar=&#34;yes&#34;; // would you like the titlebar?
     &nbsp; var toolbar=&#34;yes&#34;; // would you like the toolbar?
     &nbsp; var width=&#34;300&#34;; // width of popup
     &nbsp; var height=&#34;300&#34;; // height of popup
     &nbsp; var ontop=&#34;yes&#34;; // would you like the popup to stay always on top?
     &nbsp; var timeout=&#34;1&#34;; // how many seconds do you want to wait for the popup?
     &nbsp; function popup&#40;&#41;
     &nbsp; {
     &nbsp; &nbsp; &nbsp;var str=&#34;menubar=&#34;+menubar+&#34;,status=&#34;+status+&#34;,toolbar=&#34;+toolbar+&#34;,width=&#34;+width+&#34;,height=&#34;+height+&#34;,width=&#34;+width+&#34;,titlebar=&#34;+titlebar+
    &#34;alwaysRaised=&#34;+ontop;
     &nbsp; &nbsp; &nbsp;home=window.open&#40;&#34;home.html&#34;,&#34;_blank&#34;,str&#41;;
     &nbsp; }
     &nbsp; var timeout=&#40;parseInt&#40;time&#41;*1000&#41;.toString&#40;&#41;;
     &nbsp; setTimeout&#40;&#34;popup&#40;&#41;;&#34;,timeout&#41;;
    &#60;/script&#62;
    Hope this helps.

  8. Internet, Programming and Graphics   -   #8
    Bowen747x's Avatar Poster
    Join Date
    Mar 2003
    Location
    New York
    Age
    31
    Posts
    632
    i have 1 thats pretty cool that would do that, but it also adds a password 2 eneter
    tYiA

  9. Internet, Programming and Graphics   -   #9
    h1
    Guest
    JavaScript password protection generally sucks.

    Make a 16-base UTF-8 SHA1 hash using this tool, then paste it into the below script. The page to pop up must be named the same as the hash.
    Code:
    &#60;script type=&#34;text/javascript&#34; runat=&#34;local&#34;&#62;
    
    // EDIT FOLLOWING
    
    var password=&#34;&#34;; // hexadecimal Unicode SHA-1 hash
    var menubar=&#34;yes&#34;; // would you like the menubar?
    var status=&#34;yes&#34;; // would you like the status bar?
    var titlebar=&#34;yes&#34;; // would you like the titlebar?
    var toolbar=&#34;yes&#34;; // would you like the toolbar?
    var width=&#34;300&#34;; // width of popup
    var height=&#34;300&#34;; // height of popup
    var ontop=&#34;yes&#34;; // would you like the popup to stay always on top?
    var timeout=&#34;1&#34;; // how many seconds do you want to wait for the popup?
    
    // NO FURTHER EDITING BEYOND THIS POINT
    
    var hexcase=0;var b64pad=&#34;&#34;;var chrsz=8;function hex_md4&#40;s&#41;{return binl2hex&#40;core_md4&#40;str2binl&#40;s&#41;,s.length*chrsz&#41;&#41;;}function b64_md4&#40;s&#41;{return binl2b64&#40;core_md4&#40;str2binl&#40;s&#41;,s.length*chrsz&#41;&#41;;}function str_md4&#40;s&#41;{return binl2str&#40;core_md4&#40;str2binl&#40;s&#41;,s.length*chrsz&#41;&#41;;}function hex_hmac_md4&#40;key,data&#41;{return binl2hex&#40;core_hmac_md4&#40;key,data&#41;&#41;;}function b64_hmac_md4&#40;key,data&#41;{return binl2b64&#40;core_hmac_md4&#40;key,data&#41;&#41;;}function str_hmac_md4&#40;key, data&#41;{return binl2str&#40;core_hmac_md4&#40;key, data&#41;&#41;;}function core_md4&#40;x, len&#41;{x&#91;len&#62;&#62;5&#93;|=0x80&#60;&#60;&#40;len%32&#41;;x&#91;&#40;&#40;&#40;len+64&#41;&#62;&#62;&#62;9&#41;&#60;&#60;4&#41;+14&#93;=len;var a=1732584193;var b=-271733879;var c=-1732584194;var d=271733878;for&#40;var i=0;i&#60;x.length;i+=16&#41;{var olda=a; var oldb=b;var oldc=c;var oldd=d;a=md4_ff&#40;a,b,c,d,x&#91;i+0&#93;,3&#41;;d=md4_ff&#40;d,a,b,c,x&#91;i+1&#93;,7&#41;;c=md4_ff&#40;c,d,a,b,x&#91;i+2&#93;,11&#41;;b=md4_ff&#40;b,c,d,a,x&#91;i+3&#93;,19&#41;;a=md4_ff&#40;a,b,c,d,x&#91;i+4&#93;,3&#41;;d=md4_ff&#40;d,a,b,c,x&#91;i+5&#93;,7&#41;;c=md4_ff&#40;c,d,a,b,x&#91;i+6&#93;,11&#41;;b=md4_ff&#40;b,c,d,a,x&#91;i+7&#93;,19&#41;;a=md4_ff&#40;a,b,c,d,x&#91;i+8&#93;,3&#41;;d=md4_ff&#40;d,a,b,c,x&#91;i+9&#93;,7&#41;;c=md4_ff&#40;c,d,a,b,x&#91;i+10&#93;,11&#41;;b=md4_ff&#40;b,c,d,a,x&#91;i+11&#93;,19&#41;;a=md4_ff&#40;a,b,c,d,x&#91;i+12&#93;,3&#41;;
    d=md4_ff&#40;d,a,b,c,x&#91;i+13&#93;,7&#41;;c=md4_ff&#40;c,d,a,b,x&#91;i+14&#93;,11&#41;;b=md4_ff&#40;b,c,d,a,x&#91;i+15&#93;,19&#41;;a=md4_gg&#40;a,b,c,d,x&#91;i+0&#93;,3&#41;;d=md4_gg&#40;d,a,b,c,x&#91;i+4&#93;,5&#41;;c=md4_gg&#40;c,d,a,b,x&#91;i+8&#93;,9&#41;;b=md4_gg&#40;b,c,d,a,x&#91;i+12&#93;,13&#41;;a=md4_gg&#40;a,b,c,d,x&#91;i+1&#93;,3&#41;;d=md4_gg&#40;d,a,b,c,x&#91;i+5&#93;,5&#41;;c=md4_gg&#40;c,d,a,b,x&#91;i+9&#93;,9&#41;;b=md4_gg&#40;b,c,d,a,x&#91;i+13&#93;,13&#41;;a=md4_gg&#40;a,b,c,d,x&#91;i+2&#93;,3&#41;;d=md4_gg&#40;d,a,b,c,x&#91;i+6&#93;,5&#41;;c=md4_gg&#40;c,d,a,b,x&#91;i+10&#93;,9&#41;;b=md4_gg&#40;b,c,d,a,x&#91;i+14&#93;,13&#41;;a=md4_gg&#40;a,b,c,d,x&#91;i+3&#93;,3&#41;;d=md4_gg&#40;d,a,b,c,x&#91;i+7&#93;,5&#41;;c=md4_gg&#40;c,d,a,b,x&#91;i+11&#93;,9&#41;;b=md4_gg&#40;b,c,d,a,x&#91;i+15&#93;,13&#41;;a=md4_hh&#40;a,b,c,d,x&#91;i+0&#93;,3&#41;;d=md4_hh&#40;d,a,b,c,x&#91;i+8&#93;,9&#41;;c=md4_hh&#40;c,d,a,b,x&#91;i+4&#93;,11&#41;;b=md4_hh&#40;b,c,d,a,x&#91;i+12&#93;,15&#41;;a=md4_hh&#40;a,b,c,d,x&#91;i+2&#93;,3&#41;;d=md4_hh&#40;d,a,b,c,x&#91;i+10&#93;,9&#41;;c=md4_hh&#40;c,d,a,b,x&#91;i+6&#93;,11&#41;;b=md4_hh&#40;b,c,d,a,x&#91;i+14&#93;,15&#41;;a=md4_hh&#40;a,b,c,d,x&#91;i+1&#93;,3&#41;;d=md4_hh&#40;d,a,b,c,x&#91;i+9&#93;,9&#41;;c=md4_hh&#40;c,d,a,b,x&#91;i+5&#93;,11&#41;;b=md4_hh&#40;b,c,d,a,x&#91;i+13&#93;,15&#41;;a=md4_hh&#40;a,b,c,d,x&#91;i+3&#93;,3&#41;;d=md4_hh&#40;d,a,b,c,x&#91;i+11&#93;,9&#41;;c=md4_hh&#40;c,d,a,b,x&#91;i+7&#93;,11&#41;;b=md4_hh&#40;b,c,d,a,x&#91;i+15&#93;,15&#41;;a=safe_add&#40;a,olda&#41;;b=safe_add&#40;b,oldb&#41;;c=safe_add&#40;c,oldc&#41;;d=safe_add&#40;d,oldd&#41;;}return Array&#40;a,b,c,d&#41;;}function md4_cmn&#40;q,a,b,x,s,t&#41;{return safe_add&#40;rol&#40;safe_add&#40;safe_add&#40;a,q&#41;,safe_add&#40;x,t&#41;&#41;,s&#41;,b&#41;;}function md4_ff&#40;a,b,c,d,x,s&#41;{return md4_cmn&#40;&#40;b&c&#41;|&#40;&#40;~b&#41;&d&#41;,a,0,x,s,0&#41;;}function md4_gg&#40;a,b,c,d,x,s&#41;{return md4_cmn&#40;&#40;b&c&#41;|&#40;b&d&#41;|&#40;c&d&#41;,a,0,x,s,1518500249&#41;;}function md4_hh&#40;a,b,c,d,x,s&#41;{return md4_cmn&#40;b^c^d,a,0,x,s,1859775393&#41;;}function core_hmac_md4&#40;key,data&#41;{var bkey=str2binl&#40;key&#41;;if&#40;bkey.length&#62;16&#41; bkey=core_md4&#40;bkey,key.length*chrsz&#41;;var ipad=Array&#40;16&#41;,opad=Array&#40;16&#41;;for&#40;var i=0;i&#60;16;i++&#41;{ipad&#91;i&#93;=bkey&#91;i&#93;^0x36363636;opad&#91;i&#93;=bkey&#91;i&#93;^0x5C5C5C5C;}var hash=core_md4&#40;ipad.concat&#40;str2binl&#40;data&#41;&#41;,512+data.length*chrsz&#41;;return core_md4&#40;opad.concat&#40;hash&#41;,512+128&#41;;}function safe_add&#40;x,y&#41;{var lsw=&#40;x&0xFFFF&#41;+&#40;y&0xFFFF&#41;;var msw=&#40;x&#62;&#62;16&#41;+&#40;y&#62;&#62;16&#41;+&#40;lsw&#62;&#62;16&#41;;return &#40;msw&#60;&#60;16&#41;|&#40;lsw&0xFFFF&#41;;}function rol&#40;num,cnt&#41;{return &#40;num&#60;&#60;cnt&#41;|&#40;num&#62;&#62;&#62;&#40;32-cnt&#41;&#41;;}function str2binl&#40;str&#41;{var bin=Array&#40;&#41;;var mask=&#40;1&#60;&#60;chrsz&#41;-1;for&#40;var i=0;i&#60;str.length*chrsz;i+=chrsz&#41;bin&#91;i&#62;&#62;5&#93;|=&#40;str.charCodeAt&#40;i/chrsz&#41;&mask&#41;&#60;&#60;&#40;i%32&#41;;return bin;}function binl2str&#40;bin&#41;{var str=&#34;&#34;;var mask=&#40;1&#60;&#60;chrsz&#41;-1;for&#40;var i=0;i&#60;bin.length*32;i+=chrsz&#41;str+=String.fromCharCode&#40;&#40;bin&#91;i&#62;&#62;5&#93;&#62;&#62;&#62;&#40;i%32&#41;&#41;&mask&#41;;return str;}function binl2hex&#40;binarray&#41;{var hex_tab=hexcase?&#34;0123456789ABCDEF&#34;&#58;&#34;0123456789abcdef&#34;;var str=&#34;&#34;;for&#40;var i=0;i&#60;binarray.length*4;i++&#41;{str+=hex_tab.charAt&#40;&#40;binarray&#91;i&#62;&#62;2&#93;&#62;&#62;&#40;&#40;i%4&#41;*8+4&#41;&#41;&0xF&#41;+hex_tab.charAt&#40;&#40;binarray&#91;i&#62;&#62;2&#93;&#62;&#62;&#40;&#40;i%4&#41;*8&#41;&#41;&0xF&#41;;}return str;}function binl2b64&#40;binarray&#41;{var tab=&#34;ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/&#34;;var str=&#34;&#34;;for&#40;var i=0;i&#60;binarray.length*4;i+=3&#41;{var triplet=&#40;&#40;&#40;binarray&#91;i&#62;&#62;2&#93;&#62;&#62;8*&#40;i%4&#41;&#41;&0xFF&#41;&#60;&#60;16&#41;|&#40;&#40;&#40;binarray&#91;i+1&#62;&#62;2&#93;&#62;&#62;8*&#40;&#40;i+1&#41;%4&#41;&#41;&0xFF&#41;&#60;&#60;8&#41;|&#40;&#40;binarray&#91;i+2&#62;&#62;2&#93;&#62;&#62;8*&#40;&#40;i+2&#41;%4&#41;&#41;&0xFF&#41;;for&#40;var j=0;j&#60;4;j++&#41;{if&#40;i*8+j*6&#62;binarray.length*32&#41;str+=b64pad;else str+=tab.charAt&#40;&#40;triplet&#62;&#62;6*&#40;3-j&#41;&#41;&0x3F&#41;;}}return str;}
    function hex_md5&#40;s&#41;{ return binl2hex&#40;core_md5&#40;str2binl&#40;s&#41;, s.length * chrsz&#41;&#41;;}
    function b64_md5&#40;s&#41;{ return binl2b64&#40;core_md5&#40;str2binl&#40;s&#41;, s.length * chrsz&#41;&#41;;}
    function str_md5&#40;s&#41;{ return binl2str&#40;core_md5&#40;str2binl&#40;s&#41;, s.length * chrsz&#41;&#41;;}
    function hex_hmac_md5&#40;key, data&#41; { return binl2hex&#40;core_hmac_md5&#40;key, data&#41;&#41;; }
    function b64_hmac_md5&#40;key, data&#41; { return binl2b64&#40;core_hmac_md5&#40;key, data&#41;&#41;; }
    function str_hmac_md5&#40;key, data&#41; { return binl2str&#40;core_hmac_md5&#40;key, data&#41;&#41;; }
    function core_md5&#40;x, len&#41;
    {
     &nbsp;x&#91;len &#62;&#62; 5&#93; |= 0x80 &#60;&#60; &#40;&#40;len&#41; % 32&#41;;
     &nbsp;x&#91;&#40;&#40;&#40;len + 64&#41; &#62;&#62;&#62; 9&#41; &#60;&#60; 4&#41; + 14&#93; = len;
     &nbsp;var a = &nbsp;1732584193;
     &nbsp;var b = -271733879;
     &nbsp;var c = -1732584194;
     &nbsp;var d = &nbsp;271733878;
    
     &nbsp;for&#40;var i = 0; i &#60; x.length; i += 16&#41;
     &nbsp;{
     &nbsp; &nbsp;var olda = a;
     &nbsp; &nbsp;var oldb = b;
     &nbsp; &nbsp;var oldc = c;
     &nbsp; &nbsp;var oldd = d;
    
     &nbsp; &nbsp;a = md5_ff&#40;a, b, c, d, x&#91;i+ 0&#93;, 7 , -680876936&#41;;
     &nbsp; &nbsp;d = md5_ff&#40;d, a, b, c, x&#91;i+ 1&#93;, 12, -389564586&#41;;
     &nbsp; &nbsp;c = md5_ff&#40;c, d, a, b, x&#91;i+ 2&#93;, 17, &nbsp;606105819&#41;;
     &nbsp; &nbsp;b = md5_ff&#40;b, c, d, a, x&#91;i+ 3&#93;, 22, -1044525330&#41;;
     &nbsp; &nbsp;a = md5_ff&#40;a, b, c, d, x&#91;i+ 4&#93;, 7 , -176418897&#41;;
     &nbsp; &nbsp;d = md5_ff&#40;d, a, b, c, x&#91;i+ 5&#93;, 12, &nbsp;1200080426&#41;;
     &nbsp; &nbsp;c = md5_ff&#40;c, d, a, b, x&#91;i+ 6&#93;, 17, -1473231341&#41;;
     &nbsp; &nbsp;b = md5_ff&#40;b, c, d, a, x&#91;i+ 7&#93;, 22, -45705983&#41;;
     &nbsp; &nbsp;a = md5_ff&#40;a, b, c, d, x&#91;i+ 8&#93;, 7 , &nbsp;1770035416&#41;;
     &nbsp; &nbsp;d = md5_ff&#40;d, a, b, c, x&#91;i+ 9&#93;, 12, -1958414417&#41;;
     &nbsp; &nbsp;c = md5_ff&#40;c, d, a, b, x&#91;i+10&#93;, 17, -42063&#41;;
     &nbsp; &nbsp;b = md5_ff&#40;b, c, d, a, x&#91;i+11&#93;, 22, -1990404162&#41;;
     &nbsp; &nbsp;a = md5_ff&#40;a, b, c, d, x&#91;i+12&#93;, 7 , &nbsp;1804603682&#41;;
     &nbsp; &nbsp;d = md5_ff&#40;d, a, b, c, x&#91;i+13&#93;, 12, -40341101&#41;;
     &nbsp; &nbsp;c = md5_ff&#40;c, d, a, b, x&#91;i+14&#93;, 17, -1502002290&#41;;
     &nbsp; &nbsp;b = md5_ff&#40;b, c, d, a, x&#91;i+15&#93;, 22, &nbsp;1236535329&#41;;
    
     &nbsp; &nbsp;a = md5_gg&#40;a, b, c, d, x&#91;i+ 1&#93;, 5 , -165796510&#41;;
     &nbsp; &nbsp;d = md5_gg&#40;d, a, b, c, x&#91;i+ 6&#93;, 9 , -1069501632&#41;;
     &nbsp; &nbsp;c = md5_gg&#40;c, d, a, b, x&#91;i+11&#93;, 14, &nbsp;643717713&#41;;
     &nbsp; &nbsp;b = md5_gg&#40;b, c, d, a, x&#91;i+ 0&#93;, 20, -373897302&#41;;
     &nbsp; &nbsp;a = md5_gg&#40;a, b, c, d, x&#91;i+ 5&#93;, 5 , -701558691&#41;;
     &nbsp; &nbsp;d = md5_gg&#40;d, a, b, c, x&#91;i+10&#93;, 9 , &nbsp;38016083&#41;;
     &nbsp; &nbsp;c = md5_gg&#40;c, d, a, b, x&#91;i+15&#93;, 14, -660478335&#41;;
     &nbsp; &nbsp;b = md5_gg&#40;b, c, d, a, x&#91;i+ 4&#93;, 20, -405537848&#41;;
     &nbsp; &nbsp;a = md5_gg&#40;a, b, c, d, x&#91;i+ 9&#93;, 5 , &nbsp;568446438&#41;;
     &nbsp; &nbsp;d = md5_gg&#40;d, a, b, c, x&#91;i+14&#93;, 9 , -1019803690&#41;;
     &nbsp; &nbsp;c = md5_gg&#40;c, d, a, b, x&#91;i+ 3&#93;, 14, -187363961&#41;;
     &nbsp; &nbsp;b = md5_gg&#40;b, c, d, a, x&#91;i+ 8&#93;, 20, &nbsp;1163531501&#41;;
     &nbsp; &nbsp;a = md5_gg&#40;a, b, c, d, x&#91;i+13&#93;, 5 , -1444681467&#41;;
     &nbsp; &nbsp;d = md5_gg&#40;d, a, b, c, x&#91;i+ 2&#93;, 9 , -51403784&#41;;
     &nbsp; &nbsp;c = md5_gg&#40;c, d, a, b, x&#91;i+ 7&#93;, 14, &nbsp;1735328473&#41;;
     &nbsp; &nbsp;b = md5_gg&#40;b, c, d, a, x&#91;i+12&#93;, 20, -1926607734&#41;;
    
     &nbsp; &nbsp;a = md5_hh&#40;a, b, c, d, x&#91;i+ 5&#93;, 4 , -378558&#41;;
     &nbsp; &nbsp;d = md5_hh&#40;d, a, b, c, x&#91;i+ 8&#93;, 11, -2022574463&#41;;
     &nbsp; &nbsp;c = md5_hh&#40;c, d, a, b, x&#91;i+11&#93;, 16, &nbsp;1839030562&#41;;
     &nbsp; &nbsp;b = md5_hh&#40;b, c, d, a, x&#91;i+14&#93;, 23, -35309556&#41;;
     &nbsp; &nbsp;a = md5_hh&#40;a, b, c, d, x&#91;i+ 1&#93;, 4 , -1530992060&#41;;
     &nbsp; &nbsp;d = md5_hh&#40;d, a, b, c, x&#91;i+ 4&#93;, 11, &nbsp;1272893353&#41;;
     &nbsp; &nbsp;c = md5_hh&#40;c, d, a, b, x&#91;i+ 7&#93;, 16, -155497632&#41;;
     &nbsp; &nbsp;b = md5_hh&#40;b, c, d, a, x&#91;i+10&#93;, 23, -1094730640&#41;;
     &nbsp; &nbsp;a = md5_hh&#40;a, b, c, d, x&#91;i+13&#93;, 4 , &nbsp;681279174&#41;;
     &nbsp; &nbsp;d = md5_hh&#40;d, a, b, c, x&#91;i+ 0&#93;, 11, -358537222&#41;;
     &nbsp; &nbsp;c = md5_hh&#40;c, d, a, b, x&#91;i+ 3&#93;, 16, -722521979&#41;;
     &nbsp; &nbsp;b = md5_hh&#40;b, c, d, a, x&#91;i+ 6&#93;, 23, &nbsp;76029189&#41;;
     &nbsp; &nbsp;a = md5_hh&#40;a, b, c, d, x&#91;i+ 9&#93;, 4 , -640364487&#41;;
     &nbsp; &nbsp;d = md5_hh&#40;d, a, b, c, x&#91;i+12&#93;, 11, -421815835&#41;;
     &nbsp; &nbsp;c = md5_hh&#40;c, d, a, b, x&#91;i+15&#93;, 16, &nbsp;530742520&#41;;
     &nbsp; &nbsp;b = md5_hh&#40;b, c, d, a, x&#91;i+ 2&#93;, 23, -995338651&#41;;
    
     &nbsp; &nbsp;a = md5_ii&#40;a, b, c, d, x&#91;i+ 0&#93;, 6 , -198630844&#41;;
     &nbsp; &nbsp;d = md5_ii&#40;d, a, b, c, x&#91;i+ 7&#93;, 10, &nbsp;1126891415&#41;;
     &nbsp; &nbsp;c = md5_ii&#40;c, d, a, b, x&#91;i+14&#93;, 15, -1416354905&#41;;
     &nbsp; &nbsp;b = md5_ii&#40;b, c, d, a, x&#91;i+ 5&#93;, 21, -57434055&#41;;
     &nbsp; &nbsp;a = md5_ii&#40;a, b, c, d, x&#91;i+12&#93;, 6 , &nbsp;1700485571&#41;;
     &nbsp; &nbsp;d = md5_ii&#40;d, a, b, c, x&#91;i+ 3&#93;, 10, -1894986606&#41;;
     &nbsp; &nbsp;c = md5_ii&#40;c, d, a, b, x&#91;i+10&#93;, 15, -1051523&#41;;
     &nbsp; &nbsp;b = md5_ii&#40;b, c, d, a, x&#91;i+ 1&#93;, 21, -2054922799&#41;;
     &nbsp; &nbsp;a = md5_ii&#40;a, b, c, d, x&#91;i+ 8&#93;, 6 , &nbsp;1873313359&#41;;
     &nbsp; &nbsp;d = md5_ii&#40;d, a, b, c, x&#91;i+15&#93;, 10, -30611744&#41;;
     &nbsp; &nbsp;c = md5_ii&#40;c, d, a, b, x&#91;i+ 6&#93;, 15, -1560198380&#41;;
     &nbsp; &nbsp;b = md5_ii&#40;b, c, d, a, x&#91;i+13&#93;, 21, &nbsp;1309151649&#41;;
     &nbsp; &nbsp;a = md5_ii&#40;a, b, c, d, x&#91;i+ 4&#93;, 6 , -145523070&#41;;
     &nbsp; &nbsp;d = md5_ii&#40;d, a, b, c, x&#91;i+11&#93;, 10, -1120210379&#41;;
     &nbsp; &nbsp;c = md5_ii&#40;c, d, a, b, x&#91;i+ 2&#93;, 15, &nbsp;718787259&#41;;
     &nbsp; &nbsp;b = md5_ii&#40;b, c, d, a, x&#91;i+ 9&#93;, 21, -343485551&#41;;
    
     &nbsp; &nbsp;a = safe_add&#40;a, olda&#41;;
     &nbsp; &nbsp;b = safe_add&#40;b, oldb&#41;;
     &nbsp; &nbsp;c = safe_add&#40;c, oldc&#41;;
     &nbsp; &nbsp;d = safe_add&#40;d, oldd&#41;;
     &nbsp;}
     &nbsp;return Array&#40;a, b, c, d&#41;;
    
    }
    
    /*
     * These functions implement the four basic operations the algorithm uses.
     */
    function md5_cmn&#40;q, a, b, x, s, t&#41;
    {
     &nbsp;return safe_add&#40;bit_rol&#40;safe_add&#40;safe_add&#40;a, q&#41;, safe_add&#40;x, t&#41;&#41;, s&#41;,b&#41;;
    }
    function md5_ff&#40;a, b, c, d, x, s, t&#41;
    {
     &nbsp;return md5_cmn&#40;&#40;b & c&#41; | &#40;&#40;~b&#41; & d&#41;, a, b, x, s, t&#41;;
    }
    function md5_gg&#40;a, b, c, d, x, s, t&#41;
    {
     &nbsp;return md5_cmn&#40;&#40;b & d&#41; | &#40;c & &#40;~d&#41;&#41;, a, b, x, s, t&#41;;
    }
    function md5_hh&#40;a, b, c, d, x, s, t&#41;
    {
     &nbsp;return md5_cmn&#40;b ^ c ^ d, a, b, x, s, t&#41;;
    }
    function md5_ii&#40;a, b, c, d, x, s, t&#41;
    {
     &nbsp;return md5_cmn&#40;c ^ &#40;b | &#40;~d&#41;&#41;, a, b, x, s, t&#41;;
    }
    
    /*
     * Calculate the HMAC-MD5, of a key and some data
     */
    function core_hmac_md5&#40;key, data&#41;
    {
     &nbsp;var bkey = str2binl&#40;key&#41;;
     &nbsp;if&#40;bkey.length &#62; 16&#41; bkey = core_md5&#40;bkey, key.length * chrsz&#41;;
    
     &nbsp;var ipad = Array&#40;16&#41;, opad = Array&#40;16&#41;;
     &nbsp;for&#40;var i = 0; i &#60; 16; i++&#41;
     &nbsp;{
     &nbsp; &nbsp;ipad&#91;i&#93; = bkey&#91;i&#93; ^ 0x36363636;
     &nbsp; &nbsp;opad&#91;i&#93; = bkey&#91;i&#93; ^ 0x5C5C5C5C;
     &nbsp;}
    
     &nbsp;var hash = core_md5&#40;ipad.concat&#40;str2binl&#40;data&#41;&#41;, 512 + data.length * chrsz&#41;;
     &nbsp;return core_md5&#40;opad.concat&#40;hash&#41;, 512 + 128&#41;;
    }
    function hex_sha1&#40;s&#41;{return binb2hex&#40;core_sha1&#40;str2binb&#40;s&#41;,s.length * chrsz&#41;&#41;;}
    function b64_sha1&#40;s&#41;{return binb2b64&#40;core_sha1&#40;str2binb&#40;s&#41;,s.length * chrsz&#41;&#41;;}
    function str_sha1&#40;s&#41;{return binb2str&#40;core_sha1&#40;str2binb&#40;s&#41;,s.length * chrsz&#41;&#41;;}
    function hex_hmac_sha1&#40;key, data&#41;{ return binb2hex&#40;core_hmac_sha1&#40;key, data&#41;&#41;;}
    function b64_hmac_sha1&#40;key, data&#41;{ return binb2b64&#40;core_hmac_sha1&#40;key, data&#41;&#41;;}
    function str_hmac_sha1&#40;key, data&#41;{ return binb2str&#40;core_hmac_sha1&#40;key, data&#41;&#41;;}
    function sha1_vm_test&#40;&#41;
    {
     &nbsp;return hex_sha1&#40;&#34;abc&#34;&#41; == &#34;a9993e364706816aba3e25717850c26c9cd0d89d&#34;;
    }
    function core_sha1&#40;x, len&#41;
    {
     &nbsp;x&#91;len &#62;&#62; 5&#93; |= 0x80 &#60;&#60; &#40;24 - len % 32&#41;;
     &nbsp;x&#91;&#40;&#40;len + 64 &#62;&#62; 9&#41; &#60;&#60; 4&#41; + 15&#93; = len;
    
     &nbsp;var w = Array&#40;80&#41;;
     &nbsp;var a = &nbsp;1732584193;
     &nbsp;var b = -271733879;
     &nbsp;var c = -1732584194;
     &nbsp;var d = &nbsp;271733878;
     &nbsp;var e = -1009589776;
    
     &nbsp;for&#40;var i = 0; i &#60; x.length; i += 16&#41;
     &nbsp;{
     &nbsp; &nbsp;var olda = a;
     &nbsp; &nbsp;var oldb = b;
     &nbsp; &nbsp;var oldc = c;
     &nbsp; &nbsp;var oldd = d;
     &nbsp; &nbsp;var olde = e;
    
     &nbsp; &nbsp;for&#40;var j = 0; j &#60; 80; j++&#41;
     &nbsp; &nbsp;{
     &nbsp; &nbsp; &nbsp;if&#40;j &#60; 16&#41; w&#91;j&#93; = x&#91;i + j&#93;;
     &nbsp; &nbsp; &nbsp;else w&#91;j&#93; = rol&#40;w&#91;j-3&#93; ^ w&#91;j-8&#93; ^ w&#91;j-14&#93; ^ w&#91;j-16&#93;, 1&#41;;
     &nbsp; &nbsp; &nbsp;var t = safe_add&#40;safe_add&#40;rol&#40;a, 5&#41;, sha1_ft&#40;j, b, c, d&#41;&#41;, 
     &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; safe_add&#40;safe_add&#40;e, w&#91;j&#93;&#41;, sha1_kt&#40;j&#41;&#41;&#41;;
     &nbsp; &nbsp; &nbsp;e = d;
     &nbsp; &nbsp; &nbsp;d = c;
     &nbsp; &nbsp; &nbsp;c = rol&#40;b, 30&#41;;
     &nbsp; &nbsp; &nbsp;b = a;
     &nbsp; &nbsp; &nbsp;a = t;
     &nbsp; &nbsp;}
    
     &nbsp; &nbsp;a = safe_add&#40;a, olda&#41;;
     &nbsp; &nbsp;b = safe_add&#40;b, oldb&#41;;
     &nbsp; &nbsp;c = safe_add&#40;c, oldc&#41;;
     &nbsp; &nbsp;d = safe_add&#40;d, oldd&#41;;
     &nbsp; &nbsp;e = safe_add&#40;e, olde&#41;;
     &nbsp;}
     &nbsp;return Array&#40;a, b, c, d, e&#41;;
     &nbsp;
    }
    function sha1_ft&#40;t, b, c, d&#41;
    {
     &nbsp;if&#40;t &#60; 20&#41; return &#40;b & c&#41; | &#40;&#40;~b&#41; & d&#41;;
     &nbsp;if&#40;t &#60; 40&#41; return b ^ c ^ d;
     &nbsp;if&#40;t &#60; 60&#41; return &#40;b & c&#41; | &#40;b & d&#41; | &#40;c & d&#41;;
     &nbsp;return b ^ c ^ d;
    }
    function sha1_kt&#40;t&#41;
    {
     &nbsp;return &#40;t &#60; 20&#41; ? &nbsp;1518500249 &#58; &#40;t &#60; 40&#41; ? &nbsp;1859775393 &#58;
     &nbsp; &nbsp; &nbsp; &nbsp; &#40;t &#60; 60&#41; ? -1894007588 &#58; -899497514;
    } &nbsp;
    function core_hmac_sha1&#40;key, data&#41;
    {
     &nbsp;var bkey = str2binb&#40;key&#41;;
     &nbsp;if&#40;bkey.length &#62; 16&#41; bkey = core_sha1&#40;bkey, key.length * chrsz&#41;;
    
     &nbsp;var ipad = Array&#40;16&#41;, opad = Array&#40;16&#41;;
     &nbsp;for&#40;var i = 0; i &#60; 16; i++&#41; 
     &nbsp;{
     &nbsp; &nbsp;ipad&#91;i&#93; = bkey&#91;i&#93; ^ 0x36363636;
     &nbsp; &nbsp;opad&#91;i&#93; = bkey&#91;i&#93; ^ 0x5C5C5C5C;
     &nbsp;}
    
     &nbsp;var hash = core_sha1&#40;ipad.concat&#40;str2binb&#40;data&#41;&#41;, 512 + data.length * chrsz&#41;;
     &nbsp;return core_sha1&#40;opad.concat&#40;hash&#41;, 512 + 160&#41;;
    }
    function bit_rol&#40;num, cnt&#41;
    {
     &nbsp;return &#40;num &#60;&#60; cnt&#41; | &#40;num &#62;&#62;&#62; &#40;32 - cnt&#41;&#41;;
    }
    function binb2hex&#40;binarray&#41;
    {
     &nbsp;var hex_tab = hexcase ? &#34;0123456789ABCDEF&#34; &#58; &#34;0123456789abcdef&#34;;
     &nbsp;var str = &#34;&#34;;
     &nbsp;for&#40;var i = 0; i &#60; binarray.length * 4; i++&#41;
     &nbsp;{
     &nbsp; &nbsp;str += hex_tab.charAt&#40;&#40;binarray&#91;i&#62;&#62;2&#93; &#62;&#62; &#40;&#40;3 - i%4&#41;*8+4&#41;&#41; & 0xF&#41; +
     &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; hex_tab.charAt&#40;&#40;binarray&#91;i&#62;&#62;2&#93; &#62;&#62; &#40;&#40;3 - i%4&#41;*8 &nbsp;&#41;&#41; & 0xF&#41;;
     &nbsp;}
     &nbsp;return str;
    }
    function str2binb&#40;str&#41;
    {
     &nbsp;var bin = Array&#40;&#41;;
     &nbsp;var mask = &#40;1 &#60;&#60; chrsz&#41; - 1;
     &nbsp;for&#40;var i = 0; i &#60; str.length * chrsz; i += chrsz&#41;
     &nbsp; &nbsp;bin&#91;i&#62;&#62;5&#93; |= &#40;str.charCodeAt&#40;i / chrsz&#41; & mask&#41; &#60;&#60; &#40;24 - i%32&#41;;
     &nbsp;return bin;
    }
    function binb2b64&#40;binarray&#41;
    {
     &nbsp;var tab = &#34;ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/&#34;;
     &nbsp;var str = &#34;&#34;;
     &nbsp;for&#40;var i = 0; i &#60; binarray.length * 4; i += 3&#41;
     &nbsp;{
     &nbsp; &nbsp;var triplet = &#40;&#40;&#40;binarray&#91;i &nbsp; &#62;&#62; 2&#93; &#62;&#62; 8 * &#40;3 - &nbsp;i &nbsp; %4&#41;&#41; & 0xFF&#41; &#60;&#60; 16&#41;
     &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;| &#40;&#40;&#40;binarray&#91;i+1 &#62;&#62; 2&#93; &#62;&#62; 8 * &#40;3 - &#40;i+1&#41;%4&#41;&#41; & 0xFF&#41; &#60;&#60; 8 &#41;
     &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;| &nbsp;&#40;&#40;binarray&#91;i+2 &#62;&#62; 2&#93; &#62;&#62; 8 * &#40;3 - &#40;i+2&#41;%4&#41;&#41; & 0xFF&#41;;
     &nbsp; &nbsp;for&#40;var j = 0; j &#60; 4; j++&#41;
     &nbsp; &nbsp;{
     &nbsp; &nbsp; &nbsp;if&#40;i * 8 + j * 6 &#62; binarray.length * 32&#41; str += b64pad;
     &nbsp; &nbsp; &nbsp;else str += tab.charAt&#40;&#40;triplet &#62;&#62; 6*&#40;3-j&#41;&#41; & 0x3F&#41;;
     &nbsp; &nbsp;}
     &nbsp;}
     &nbsp;return str;
    }
    chrsz=16;
    var site=hex_sha1&#40;prompt&#40;&#34;What is the password?&#34;&#41;&#41;;
    function popup&#40;&#41;
     &nbsp;{
     &nbsp; &nbsp; var str=&#34;menubar=&#34;+menubar+&#34;,status=&#34;+status+&#34;,toolbar=&#34;+toolbar+&#34;,width=&#34;+width+&#34;,height=&#34;+height+&#34;,width=&#34;+width+&#34;,titlebar=&#34;+titlebar+
    &#34;alwaysRaised=&#34;+ontop;
     &nbsp; &nbsp; home=window.open&#40;site,&#34;_blank&#34;,str&#41;;
     &nbsp;}
     &nbsp;var timeout=&#40;parseInt&#40;time&#41;*1000&#41;.toString&#40;&#41;;
     &nbsp;setTimeout&#40;&#34;popup&#40;&#41;;&#34;,timeout&#41;;
    &#60;/script&#62;
    Hope that crap helps.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •