Log In · Register

 
 
Closed TopicStart new topic
Image Hover/Twitter Rows In Top Banners [Band MySpaces]
CameronVainglory
post Jun 12 2009, 11:26 PM
Post #1


Newbie
*

Group: Member
Posts: 8
Joined: Jun 2009
Member No: 732,515



Hey guys, I've looked everywhere for how to create a row of twitter boxes in a top banner like alotta the bands on MySpace have.

Example: http://www.myspace.com/hitthelights

Also, I can't figure out how to create a row of linked image hovers, like the navigation at the top of this MySpace: http://www.myspace.com/askylitdrive

Any and all help is majorly appreciated :]
 
fixtatik
post Jun 13 2009, 07:30 PM
Post #2


Senior Member
******

Group: Member
Posts: 1,237
Joined: May 2008
Member No: 648,123



^ you can make rollovers 10x easier than that.

the CSS:
CODE
.navigation { NAVIGATION PROPERTIES }
.navigation a { display:block; float:left; height:##px; text-indent:-999em; }
.navigation a:hover { background-position:bottom; }

.link-1 { background-image:url(IMAGE FOR 1ST LINK); width:##px; }
.link-2 { background-image:url(IMAGE FOR 2ND LINK); width:##px; }
.link-3 { background-image:url(IMAGE FOR 3RD LINK); width:##px; }

the HTML:
CODE
<div class="navigation">
  <a class="link-1" href="URL">LINK 1</a>
  <a class="link-2" href="URL">LINK 2</a>
  <a class="link-3" href="URL">LINK 3</a>
</div>

instead of making two images, make only one. put the image you want for normal links on the top half, and the image you want for hovers on the bottom half. for .navigation a { height:##px; } the height will be half the height of the image. for the widths, just put in the width in pixels.
 
CameronVainglory
post Jun 14 2009, 01:33 AM
Post #3


Newbie
*

Group: Member
Posts: 8
Joined: Jun 2009
Member No: 732,515



I'm not all that familiar with div codes :/

and fixtatik, I'm confused as to where to put each image url.

 
fixtatik
post Jun 14 2009, 02:08 PM
Post #4


Senior Member
******

Group: Member
Posts: 1,237
Joined: May 2008
Member No: 648,123



put the URL for images where it says "image for 1st link," "image for 2nd link," etc. if you need more, just follow the same form.
 
CameronVainglory
post Jun 14 2009, 03:19 PM
Post #5


Newbie
*

Group: Member
Posts: 8
Joined: Jun 2009
Member No: 732,515



oh, I get that. but how does that create a rollover if there's only one image?
 
fixtatik
post Jun 14 2009, 03:28 PM
Post #6


Senior Member
******

Group: Member
Posts: 1,237
Joined: May 2008
Member No: 648,123



the one image is both the normal image and the image you want people to see when they hover over the link. make the one image twice the height as the normal/hover images, then put the normal one on the top half and the hover one on the bottom half.

.navigation a:hover { background-position:bottom; } tells the browser that when a visitor hovers over one of the links, it's to move the image to the bottom one.

take these for example:


normal links will be the top half, and when a visitor hovers over the link, they'll see the bottom half.
 
CameronVainglory
post Jun 14 2009, 03:36 PM
Post #7


Newbie
*

Group: Member
Posts: 8
Joined: Jun 2009
Member No: 732,515



oh, okay. I think I got it. Thanks. I'll try it out :)
 
CameronVainglory
post Jun 15 2009, 03:48 AM
Post #8


Newbie
*

Group: Member
Posts: 8
Joined: Jun 2009
Member No: 732,515



Well, I tried it and thought it was sure to work, but I ended up with this: http://i43.tinypic.com/2dv7xi0.jpg

The rollover part works, but I'm puzzled as to how it came out this way. The images are in the wrong order and one of them's completely missing.

For the top banner, I used this code: http://www.createblog.com/myspace-scripts/...ath-navigation/

I wasn't sure where to put my rollover images since they're in a div class and so are the sliced top banner images, so I put the navigation div class in the top banner div class, which I think may be my problem.

Any ideas?

 

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