Autor Zpráva
jmsaive
Profil
Cau,napiste pls skript jak mam udelat aby se po prejeti obycejneho textu zmenila barva pozadi
WanTo
Profil
<div onmouseover = "this.style.backgroundColor='nova';" onmouseout = "this.style.backgroundColor='puvodni';">text</div>
Dero
Profil
Např. takto:

<div id="text" onmouseover="this.style.backgroundColor='yellow';">text text text</div>

Ve skriptu:

document.getElementById('text').onmouseover = new function () { this.style.backgroundColor = 'yellow'; }
jmsaive
Profil
dekuju, ja se ten trapnej js ani neucil, ikdyz se nekdy hodi :)
Toto téma je uzamčeno. Odpověď nelze zaslat.

0