homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Home / Forums Index / Code, Content, and Presentation / JavaScript and AJAX
Forum Library, Charter, Moderator: open

JavaScript and AJAX Forum

Menu Effect

5+ Year Member

Msg#: 3988458 posted 5:32 pm on Sep 12, 2009 (gmt 0)

Hey Guys,

I am working on a navigation and I got the idea from a site I saw. It was a simple menu but when mouseover was done the one button would have a fade effect and the background color would change. He did not use images, just simply two background colors.

I have been searching to get an idea on the source code but everything about images. If someone can help me out on how I can create this effect with bgcolor and possibly have a source code I can see I would appreciate it.




WebmasterWorld Senior Member fotiman us a WebmasterWorld Top Contributor of All Time 5+ Year Member Top Contributors Of The Month

Msg#: 3988458 posted 12:39 am on Sep 15, 2009 (gmt 0)

You could use one of the popular JavaScript libraries like jQuery, Yahoo UI Library, or Scriptaculous+Prototype.

If you want to try and recreate that functionality on your own, the best place to look would be to see how one of those libraries did it (or how the site that you were looking at did it). It probably involves using the setTimeout method to change the background color every x number of milliseconds.

Global Options:
 top home search open messages active posts  

Home / Forums Index / Code, Content, and Presentation / JavaScript and AJAX
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved