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
Display Image on Mouseover
Old 05-20-2008, 11:59 PM Display Image on Mouseover
Junior Talker

Posts: 3
Name: Cheeseman
Trades: 0
I am really having trouble (as my name suggests) with making a code that will display an image when i mouseover another image. I want this new image to be displayed like a title attribute.

Any thoughts?
codingbeginner is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 05-21-2008, 02:16 AM Re: Display Image on Mouseover
Defies a Status

Posts: 2,071
Name: carl
Location: UK
Trades: 0
Hi

Do you just want text to increase in size or have a picture attached? Little unsure as you say you want it to display like a title attribute?

The text, text-color, background-color (and background picture) can be altered on mouseover using CSS
you may find the links below useful
http://www.oreillynet.com/pub/a/java...rollovers.html

http://www.webcredible.co.uk/user-fr...-buttons.shtml


but if you want anything more than that I belive javascript would be needed.
__________________

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


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


Please login or register to view this content. Registration is FREE
bakerc is offline
Reply With Quote
View Public Profile Visit bakerc's homepage!
 
Old 05-21-2008, 11:55 AM Re: Display Image on Mouseover
Super Talker

Posts: 133
Name: Jess Weiss
Location: Massachusetts
Trades: 0
I'm also not really sure what you want to do, but I've created a lot of image rollovers using the so called "sliding doors" method - you can see what I did here: www.jessweiss.com/webdesign.html. Basically, you create an image with two halves and have it switch to the opposite half when you rollover. If you google "sliding doors" and css, you will find a ton of information. Hope that helps.
__________________
"If you worried about falling off the bike, you'd never get on it" - Lance Armstrong

"The problem with people who have no vices is that generally you can be pretty sure they're going to have some pretty annoying virtues." - Elizabeth Taylor
lynnema is offline
Reply With Quote
View Public Profile Visit lynnema's homepage!
 
Old 05-21-2008, 12:51 PM Re: Display Image on Mouseover
Defies a Status

Posts: 2,071
Name: carl
Location: UK
Trades: 0
You can do the same for three images (well, 1 image with 3 parts to it), you can change the image to align left, middle or right in the div so you can have normal, rollover and active.
__________________

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


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


Please login or register to view this content. Registration is FREE
bakerc is offline
Reply With Quote
View Public Profile Visit bakerc's homepage!
 
Old 05-21-2008, 02:54 PM Re: Display Image on Mouseover
LadynRed's Avatar
Defies a Status

Posts: 10,017
Location: Tennessee
Trades: 0
Try this solution: http://meyerweb.com/eric/css/edge/popups/demo2.html
__________________
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
 
Old 05-21-2008, 08:28 PM Re: Display Image on Mouseover
Super Talker

Posts: 133
Name: Jess Weiss
Location: Massachusetts
Trades: 0
Quote:
Originally Posted by LadynRed View Post
That is SO COOL! I can't wait to use it!
__________________
"If you worried about falling off the bike, you'd never get on it" - Lance Armstrong

"The problem with people who have no vices is that generally you can be pretty sure they're going to have some pretty annoying virtues." - Elizabeth Taylor
lynnema is offline
Reply With Quote
View Public Profile Visit lynnema's homepage!
 
Old 05-21-2008, 08:42 PM Re: Display Image on Mouseover
LadynRed's Avatar
Defies a Status

Posts: 10,017
Location: Tennessee
Trades: 0
I did use it a couple of years ago - you can see it here:
http://www.dallasmedicalspecialists.com/doctors.htm
Hover your mouse over the names - they loved it.. the same effect is on the main menu
__________________
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
 
Old 05-21-2008, 09:45 PM Re: Display Image on Mouseover
Junior Talker

Posts: 3
Name: Cheeseman
Trades: 0
I apologize for my lack of clarity so i have found an example, if you hover over one of the images, a decorated alt tab will appear and this is exactly what i am looking for (and yes i have already tried getting the code from the source, didnt work )http://www.addictinggames.com/index.html
codingbeginner is offline
Reply With Quote
View Public Profile
 
Old 05-22-2008, 08:43 AM Re: Display Image on Mouseover
Kirtan's Avatar
Who Am I?

Posts: 376
Name: Venkat Raj
Location: Salem, South India
Trades: 3
Hope this helps...
HTML 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" xml:lang="en" lang="en">
<head>
<title>Pop up</title>
<meta name="generator" content="Bluefish 1.0.7"/>
<meta name="author" content="N. Venkat Raj"/>
<meta name="date" content="2008-05-22T18:09:11+0530"/>
<meta name="copyright" content=""/>
<meta name="keywords" content=""/>
<meta name="description" content=""/>
<meta http-equiv="content-type" content="text/html; charset=UTF-8"/>
<meta http-equiv="content-style-type" content="text/css"/>
<style type="text/css">
a.popup {
position: relative;
}

a.popup span {
display: none;
}

a.popup:hover span {
position: absolute;
top: 2em;
left: 0;
width: 100px;
padding: 10px;
display: block;
border: 3px solid #ccc;
background: #5f0;
}

/* Don't expect to write standards code for IE. ;) */
a.popup:hover {
  font-size: 100%;
}
</style>
</head>
<body>
<h1>You are looking to make a popup!</h1>
<p>Move Your Mouse <a href="#" class="popup">Over Me<span>Here goes your popup message</span></a></p>
</body>
</html>
Demo
http://logodesignfactory.co.in/popup.html
__________________
All the Buddhas of all the ages have been telling you a very simple fact: Be -- don't try to become.
Kirtan is offline
Reply With Quote
View Public Profile Visit Kirtan's homepage!
 
Old 05-22-2008, 09:38 AM Re: Display Image on Mouseover
LadynRed's Avatar
Defies a Status

Posts: 10,017
Location: Tennessee
Trades: 0
I gave you a solution, it can easily be adapted to do exactly what you referred to. You're just going to have to do some WORK to implement it.
__________________
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
 
Old 05-22-2008, 09:30 PM Re: Display Image on Mouseover
Junior Talker

Posts: 3
Name: Cheeseman
Trades: 0
thanks for all your help guys
codingbeginner is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Display Image on Mouseover
 

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