<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Come si interpreta questo Script? [sono nuovo del javascript??mi date 1 mano?]]]></title><description><![CDATA[<p dir="auto">ciao raga sto analizzando e commentando 1 script...</p>
<pre><code>var processing = false, controls = 0, surfTable, linksx, currentElement, links, surf, container, button,
iframe, watcher, clear, progress, red = 0, green = 255, blue = 0, started = false;
</code></pre>
<p dir="auto">cosa vuol dire???si limita semplicemente a creare la variabile processing assegnandole il valora false a creare la var surftable vuota etc???</p>
<p dir="auto">c'e una altra cosa che non capisco con le mie conoscenze.. mi potete spiegare a parole semplici questo??</p>
<pre><code>var devEnc = {
    _keyStr : "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",
    sTokenRewind : function (input) {
        var output = "";
        var chr1, chr2, chr3, enc1, enc2, enc3, enc4;
        var i = 0;
        input = devEnc._utf8_sTokenRewind(input);
        while (i &lt; input.length) {
            chr1 = input.charCodeAt(i++); chr2 = input.charCodeAt(i++);    chr3 = input.charCodeAt(i++);
            enc1 = chr1 &gt;&gt; 2; enc2 = ((chr1 &amp; 3) &lt;&lt; 4) | (chr2 &gt;&gt; 4);
            enc3 = ((chr2 &amp; 15) &lt;&lt; 2) | (chr3 &gt;&gt; 6); enc4 = chr3 &amp; 63;
            if (isNaN(chr2)) {enc3 = enc4 = 64;} else if (isNaN(chr3)) {enc4 = 64;}
            output = output + this._keyStr.charAt(enc1) + this._keyStr.charAt(enc2) + this._keyStr.charAt(enc3) + this._keyStr.charAt(enc4);
        }
        return output;
    },
    sTokenEdit : function (input) {
        var output = ""; var chr1, chr2, chr3; var enc1, enc2, enc3, enc4;
        var i = 0; input = input.replace(/[^A-Za-z0-9\+\/\=]/g, "");
        while (i &lt; input.length) {
            enc1 = this._keyStr.indexOf(input.charAt(i++));    enc2 = this._keyStr.indexOf(input.charAt(i++));
            enc3 = this._keyStr.indexOf(input.charAt(i++));    enc4 = this._keyStr.indexOf(input.charAt(i++));
            chr1 = (enc1 &lt;&lt; 2) | (enc2 &gt;&gt; 4); chr2 = ((enc2 &amp; 15) &lt;&lt; 4) | (enc3 &gt;&gt; 2); chr3 = ((enc3 &amp; 3) &lt;&lt; 6) | enc4;
            output = output + String.fromCharCode(chr1);
            if (enc3 != 64) {output = output + String.fromCharCode(chr2);}
            if (enc4 != 64) {output = output + String.fromCharCode(chr3);}
        }
        output = devEnc._utf8_sTokenEdit(output);
        return output;
    },
    _utf8_sTokenRewind : function (string) {
        string = string.replace(/\r\n/g,"\n");
        var utftext = "";
        for (var n = 0; n &lt; string.length; n++) {
            var c = string.charCodeAt(n);
            if (c &lt; 128) { utftext += String.fromCharCode(c); }
            else if((c &gt; 127) &amp;&amp; (c &lt; 2048)) {utftext += String.fromCharCode((c &gt;&gt; 6) | 192);
                utftext += String.fromCharCode((c &amp; 63) | 128);
            }else {    utftext += String.fromCharCode((c &gt;&gt; 12) | 224);utftext += String.fromCharCode(((c &gt;&gt; 6) &amp; 63) | 128);
                utftext += String.fromCharCode((c &amp; 63) | 128);
            }
        }
        return utftext;
    },
    _utf8_sTokenEdit : function (utftext) {
        var string = "";var i = 0;var c = c1 = c2 = 0;    while ( i &lt; utftext.length ) {
            c = utftext.charCodeAt(i);
            if (c &lt; 128) {
                string += String.fromCharCode(c);i++;
            }
            else if((c &gt; 191) &amp;&amp; (c &lt; 224)) {
                c2 = utftext.charCodeAt(i+1);string += String.fromCharCode(((c &amp; 31) &lt;&lt; 6) | (c2 &amp; 63));i += 2;
            }
            else { c2 = utftext.charCodeAt(i+1); c3 = utftext.charCodeAt(i+2);
                string += String.fromCharCode(((c &amp; 15) &lt;&lt; 12) | ((c2 &amp; 63) &lt;&lt; 6) | (c3 &amp; 63)); i += 3;
            }
        }
        return string;
    }
}
</code></pre>
<p dir="auto">grazie infinite</p>
<p dir="auto">dai ragà ci sarà qualcuno che mi saprà aiutare almeno nel 1°punto...</p>
]]></description><link>https://dev.connect.gt/topic/78283/come-si-interpreta-questo-script-sono-nuovo-del-javascript-mi-date-1-mano</link><generator>RSS for Node</generator><lastBuildDate>Thu, 03 Dec 2026 11:57:47 GMT</lastBuildDate><atom:link href="https://dev.connect.gt/topic/78283.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 22 Jul 2008 18:34:04 GMT</pubDate><ttl>60</ttl></channel></rss>