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-08-2007, 05:30 PM hover over on images
Skilled Talker

Posts: 97
Trades: 0
im wondering how to display text over the images when you hover over the image like here http://digg.com/images/mosaic
__________________

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE
raptrex is offline
Reply With Quote
View Public Profile Visit raptrex's homepage!
 
 
Register now for full access!
Old 12-08-2007, 06:31 PM Re: hover over on images
Joshy D's Avatar
Extreme Talker

Posts: 178
Name: Josh
Trades: 0
i believe the have used javascript...i will look into it for you...but if it is javascript then i cant help, sorry.

EDIT: yer, javascript and rss feeds.
sorry, cant help but at least you know what language it is.
Although there may be a way to do it with css, but i expect it would still be sensible the rss unless you were going to have the dame images permamently.
However, im not expert, dont take my word for, there are people with far more intelligence than me like the 2 that are always helping me chrishirst and LadynRed.

Last edited by Joshy D; 12-08-2007 at 06:39 PM..
Joshy D is offline
Reply With Quote
View Public Profile
 
Old 12-08-2007, 09:16 PM Re: hover over on images
Skilled Talker

Posts: 97
Trades: 0
anyway to do this with css
like make the text inside the pic when u hover



i can do it with one image, but i want to be able to do it with more than one
PHP Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"
>
<
html xmlns="http://www.w3.org/1999/xhtml">
<
head>
    <
title>hover images</title>
 
<
style type="text/css" title="text/css">
.
post a span{display:none;}
.
post a:hover span{displayblock;position:absolute;top:10px;left:10px;z-index100;width:128px;color:#000;}
</style>
</
head>
<
body>
 
<
div id="content">
 
<
div class="post">
<
a href="#"><img src="http://www.cssremix.com/wp-content/uploads/2007/12/greenrenaissance.jpg" /><span>this is some test thats suppose to go over the image</span></a>
</
div>
 
<
div class="post">
<
a href="#"><img src="http://www.cssremix.com/wp-content/uploads/2007/12/greenrenaissance.jpg" /><span>this is some test thats suppose to go over the image</span></a>
</
div>
</
div>
 
</
body>
</
html
__________________

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

Last edited by raptrex; 12-08-2007 at 09:38 PM..
raptrex is offline
Reply With Quote
View Public Profile Visit raptrex's homepage!
 
Old 12-08-2007, 09:54 PM Re: hover over on images
Skilled Talker

Posts: 97
Trades: 0
ok forget the post above
i found this little tutorial
http://www.wpdesigner.com/2007/09/07...ss-hover-menu/
but the css doesnt work for some reason
.hover-menu is suppose to be hidden until i hover
but its there...
PHP Code:
<html>
<
head>
    <
title>hover images</title>

<
style type="text/css" title="text/css">
.
hover-wrap{
positionrelative;
}

.
hover-wrap .hover-menu{
displaynone;
}

.
hover-wrap:hover .hover-menu{
displayblock;
positionabsolute;
top10px;
left10px;
z-index100;
white-spaceno-wrap;
}
</
style>
</
head>
<
body>

<
div class=&#8221;hover-wrap”>
Some regular text here that the user sees when viewing the page

<div class=&#8221;hover-menu”>
Here&#8217;s what the users will see when they move their cursors over this area.
</div>

</
div>
</
body>
</
html
__________________

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE
raptrex is offline
Reply With Quote
View Public Profile Visit raptrex's homepage!
 
Old 12-09-2007, 12:44 PM Re: hover over on images
LadynRed's Avatar
Defies a Status

Posts: 10,016
Location: Tennessee
Trades: 0
The :hover pseudo class will NOT work on anything except a <a> link in IE6 and below. In order to make it work, you need a bit of javascript - do a search for "whatever hover", it works.
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to hover over on images
 

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 1.03205 seconds with 12 queries