Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    Regular Coder
    Join Date
    Jun 2002
    Location
    NL
    Posts
    421
    Thanks
    0
    Thanked 0 Times in 0 Posts

    DOM image rollover question

    Hi,
    I found this cute DOM rollover script at chrispoole.com:
    http://www.fo3nix.pwp.blueyonder.co....mage_rollover/

    It doesn't do anything in Opera and NN4 (no errors), but works fine in IE5+, NN6+ and Mozilla on my Mac.

    Does it work just as good in Win IE 5+ and 6?
    Will it work in future versions until 2010 or longer? Am I not getting in trouble if I replace 10.000 onmouseover and onmouseout attributes with this script?

  • #2
    Senior Coder
    Join Date
    Jun 2002
    Location
    near Oswestry
    Posts
    4,508
    Thanks
    0
    Thanked 0 Times in 0 Posts
    It's using DOM methods like getAttribute, so support is gonna be ie5+, gecko, opera 7 and probably koqueror 3; other browsers don't support the methods

    I tried it in win ie6 and O7 and it was fine


    ... I wouldn't worry about 2010 - like your site won't have completely changed by then anyway ...

  • #3
    Senior Coder
    Join Date
    Aug 2002
    Posts
    3,467
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Actually, brothercake, IE4 supports obj.getAttribute(), just not document.getElementById()

    go figure...
    My Site | fValidate | My Brainbench | MSDN | Gecko | xBrowser DOM | PHP | Ars | PVP
    “Minds are like parachutes. They don't work unless they are open”
    “Maturity is simply knowing when to not be immature”


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •