<?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[onmouseover non funziona con firefox]]></title><description><![CDATA[<p dir="auto">In pratica ho un'immagine che si ingrandisce con "onmouseover" e torna  normale con "onmouseout". Il tutto funziona, se non fosse che lo script  devo inserirlo in una pagina di phpbb3 che utilizza questo doctype:</p>
<pre><code>&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" " h t t p : / / w w w . w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"&gt;
</code></pre>
<p dir="auto">e con questo doctype onmouseover non funziona su firefox :(.</p>
<p dir="auto">Il codice HTML è:</p>
<pre><code>&lt;img  id="boy" onmouseout="male_out()" onmouseover="male_on()"  src="images/boy.gif" width="107" height="220" /&gt;
</code></pre>
<p dir="auto">e questo il codice in js:</p>
<pre><code>function male_on()
{
    document.getElementById('boy').style.width="120";
    document.getElementById('boy').style.height="248";
}

function male_out()
{
    document.getElementById('boy').style.width="107";
    document.getElementById('boy').style.height="220";
}
</code></pre>
<p dir="auto">Ho provato anche a utilizzare i css:</p>
<pre><code>#boy {
    width: 107px;
    height: 220px;
}
</code></pre>
<p dir="auto">Ma niente da fare, con IE funziona mentre con Firefox no. ovviamente togliendo il doctype non mi da nessun problema.<br />
Quale potrebbe essere il problema?</p>
]]></description><link>https://dev.connect.gt/topic/159845/onmouseover-non-funziona-con-firefox</link><generator>RSS for Node</generator><lastBuildDate>Sat, 28 Nov 2026 23:51:38 GMT</lastBuildDate><atom:link href="https://dev.connect.gt/topic/159845.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 22 Oct 2011 18:59:26 GMT</pubDate><ttl>60</ttl></channel></rss>