Reply
Hover image over text
Old 10-24-2007, 01:35 PM Hover image over text
MattCoops's Avatar
Ultra Talker

Posts: 420
Name: Matt Cupan
Location: Charlotte, NC
Trades: 0
How can I hover a different image over each text in <ul>?

here is an example of what I'm talking about: http://www.idprojections.com/portfolio.php
__________________
Matt - Tweeting @MattCupan
Charlotte web designer
read my articles
MattCoops is offline
Reply With Quote
View Public Profile Visit MattCoops's homepage!
 
 
When You Register, These Ads Go Away!
Old 10-24-2007, 01:44 PM Re: Hover image over text
whym's Avatar
Defies a Status

Posts: 3,429
Trades: 0
I've taken a look at their CSS and they assigned each link a class of "screen". Here is the CSS they used:

Quote:
a.screen, a.screen:visited {
color:#ff7e00;
text-decoration: none;
position:relative;
z-index:1;
}

a.screen:visited {
color:#c00;
}
a.screen b {
position:absolute;
visibility:hidden; /* hide the image */
width:200px; /* give it a width */
height:0; /* no height to solve an Opera bug that
makes it selectable when hidden */
border:1px solid #000; /* add a border */
left:100px; /* position:the image */
top:-150px;
}
a.screen:hover {
color:#C8C22B;
text-decoration: underline overline;
border:0; /* needed for this to work in IE */
z-index:1000;
}
a.screen:hover b {
visibility:visible; /* make the image visible */
height:150px; /* now give it a height */
cursorointer; /* for IE */
z-index:500;
}
a.screen:hover b img {
border:0; /* remove the link border */
}
And the HTML:

Quote:
<li><a href="http://www.3dstructural.com/" title="3D Structural Solutions" class="screen">3D Structural Solutions<b><img src="img/port/3d.jpg" alt="3D Structural Solutions Screenshot" title="3D Structural Solutions Screenshot" /></b></a></li>
Looks like the image is hidden, until they hover over it and it becomes visible. I did something similar with my drop down menu on my hosting site.

Hope this helps,
Whym
__________________
Whym Web Design
whym is offline
Reply With Quote
View Public Profile Visit whym's homepage!
 
Old 10-24-2007, 02:39 PM Re: Hover image over text
MattCoops's Avatar
Ultra Talker

Posts: 420
Name: Matt Cupan
Location: Charlotte, NC
Trades: 0
you have a smiley in the code
can you retype that part again?
__________________
Matt - Tweeting @MattCupan
Charlotte web designer
read my articles

Last edited by MattCoops; 10-24-2007 at 02:48 PM..
MattCoops is offline
Reply With Quote
View Public Profile Visit MattCoops's homepage!
 
Old 10-24-2007, 02:50 PM Re: Hover image over text
whym's Avatar
Defies a Status

Posts: 3,429
Trades: 0
Sorry that was just what came out when I copied and pasted the code.

I'll repaste the CSS:

Quote:
a.screen, a.screen:visited {
color:#ff7e00;
text-decoration: none;
position:relative;
z-index:1;
}

a.screen:visited {
color:#c00;
}
a.screen b {
position:absolute;
visibility:hidden; /* hide the image */
width:200px; /* give it a width */
height:0; /* no height to solve an Opera bug that
makes it selectable when hidden */
border:1px solid #000; /* add a border */
left:100px; /* position:the image */
top:-150px;
}
a.screen:hover {
color:#C8C22B;
text-decoration: underline overline;
border:0; /* needed for this to work in IE */
z-index:1000;
}
a.screen:hover b {
visibility:visible; /* make the image visible */
height:150px; /* now give it a height */
cursor: pointer; /* for IE */
z-index:500;
}
a.screen:hover b img {
border:0; /* remove the link border */
}
__________________
Whym Web Design
whym is offline
Reply With Quote
View Public Profile Visit whym's homepage!
 
Old 10-24-2007, 03:20 PM Re: Hover image over text
MattCoops's Avatar
Ultra Talker

Posts: 420
Name: Matt Cupan
Location: Charlotte, NC
Trades: 0
thank you

all fixed now
__________________
Matt - Tweeting @MattCupan
Charlotte web designer
read my articles
MattCoops is offline
Reply With Quote
View Public Profile Visit MattCoops's homepage!
 
Reply     « Reply to Hover image over text
 

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.09748 seconds with 13 queries