Those two buttons are 100% css. The html is as follows:
<div id=”button1”> <a class=”1” href=”http://snedekerdesignz.webs.com/”</a> </div>
And the CSS :
#button1 a { background:#128BC8 url(image2.png) repeat-x scroll 0 0; border:7px solid black; display:block; float:left; height:128px; margin-left:150px; width:198px; }
Feel free to use this code yourself.
?
What’s the point?
- Envato Staff
- Reviewer
- Community Moderator
- Venezuela
- Has been a member for 4-5 years
- Repeatedly Helped protect Envato Marketplaces against copyright violations
- Microlancer Beta Tester
- Sold between 10 000 and 50 000 dollars
- Exclusive Author
repeat-x
Is not necessary.-
I know added that incase
The point is you don’t need lots of javascript files to make roll over images. CSS owns
You also need an a:hover to make it work
To be user friendly either use sprites with background position (to avoid the image loading delay on hover) or preload the rollovers with JavaScript.
You’re using redundant divs
Why can’t you just preload with css? loading the images at the top of the page with display none.
- Author was Featured
- Bought between 1 and 9 items
- Exclusive Author
- Has been a member for 4-5 years
- Item was Featured
- Referred between 10 and 49 users
- Repeatedly Helped protect Envato Marketplaces against copyright violations
- Sold between 50 000 and 100 000 dollars
Why can’t you just preload with css? loading the images at the top of the page with display none.
Internet Explorer does not cache images loaded with CSS .
snedekerdesignz: Why the div? Divitis is a nasty disease 
CSS Sprites would be much better 
