<?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[style.color Non Funziona!]]></title><description><![CDATA[<p dir="auto">Ciao a tutti,<br />
il codice qui sotto non funziona (ho provato con IE10 e Chrome).</p>
<pre><code>&lt;html&gt;


&lt;head&gt;


&lt;script&gt;
function cambia(){
if(document.getElementById("testo").style.color == "#000000"){
document.getElementById("testo").style.color = "#FF0000";
}
else{
document.getElementById("testo").style.color = "#000000";
}
}
setInterval("cambia()",1000);
&lt;/script&gt;


&lt;/head&gt;


&lt;body&gt;
&lt;p id="testo"&gt; ciao &lt;/p&gt;
&lt;/body&gt;


&lt;/html&gt;
</code></pre>
<p dir="auto">se al posto di "#000000" e "<a href="/hashtags/ff0000">#FF0000</a>" scrivo:</p>
<p dir="auto">"rgb(0, 0, 0)" e "rgb(256, 0, 0)" oppure<br />
"black" e "red" allora funziona!!!</p>
<p dir="auto">Chi mi sa spiegare il motivo perché l'esadecimale non viene riconosciuto?</p>
]]></description><link>https://dev.connect.gt/topic/187763/style-color-non-funziona</link><generator>RSS for Node</generator><lastBuildDate>Fri, 27 Nov 2026 20:11:52 GMT</lastBuildDate><atom:link href="https://dev.connect.gt/topic/187763.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 13 Apr 2013 17:42:25 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to style.color Non Funziona! on Sun, 21 Apr 2013 19:03:50 GMT]]></title><description><![CDATA[<p dir="auto">Prova a mettere un uguale semplice nell'if.</p>
]]></description><link>https://dev.connect.gt/post/1120677</link><guid isPermaLink="true">https://dev.connect.gt/post/1120677</guid><dc:creator><![CDATA[marcocarrieri]]></dc:creator><pubDate>Sun, 21 Apr 2013 19:03:50 GMT</pubDate></item></channel></rss>