Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript better/simpler swap image code?

  • This topic is empty.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #198536
    amyK
    Participant

    I have an experiment I did years ago with very inelegant javascript (swap image functions) & html (see page linked below). I’d like to improve and simplify the code. Suggestions appreciated!

    http://amykalisher.com/fc/assign3-2.html

    #198547
    Shikkediel
    Participant

    I don’t see much wrong with the script, looks quite efficient. Browser sniffing (using navigator) is deprecated though and sort of unreliable anyway. One thing I would do is to separate the script from the HTML content and ‘outsource’ it all through a link in the document head.

    #198551
    amyK
    Participant

    thank you!

Viewing 3 posts - 1 through 3 (of 3 total)
  • The forum ‘JavaScript’ is closed to new topics and replies.