Image rollovers, (for a div overlay) |
![]() ![]() |
Image rollovers, (for a div overlay) |
![]()
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. |
|
|
![]()
Post
#2
|
|
![]() Treasure Pleasure ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Head Staff Posts: 11,193 Joined: Oct 2005 Member No: 281,127 ![]() |
Have you tried this code?
|
|
|
![]()
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. |
|
|
![]()
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: |
|
|
![]()
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. |
|
|
![]()
Post
#6
|
|
![]() Adobe Addict ![]() ![]() ![]() ![]() ![]() ![]() Group: Staff Alumni Posts: 1,237 Joined: Mar 2005 Member No: 113,043 ![]() |
^ That's what I thought.
![]() |
|
|
![]()
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> |
|
|
![]()
Post
#8
|
|
Member ![]() ![]() Group: Member Posts: 25 Joined: Nov 2008 Member No: 700,955 ![]() |
Oh I thought she wanted link rollovers
|
|
|
![]()
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.
|
|
|
![]()
Post
#10
|
|
Member ![]() ![]() Group: Member Posts: 25 Joined: Nov 2008 Member No: 700,955 ![]() |
Whoops sorry haha I'm new to displaying codes. :-(
|
|
|
![]()
Post
#11
|
|
![]() Treasure Pleasure ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Head Staff Posts: 11,193 Joined: Oct 2005 Member No: 281,127 ![]() |
No problem.
|
|
|
![]()
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.
|
|
|
![]() ![]() |