Log In · Register

 
 
Closed TopicStart new topic
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.
 
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.
 
RyanChronicles
post Nov 26 2008, 11:28 PM
Post #3


HAHA I love korn!
***

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



alright ima try this i will re'edit for a problem :O


*EDIT*

Works thanks man.
 
manny-the-dino
post Nov 26 2008, 11:58 PM
Post #4


Senior Member
*******

Group: Administrator
Posts: 8,629
Joined: Jan 2007
Member No: 498,468



Topic Closed & Moved
 

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