<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Commenti per Informatica e dintorni</title>
	<atom:link href="http://www.dwss.it/wp/Index.php?feed=comments-rss2" rel="self" type="application/rss+xml" />
	<link>http://www.dwss.it/wp</link>
	<description>a cura di Simone Galiano</description>
	<lastBuildDate>Wed, 15 Sep 2010 22:15:46 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
	<item>
		<title>Commenti su Il decennium bug del javascript di admin</title>
		<link>http://www.dwss.it/wp/?p=59&#038;cpage=1#comment-5906</link>
		<dc:creator>admin</dc:creator>
		<pubDate>Wed, 15 Sep 2010 22:15:46 +0000</pubDate>
		<guid isPermaLink="false">http://www.dwss.it/wp/?p=59#comment-5906</guid>
		<description>credo la function getFlashVersion vada modificata come di seguito, pero&#039; non sapendo che errore dia, è solo un&#039;ipotesi...
ciao


function getFlashVersion() {
var flashversion = 0;
if (navigator.plugins &amp;&amp; navigator.plugins.length) {
var x = navigator.plugins[&quot;Shockwave Flash&quot;];
if(x){
if (x.description) {
var y = x.description;
flashversion = parseInt( y.substr( y.indexOf(’.&#039;)-2,2) );
}
}
} else {
result = false;
for(var i = 15; i &gt;= 3 &amp;&amp; result != true; i–){
execScript(’on error resume next: result = IsObject(CreateObject(”ShockwaveFlash.ShockwaveFlash.’+i+’”))’,&#039;VBScript’);
flashversion = i;
}
}
return flashversion;
}</description>
		<content:encoded><![CDATA[<p>credo la function getFlashVersion vada modificata come di seguito, pero&#8217; non sapendo che errore dia, è solo un&#8217;ipotesi&#8230;<br />
ciao</p>
<p>function getFlashVersion() {<br />
var flashversion = 0;<br />
if (navigator.plugins &amp;&amp; navigator.plugins.length) {<br />
var x = navigator.plugins["Shockwave Flash"];<br />
if(x){<br />
if (x.description) {<br />
var y = x.description;<br />
flashversion = parseInt( y.substr( y.indexOf(’.&#8217;)-2,2) );<br />
}<br />
}<br />
} else {<br />
result = false;<br />
for(var i = 15; i &gt;= 3 &amp;&amp; result != true; i–){<br />
execScript(’on error resume next: result = IsObject(CreateObject(”ShockwaveFlash.ShockwaveFlash.’+i+’”))’,&#8217;VBScript’);<br />
flashversion = i;<br />
}<br />
}<br />
return flashversion;<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>Commenti su Il decennium bug del javascript di Maurizio</title>
		<link>http://www.dwss.it/wp/?p=59&#038;cpage=1#comment-5905</link>
		<dc:creator>Maurizio</dc:creator>
		<pubDate>Tue, 14 Sep 2010 13:30:41 +0000</pubDate>
		<guid isPermaLink="false">http://www.dwss.it/wp/?p=59#comment-5905</guid>
		<description>CIAO  :-)
GRAZIE DELLA TUA SPIEGAZIONE ... MA ... HO PROVATO A CERCARE NEL MIO FILE E FARE UN COPIA INCOLLA
MA MI DA ERRORE .... MI SAPRESTI DIRE, ALLORA, IN QUESTO CODICE CHE TI ALLEGO COSA BISOGNA CAMBIARE ???
GRAZIE 1000
MAurizio

/*
 * FlashObject embed
 *
 * by Geoff Stearns (geoff@choppingblock.com, http://www.choppingblock.com/)
 *
 * v1.0.7 - 11-17-2004
 *
 * Create and write a flash movie to the page, includes detection
 *
 * Usage:
 *
 *	myFlash = new FlashObject(&quot;path/to/swf.swf&quot;, &quot;swfid&quot;, &quot;width&quot;, &quot;height&quot;, flashversion, &quot;backgroundcolor&quot;);
 *	myFlash.altTxt = &quot;Upgrade your Flash Player!&quot;;                // optional
 *	myFlash.addParam(&quot;wmode&quot;, &quot;transparent&quot;);                     // optional
 *	myFlash.addVariable(&quot;varname1&quot;, &quot;varvalue&quot;);                  // optional
 *	myFlash.addVariable(&quot;varname2&quot;, getQueryParamValue(&quot;myvar&quot;)); // optional
 *	myFlash.write();
 *
 */

FlashObject = function(swf, id, w, h, ver, c) {
	this.swf = swf;
	this.id = id;
	this.width = w;
	this.height = h;
	this.version = ver &#124;&#124; 6; // default to 6
	this.align = &quot;middle&quot;; // default to middle
	this.redirect = &quot;&quot;;
	this.sq = document.location.search.split(&quot;?&quot;)[1] &#124;&#124; &quot;&quot;;
	this.altTxt = &quot;Please &lt;a href=&#039;http://www.macromedia.com/go/getflashplayer&#039; rel=&quot;nofollow&quot;&gt;upgrade your Flash Player&lt;/a&gt;.&quot;;
	this.bypassTxt = &quot;Already have Flash Player? &lt;a href=&#039;?detectflash=false&amp;&quot;+ this.sq +&quot;&#039; rel=&quot;nofollow&quot;&gt;Click here if you have Flash Player &quot;+ this.version +&quot; installed&lt;/a&gt;.&quot;;
	this.params = new Object();
	this.variables = new Object();
	if (c) this.color = this.addParam(&#039;bgcolor&#039;, c);
	this.addParam(&#039;quality&#039;, &#039;high&#039;); // default to high
	this.doDetect = getQueryParamValue(&#039;detectflash&#039;);
}

FlashObject.prototype.addParam = function(name, value) {
	this.params[name] = value;
}

FlashObject.prototype.getParams = function() {
    return this.params;
}

FlashObject.prototype.getParam = function(name) {
    return this.params[name];
}

FlashObject.prototype.addVariable = function(name, value) {
	this.variables[name] = value;
}

FlashObject.prototype.getVariable = function(name) {
    return this.variables[name];
}

FlashObject.prototype.getVariables = function() {
    return this.variables;
}

FlashObject.prototype.getParamTags = function() {
    var paramTags = &quot;&quot;;
    for (var param in this.getParams()) {
        paramTags += &#039;&#039;;
    }
    if (paramTags == &quot;&quot;) {
        paramTags = null;
    }
    return paramTags;
}

FlashObject.prototype.getHTML = function() {
    var flashHTML = &quot;&quot;;
    if (window.ActiveXObject &amp;&amp; navigator.userAgent.indexOf(&#039;Mac&#039;) == -1) { // PC IE
        flashHTML += &#039;&#039;;
        flashHTML += &#039;&#039;;
        if (this.getParamTags() != null) {
            flashHTML += this.getParamTags();
        }
        if (this.getVariablePairs() != null) {
            flashHTML += &#039;&#039;;
        }
        flashHTML += &#039;&#039;;
    }
    else { // Everyone else
        flashHTML += &#039;&#039;;
    }
    return flashHTML;	
}


FlashObject.prototype.getVariablePairs = function() {
    var variablePairs = new Array();
    for (var name in this.getVariables()) {
        variablePairs.push(name + &quot;=&quot; + escape(this.getVariable(name)));
    }
    if (variablePairs.length &gt; 0) {
        return variablePairs.join(&quot;&amp;&quot;);
    }
    else {
        return null;
    }
}

FlashObject.prototype.write = function(elementId) {
	if(detectFlash(this.version) &#124;&#124; this.doDetect==&#039;false&#039;) {
		if (elementId) {
			document.getElementById(elementId).innerHTML = this.getHTML();
		} else {
			document.write(this.getHTML());
		}
	} else {
		if (this.redirect != &quot;&quot;) {
			document.location.replace(this.redirect);
		} else {
			if (elementId) {
				document.getElementById(elementId).innerHTML = this.altTxt +&quot;&quot;+ this.bypassTxt;
			} else {
				document.write(this.altTxt +&quot;&quot;+ this.bypassTxt);
			}
		}
	}		
}

function getFlashVersion() {
	var flashversion = 0;
	if (navigator.plugins &amp;&amp; navigator.plugins.length) {
		var x = navigator.plugins[&quot;Shockwave Flash&quot;];
		if(x){
			if (x.description) {
				var y = x.description;
	   			flashversion = y.charAt(y.indexOf(&#039;.&#039;)-1);
			}
		}
	} else {
		result = false;
	    for(var i = 15; i &gt;= 3 &amp;&amp; result != true; i--){
   			execScript(&#039;on error resume next: result = IsObject(CreateObject(&quot;ShockwaveFlash.ShockwaveFlash.&#039;+i+&#039;&quot;))&#039;,&#039;VBScript&#039;);
   			flashversion = i;
   		}
	}
	return flashversion;
}

function detectFlash(ver) {	
	if (getFlashVersion() &gt;= ver) {
		return true;
	} else {
		return false;
	}
}

// get value of querystring param
function getQueryParamValue(param) {
	var q = document.location.search;
	var detectIndex = q.indexOf(param);
	var endIndex = (q.indexOf(&quot;&amp;&quot;, detectIndex) != -1) ? q.indexOf(&quot;&amp;&quot;, detectIndex) : q.length;
	if(q.length &gt; 1 &amp;&amp; detectIndex != -1) {
		return q.substring(q.indexOf(&quot;=&quot;, detectIndex)+1, endIndex);
	} else {
		return &quot;&quot;;
	}
}

/* add Array.push if needed */
if(Array.prototype.push == null){
	Array.prototype.push = function(item){
		this[this.length] = item;
		return this.length;
	}
}</description>
		<content:encoded><![CDATA[<p>CIAO  <img src='http://www.dwss.it/wp/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /><br />
GRAZIE DELLA TUA SPIEGAZIONE &#8230; MA &#8230; HO PROVATO A CERCARE NEL MIO FILE E FARE UN COPIA INCOLLA<br />
MA MI DA ERRORE &#8230;. MI SAPRESTI DIRE, ALLORA, IN QUESTO CODICE CHE TI ALLEGO COSA BISOGNA CAMBIARE ???<br />
GRAZIE 1000<br />
MAurizio</p>
<p>/*<br />
 * FlashObject embed<br />
 *<br />
 * by Geoff Stearns (geoff@choppingblock.com, <a href="http://www.choppingblock.com/" rel="nofollow">http://www.choppingblock.com/</a>)<br />
 *<br />
 * v1.0.7 &#8211; 11-17-2004<br />
 *<br />
 * Create and write a flash movie to the page, includes detection<br />
 *<br />
 * Usage:<br />
 *<br />
 *	myFlash = new FlashObject(&#8220;path/to/swf.swf&#8221;, &#8220;swfid&#8221;, &#8220;width&#8221;, &#8220;height&#8221;, flashversion, &#8220;backgroundcolor&#8221;);<br />
 *	myFlash.altTxt = &#8220;Upgrade your Flash Player!&#8221;;                // optional<br />
 *	myFlash.addParam(&#8220;wmode&#8221;, &#8220;transparent&#8221;);                     // optional<br />
 *	myFlash.addVariable(&#8220;varname1&#8243;, &#8220;varvalue&#8221;);                  // optional<br />
 *	myFlash.addVariable(&#8220;varname2&#8243;, getQueryParamValue(&#8220;myvar&#8221;)); // optional<br />
 *	myFlash.write();<br />
 *<br />
 */</p>
<p>FlashObject = function(swf, id, w, h, ver, c) {<br />
	this.swf = swf;<br />
	this.id = id;<br />
	this.width = w;<br />
	this.height = h;<br />
	this.version = ver || 6; // default to 6<br />
	this.align = &#8220;middle&#8221;; // default to middle<br />
	this.redirect = &#8220;&#8221;;<br />
	this.sq = document.location.search.split(&#8220;?&#8221;)[1] || &#8220;&#8221;;<br />
	this.altTxt = &#8220;Please <a href='http://www.macromedia.com/go/getflashplayer' rel="nofollow">upgrade your Flash Player</a>.&#8221;;<br />
	this.bypassTxt = &#8220;Already have Flash Player? <a href='?detectflash=false&amp;"+ this.sq +"' rel="nofollow">Click here if you have Flash Player &#8220;+ this.version +&#8221; installed</a>.&#8221;;<br />
	this.params = new Object();<br />
	this.variables = new Object();<br />
	if (c) this.color = this.addParam(&#8216;bgcolor&#8217;, c);<br />
	this.addParam(&#8216;quality&#8217;, &#8216;high&#8217;); // default to high<br />
	this.doDetect = getQueryParamValue(&#8216;detectflash&#8217;);<br />
}</p>
<p>FlashObject.prototype.addParam = function(name, value) {<br />
	this.params[name] = value;<br />
}</p>
<p>FlashObject.prototype.getParams = function() {<br />
    return this.params;<br />
}</p>
<p>FlashObject.prototype.getParam = function(name) {<br />
    return this.params[name];<br />
}</p>
<p>FlashObject.prototype.addVariable = function(name, value) {<br />
	this.variables[name] = value;<br />
}</p>
<p>FlashObject.prototype.getVariable = function(name) {<br />
    return this.variables[name];<br />
}</p>
<p>FlashObject.prototype.getVariables = function() {<br />
    return this.variables;<br />
}</p>
<p>FlashObject.prototype.getParamTags = function() {<br />
    var paramTags = &#8220;&#8221;;<br />
    for (var param in this.getParams()) {<br />
        paramTags += &#8221;;<br />
    }<br />
    if (paramTags == &#8220;&#8221;) {<br />
        paramTags = null;<br />
    }<br />
    return paramTags;<br />
}</p>
<p>FlashObject.prototype.getHTML = function() {<br />
    var flashHTML = &#8220;&#8221;;<br />
    if (window.ActiveXObject &amp;&amp; navigator.userAgent.indexOf(&#8216;Mac&#8217;) == -1) { // PC IE<br />
        flashHTML += &#8221;;<br />
        flashHTML += &#8221;;<br />
        if (this.getParamTags() != null) {<br />
            flashHTML += this.getParamTags();<br />
        }<br />
        if (this.getVariablePairs() != null) {<br />
            flashHTML += &#8221;;<br />
        }<br />
        flashHTML += &#8221;;<br />
    }<br />
    else { // Everyone else<br />
        flashHTML += &#8221;;<br />
    }<br />
    return flashHTML;<br />
}</p>
<p>FlashObject.prototype.getVariablePairs = function() {<br />
    var variablePairs = new Array();<br />
    for (var name in this.getVariables()) {<br />
        variablePairs.push(name + &#8220;=&#8221; + escape(this.getVariable(name)));<br />
    }<br />
    if (variablePairs.length &gt; 0) {<br />
        return variablePairs.join(&#8220;&amp;&#8221;);<br />
    }<br />
    else {<br />
        return null;<br />
    }<br />
}</p>
<p>FlashObject.prototype.write = function(elementId) {<br />
	if(detectFlash(this.version) || this.doDetect==&#8217;false&#8217;) {<br />
		if (elementId) {<br />
			document.getElementById(elementId).innerHTML = this.getHTML();<br />
		} else {<br />
			document.write(this.getHTML());<br />
		}<br />
	} else {<br />
		if (this.redirect != &#8220;&#8221;) {<br />
			document.location.replace(this.redirect);<br />
		} else {<br />
			if (elementId) {<br />
				document.getElementById(elementId).innerHTML = this.altTxt +&#8221;"+ this.bypassTxt;<br />
			} else {<br />
				document.write(this.altTxt +&#8221;"+ this.bypassTxt);<br />
			}<br />
		}<br />
	}<br />
}</p>
<p>function getFlashVersion() {<br />
	var flashversion = 0;<br />
	if (navigator.plugins &amp;&amp; navigator.plugins.length) {<br />
		var x = navigator.plugins["Shockwave Flash"];<br />
		if(x){<br />
			if (x.description) {<br />
				var y = x.description;<br />
	   			flashversion = y.charAt(y.indexOf(&#8216;.&#8217;)-1);<br />
			}<br />
		}<br />
	} else {<br />
		result = false;<br />
	    for(var i = 15; i &gt;= 3 &amp;&amp; result != true; i&#8211;){<br />
   			execScript(&#8216;on error resume next: result = IsObject(CreateObject(&#8220;ShockwaveFlash.ShockwaveFlash.&#8217;+i+&#8217;&#8221;))&#8217;,'VBScript&#8217;);<br />
   			flashversion = i;<br />
   		}<br />
	}<br />
	return flashversion;<br />
}</p>
<p>function detectFlash(ver) {<br />
	if (getFlashVersion() &gt;= ver) {<br />
		return true;<br />
	} else {<br />
		return false;<br />
	}<br />
}</p>
<p>// get value of querystring param<br />
function getQueryParamValue(param) {<br />
	var q = document.location.search;<br />
	var detectIndex = q.indexOf(param);<br />
	var endIndex = (q.indexOf(&#8220;&amp;&#8221;, detectIndex) != -1) ? q.indexOf(&#8220;&amp;&#8221;, detectIndex) : q.length;<br />
	if(q.length &gt; 1 &amp;&amp; detectIndex != -1) {<br />
		return q.substring(q.indexOf(&#8220;=&#8221;, detectIndex)+1, endIndex);<br />
	} else {<br />
		return &#8220;&#8221;;<br />
	}<br />
}</p>
<p>/* add Array.push if needed */<br />
if(Array.prototype.push == null){<br />
	Array.prototype.push = function(item){<br />
		this[this.length] = item;<br />
		return this.length;<br />
	}<br />
}</p>
]]></content:encoded>
	</item>
</channel>
</rss>

