![]() |
Flicker Free Image Button Rollovers
1 Attachment(s)
Flickering scenariosIts quite some time now I had the problem that whenever we use Image buttons for some of the graphic oriented sites the biggest problem we used to face is when ever we specify different image for the hover effect the first hover used to take very long ( unless you had servers as fast as Google ). The solution to the above problem was done in a very tricky way of loading the images when the body load's and this use to save us from such delayed hover problem but when you have quite a few buttons the solution slows down the page load and so it was not a good alternative to the first hover flicker. SolutionI have manged to get a permanent solution to this problem and I would like to share them with you here. The same solution is used on many sites including YouTube. First you have to create and Image which has all the button states like Normal / Hover / Visited. http://www.go4expert.com/images/arti...over/btnbg.gif Also I prefer to have all my buttons into one image so that it reduces the loading time of small images. Now you have to create CSS using the above Image. The dimension of the buttons is 130x40 and I have attached the well sliced PSD for your reference. The codeCode: CSS
Now all you have to do is put the following into the HTML File Code: HTML
Points to Note
Working ExampleFlicker Free Button Rollovers Sample Thanks to Shabbir for allowing my code to be uploaded on the go4expert.com servers. |
Re: Flicker Free Image Button Rollovers
Nominate this article for Article of the month for February 2009
|
Re: Flicker Free Image Button Rollovers
This is very nice.
|
Re: Flicker Free Image Button Rollovers
good suggestions
|
Re: Flicker Free Image Button Rollovers
Thank you for sharing this good information with us .I know one more site through which we can get 50 absolute free prints and can design website
cheers! |
| All times are GMT +5.5. The time now is 18:07. |