Log In · Register

 
 
Closed TopicStart new topic
Image rollovers, (for a div overlay)
alison-apples
post Dec 22 2008, 03:51 AM
Post #1


Senior Member
***

Group: Member
Posts: 71
Joined: Jul 2008
Member No: 671,706



I've tried multiple codes. None of them seem to work. What's the code for an image rollover for a myspace div overlay?

Thanks in advance.
 
Mickey
post Dec 22 2008, 06:06 AM
Post #2


Treasure Pleasure
********

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



Have you tried this code?
 
alison-apples
post Dec 22 2008, 06:20 AM
Post #3


Senior Member
***

Group: Member
Posts: 71
Joined: Jul 2008
Member No: 671,706



xD I looked everywhere but createblog!

Lul. Thanks. I'll try it.
 
alison-apples
post Dec 22 2008, 11:34 PM
Post #4


Senior Member
***

Group: Member
Posts: 71
Joined: Jul 2008
Member No: 671,706



It doesn't have the "I'd Like to Meet" code.

D:
 
digitalfragrance
post Dec 22 2008, 11:56 PM
Post #5


Adobe Addict
******

Group: Staff Alumni
Posts: 1,237
Joined: Mar 2005
Member No: 113,043



Their tutorial was confusing... try it this way using the code they used.
CODE
<style type="text/css">
a.NAME
{float:left;background:url(Picture_URL_1)repeat;width:XXXpx;height:XXXpx;display:block;}

a.NAME:hover
{float:left;background:url(Picture_URL_2)repeat;}
</style>


For you homepage link...
1. Create 2 images - the one that will first display for the link and the one that will display on rollover.
2. Upload the first image and paste it in place of Picture_Url_1
3. Upload the second image (the rollover one) and paste it in place of Picture_URL_2
4. Replace NAME with HOME
5. Copy and paste your edited code into your style sheet.

Now, let's do the actual link

A normal homepage link looks like this:
CODE
<a href="'http://home.myspace.com/index.cfm?fuseaction=user">Home</a>


6. For a rollover, you have to specify the class that you made before hand by adding class="HOME". Add the below link wherever you planned on placing it in the DIV layer.

CODE
<a href="'http://home.myspace.com/index.cfm?fuseaction=user" class="HOME">Home</a>


7. Repeat these steps for all links.
 
digitalfragrance
post Dec 23 2008, 02:15 PM
Post #6


Adobe Addict
******

Group: Staff Alumni
Posts: 1,237
Joined: Mar 2005
Member No: 113,043



^ That's what I thought. XD.gif
 
n-murray
post Dec 29 2008, 02:07 AM
Post #7


Member
**

Group: Member
Posts: 25
Joined: Nov 2008
Member No: 700,955



Okay if digitalfragrance's code doesn't work for you, here is what I use:

Put this in aboutme:
CODE
<style>
.IMGNAME {display:block;width:##px;height:##px;
background-image:url("URL");
background-repeat:no-repeat; position:absolute; top:###px; left:50%; margin-left:###px;}

.IMGNAME:hover {display:block;width:##px;height:##px;
background-image:url("URL");
background-repeat:no-repeat;}
</style>


Then put this in Who I'd like to meet:
CODE
<div>
<a class="IMGNAME" href="URL">
</div>
 
n-murray
post Dec 29 2008, 11:13 PM
Post #8


Member
**

Group: Member
Posts: 25
Joined: Nov 2008
Member No: 700,955



Oh I thought she wanted link rollovers
 
Mikeplyts
post Dec 30 2008, 12:06 AM
Post #9


Mel Blanc was allergic to carrots.
*******

Group: Official Designer
Posts: 6,371
Joined: Aug 2008
Member No: 676,291



^She does. But the code you gave wouldn't work because well, read what Anarchy said. Anyways, the second code that you gave should have div tags instead of style tags.
 
n-murray
post Dec 30 2008, 12:47 PM
Post #10


Member
**

Group: Member
Posts: 25
Joined: Nov 2008
Member No: 700,955



Whoops sorry haha I'm new to displaying codes. :-(
 
Mickey
post Dec 31 2008, 07:17 AM
Post #11


Treasure Pleasure
********

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



No problem.
 
tokyo-rose
post Jul 16 2009, 05:28 PM
Post #12


Senior Member
********

Group: Head Staff
Posts: 18,173
Joined: Mar 2005
Member No: 108,478



Topic Closed, and Moved to Myspace Resolved Topics. Please PM a moderator if you would like this reopened.
 

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