Log In · Register

 
Rollovers ( help! ), I don't understand.
ZeT0
post Sep 6 2009, 09:56 AM
Post #1


Senior Member
****

Group: Member
Posts: 253
Joined: Jul 2009
Member No: 739,898



I still don't understand how to do a rollover image.
I've looked at LEAST 10 different tutorials, still can't get it.
It seems to be the most common way is to have the words on the layout, say in the header, in a darker colour.
Then an overlay on top of that, with the lighter colour, and once hovered, changes the lighter colour picture's opacity to 0.
That is how I'd like to do it. ( Or any way that is simpiler. )
I have how ever found another way to do it ;

CODE
<style>div.message {position: absolute; top: 0; left: 50%; margin-top: 1085px; margin-left: -292px; width: 154px; height: 52px; color: 000000; font-family: arial; font-size: 12px; font-weight: bold; text-align: left; overflow: auto; padding: 4px;
}</style>

<div class="message"><style>
img.nohover {border:0}
img.hover {border:0;display:none}
A:hover img.hover {display:inline}
A:hover img.nohover {display:none}
</style>
<a href="LINKTOWEBSITE">
<img src="NORMALIMAGEHERE" class="nohover" />
<img src="ROLLOVERIMAGEHERE" class="hover" />
</a>
</style></div>


Etc, etc...
This is a VERY long procedure if there are multiple links, such as a contact box.
I used this code for a recent myspace I have created, and doing the 4 links actually took longer than the rest of the layout it self.
www.myspace.com/djvbs
If anyone could make a tutorial, or tell me how to do roll overs, an easier/better way, I'd appreciate it VERY much.
Especially a video tutorial! :)
Thankyou.
 

Posts in this topic
ZeT0   Rollovers ( help! )   Sep 6 2009, 09:56 AM
jcp   This is how I do it. HTML: CODE<ul> ...   Sep 6 2009, 12:17 PM
Mike   Try this tutorial.   Sep 6 2009, 01:26 PM
ZeT0   With that tutorial Mike, do I have to .div overlay...   Sep 6 2009, 03:16 PM
jcp   position absolute sucks, and using two images for ...   Sep 6 2009, 03:23 PM
Mike   You don't need to use DIVs to position them ar...   Sep 6 2009, 03:24 PM
ZeT0   Do you know how to do the roll overs like on this ...   Sep 6 2009, 03:27 PM
Mike   Read this post on TJ's band page customization...   Sep 6 2009, 03:28 PM
ZeT0   Oh, it does too! I never even noticed. Thanks ...   Sep 6 2009, 03:31 PM
Mike   Is this good for closing?   Sep 6 2009, 03:33 PM
ZeT0   Sure is.   Sep 6 2009, 03:35 PM
Mike   Topic closed & moved.   Sep 6 2009, 03:36 PM


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