Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

CSS Forum


You are currently viewing our CSS Forum as a guest. Please register to participate.
Login



Reply
Old 12-04-2008, 11:52 AM Hover help
Andy Pugh's Avatar
Extreme Talker

Posts: 203
Name: Andy
Location: N.Ireland
Trades: 0
Hi Guys,
I was hoping someone could point me in the right direction, I'm currently using javascript for an image hover effect, it's just effectively an replacement image on hover, however, I would quite like to do it in CSS.

You can find it online at http://broadcastforensics.com/newsite/index.php
It's the home/clients/about/contact menu, I can set it up so a single arrow appears in the background - this is using PNG's in a background however which is uncompatible with IE6 and below (meh!)

I would like it so a different arrow appears for each, I have searched online but can't seem to find a CSS image replacement function?

Thanks in advance if you can help.
Andy
__________________

Please login or register to view this content. Registration is FREE
Andy Pugh is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 12-04-2008, 12:41 PM Re: Hover help
Insensus's Avatar
Ultra Talker

Posts: 487
Name: Mark Stegeman
Location: Netherlands, Europe
Trades: 0
Short tutorial:
Step 1:
Put the images together in one image, under each other is probably best.
Then go to your menu and define the style something like this:
Code:
.menu a {
	background: #fff url(images/background.jpg) no-repeat 0px 0px;			/* Replacement color / Path to the combined image / Non repeating / Get the 'first' image */
	height: 100px; 											/* The height of 'one' image */
}
.menu a:hover {
	background-image: #fff url(images/background.jpg) no-repeat 100px 0px;	/* Replacement color / Same combined image / Non repeating / Make sure we get the 'second' image this time
	height: 100px;											/* Still the height of 'one' image */
}
I'll dig you up a link to a better tutorial as well. :P

This gives a full explanation for a full menu, but I think only the rollover part matters to you.
http://www.ssi-developer.net/css/men...r-effect.shtml
__________________
<?php ($helpfull>0)?$talkupation++ : '';?>

Last edited by Insensus; 12-04-2008 at 12:43 PM..
Insensus is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Hover help
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.31140 seconds with 12 queries