Welcome to WebmasterWorld Guest from 174.129.163.89

Forum Moderators: open

Message Too Old, No Replies

Menu Effect

     
5:32 pm on Sep 12, 2009 (gmt 0)

New User

5+ Year Member

joined:Feb 14, 2009
posts:8
votes: 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.

Thanks

12:39 am on Sept 15, 2009 (gmt 0)

Senior Member from US 

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

joined:Oct 17, 2005
posts:4993
votes: 14


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.

 

Join The Conversation

Moderators and Top Contributors

Hot Threads This Week

Featured Threads

Free SEO Tools

Hire Expert Members