dcsimg
www.webdeveloper.com
Results 1 to 2 of 2

Thread: Menu Item Select on Page Load

  1. #1
    Join Date
    Sep 2010
    Posts
    9

    Menu Item Select on Page Load

    I'm having an issue. I have a menu that I have constructed through HTML/CSS/JavaScript. Javascript handles the mouseover and mouseout events to set the background of the menu item/table element with an image. It works great.

    What my issue is right now is that when the user loads the Home page, I want that to have the background of the item already set. I had a function to do this with a switch clause in a separate javascript file. This function was called immediately (left it outside of any functions so it would execute first). But I'm getting an error because the actual element (a table) to set the background doesn't exist yet.

    How can I work around this??

    Thanks in advance!

  2. #2
    Join Date
    Apr 2010
    Location
    Salem,Ma
    Posts
    623

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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



Recent Articles