Autor Zpráva
pesulap
Profil *
Ahoj mám

<img src="m.gif" name="obrazek" width=390 height=260 border=0 usemap="#Map" />
<map name="Map">
<area shape="poly" coords="90,104,109,95,125,89,141,82,154,77,169,70,177,76,176,86,181,92 ,188,91,188,100,190,105,188,109,196,114,193,125,182,130,180,137,168,14 1,160,138,153,143,140,142,127,141,115,142,104,144,100,136,102,130,107, 125,108,120,106,113,98,110,92,107"
href="inddex.html" onmouseover="document['obrazek'].src = 'mb.gif' ;" onmouseout="document['obrazek'].src = 'm.gif' ;">
</map>


a nejde mi to nevíte kde je chyba??
Dusko
Profil
Povedal by som , ze ti tam chyba return true. Takze asi by to malo byt takto: onmouseover="document['obrazek'].src = 'mb.gif' ; return true" onmouseout="document['obrazek'].src = 'm.gif' ;"

Ten index.html s dvoma d je zamer?
pesulap
Profil *
Tak po tvé radě to vypadá takto :

<img src="m.gif" name="obrazek" width=390 height=260 border=0 usemap="#Map" />
<map name="Map">
<area shape="poly" coords="90,104,109,95,125,89,141,82,154,77,169,70,177,76,176,86,181,92 ,188,91,188,100,190,105,188,109,196,114,193,125,182,130,180,137,168,14 1,160,138,153,143,140,142,127,141,115,142,104,144,100,136,102,130,107, 125,108,120,106,113,98,110,92,107"
href="inddex.html" onmouseover="document['obrazek'].src = 'mb.gif' ; return true" onmouseout="document['obrazek'].src = 'm.gif' ;">
</map>


A žádná změna :-( jo a je to záměr :-)
tajny spion
Profil
pesulap
Ukladas dobre formaty obrazku? Na netu nesmi bejt .bmp. Jo a inddex mas .htm nebo . html? Zkontroluj si to jeste jedno radsi...
Dusko
Profil
Skusil by som potom toto: Prirad tagu img nejake ID, napr: <img id="obr" src="m.gif" ... a pristupuj k nemu cez DOM, napr:
<area shape="poly" coords="90,104,109,95,125,89,141,82,154,77,169,70,177,76,176,86,181,92 ,188,91,188,100,190,105,188,109,196,114,193,125,182,130,180,137,168,14 1,160,138,153,143,140,142,127,141,115,142,104,144,100,136,102,130,107, 125,108,120,106,113,98,110,92,107"
href="inddex.html" onmouseover="document.getElementById('obr').src='mb.gif'; return true" onmouseout="document.getElementById('obr').src='m.gif';">
pesulap
Profil *
<img id="obr" src="m.gif" name="obrazek" width=390 height=260 border=0 usemap="#Map" />
<map name="Map">
<area shape="poly" coords="90,104,109,95,125,89,141,82,154,77,169,70,177,76,176,86,181,92 ,188,91,188,100,190,105,188,109,196,114,193,125,182,130,180,137,168,14 1,160,138,153,143,140,142,127,141,115,142,104,144,100,136,102,130,107, 125,108,120,106,113,98,110,92,107"
href="inddex.html" onmouseover="document.getElementById('obr').src='mb.gif'; return true" onmouseout="document.getElementById('obr').src='m.gif';">
</map>


Mám to takhle a nic ..........
Dusko
Profil
Co to robi alebo nerobi? Mas zapnutu podporu JavaScript?
Dusko
Profil
Tak som si ten kus kodu vyskusal zo svojimi obrazkami a funguje to nadherne, absolutne bez chyb.

Vaše odpověď


Prosím používejte diakritiku a interpunkci.

Ochrana proti spamu. Napište prosím číslo dvě-sta čtyřicet-sedm: