Log In · Register

 
Is there codeing for rollovers?
RyanChronicles
post Nov 26 2008, 08:46 AM
Post #1


HAHA I love korn!
***

Group: Member
Posts: 85
Joined: Feb 2008
Member No: 618,986



I want to know if there is codeing for rollovers that don't require any linking.

Just a simple hover over and the image changes.

No linkage properties.
 
 
Start new topic
Replies
Mickey
post Nov 26 2008, 08:50 AM
Post #2


Treasure Pleasure
********

Group: Head Staff
Posts: 11,193
Joined: Oct 2005
Member No: 281,127



Sure. Try this code:

CODE
<style type="text/css">
span.rollover
{float:left; background:url(URL) repeat; width:#px; height:#px; display:block;}

span.rollover:hover
{float:left; background:url(URL) repeat;}
</style>

Replace the pound symbols with the height and width of the first rollover image. Also, replace the URLs with the urls of your rollover images. Then, use this code:

CODE
<span class="rollover">&nbsp;</span>

Make sure you leave that space in the middle of the <span> tags, and don't put anything else inside it.
 

Posts in this topic


Closed TopicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members: