Toon posts:

background onmouseover probleem

Pagina: 1
Acties:

Verwijderd

Topicstarter
Ik word hartstikke gek.... Ik wil graag op een onmouseover dat het achtergrondplaatje verandert en na een onmouseout weer terug gaat.

Dit heb ik nu:
code:
1
2
3
4
5
<table cellspacing="0" cellpadding="0">
  <tr>
    <td height="25" background="exe.gif" onMouseOver="this.style.background-image:url("flash.gif");" onMouseOut="this.style.background-image:url("exe.gif");">Cell</td>
  </tr>
</table>


Wat doe ik nou fout want ik snap er de ballen van.

  • Rickets
  • Registratie: Augustus 2001
  • Niet online

Rickets

Finger and a shift

Je gebruikt de CSS-property, niet de javascript-versie :)
http://msdn.microsoft.com...rties/backgroundimage.asp

If some cunt can fuck something up, that cunt will pick the worst possible time to fucking fuck it up, because that cunt’s a cunt.


  • X-Lars
  • Registratie: Januari 2004
  • Niet online

X-Lars

Just GoT it.

quotes ("...") >> (...) weghalen om bestandsnaam?

edit: ik bedoel die in url() trouwens

[ Voor 42% gewijzigd door X-Lars op 05-02-2004 15:33 ]


  • disjfa
  • Registratie: April 2001
  • Laatst online: 12-05 15:11

disjfa

be

X-Lars schreef op 05 februari 2004 @ 15:32:
quotes ("...") >> (...) weghalen om bestandsnaam?

edit: ik bedoel die in url() trouwens
kan je beter url(' bla ') doen :)

enkele quotes dus.

disjfa - disj·fa (meneer)
disjfa.nl


  • André
  • Registratie: Maart 2002
  • Laatst online: 26-05 00:33

André

Analytics dude

Dus voor het totaalbeeld:

JavaScript:
1
2
3
4
5
<table cellspacing="0" cellpadding="0">
  <tr>
    <td height="25" background="exe.gif" onMouseOver="this.style.backgroundImage='flash.gif';" onMouseOut="this.style.backgroundImage='exe.gif';">Cell</td>
  </tr>
</table>

[ Voor 28% gewijzigd door André op 05-02-2004 15:44 ]


Verwijderd

Topicstarter
Thank you Rickets,

problem solved.... stom dat het gewoon zo simpel is.
Pagina: 1