<?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[problemi con js e firefox]]></title><description><![CDATA[<p dir="auto">Ho scitto il seguente codice per ottenere un di che scorre orizzontalmene. Funziona bene con IE6 IE7 opera ma firefox 2 sposta il div la prima volta per poi tornare alla posizione iniziale.<br />
Sapete dirmi dov'è il problema?</p>
<p dir="auto">Grazie</p>
<pre><code class="language-php">&lt;script type="text/javascript"&gt;
&lt;!--
var sposta=15;
function change_img() {
    sposta -=1;
    document.getElementById('marchi_scroll2').style.left = sposta;
    //alert(sposta);
}

function tempo() {
    setInterval("change_img()", 50);
}

//--&gt;
&lt;/script&gt; 
&lt;/head&gt;
&lt;body onload="tempo();"&gt;
</code></pre>
]]></description><link>https://dev.connect.gt/topic/37384/problemi-con-js-e-firefox</link><generator>RSS for Node</generator><lastBuildDate>Sat, 05 Dec 2026 19:51:52 GMT</lastBuildDate><atom:link href="https://dev.connect.gt/topic/37384.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 04 Jun 2007 16:36:41 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to problemi con js e firefox on Mon, 04 Jun 2007 17:08:37 GMT]]></title><description><![CDATA[<p dir="auto">la soluzione è<br />
&lt;script type="text/javascript"&gt;<br />
&lt;!--<br />
var sposta=15;<br />
function change_img() {<br />
sposta -=1;<br />
document.getElementById('marchi_scroll2').style.left = sposta+"px";<br />
//alert(sposta);<br />
}</p>
<p dir="auto">function tempo() {<br />
setInterval("change_img()", 50);<br />
}</p>
<p dir="auto">//--&gt;<br />
&lt;/script&gt;<br />
&lt;/head&gt;<br />
&lt;body onload="tempo();"&gt;</p>
]]></description><link>https://dev.connect.gt/post/527554</link><guid isPermaLink="true">https://dev.connect.gt/post/527554</guid><dc:creator><![CDATA[gc]]></dc:creator><pubDate>Mon, 04 Jun 2007 17:08:37 GMT</pubDate></item></channel></rss>