Reply
Display Image on Mouseover
Old 05-20-2008, 11:59 PM Display Image on Mouseover
Junior Talker

Posts: 3
Name: Cheeseman
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
 
When You Register, These Ads Go Away!
Old 05-21-2008, 02:16 AM Re: Display Image on Mouseover
bakerc's Avatar
Penguins on toast

Posts: 1,811
Name: carl
Location: UK
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.
__________________
adverse credit mortgage specialist, bad credit mortgage resources, credit repair and debt consolidation | debt management mortgage solutions.
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: 127
Name: Jess Weiss
Location: Massachusetts
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
bakerc's Avatar
Penguins on toast

Posts: 1,811
Name: carl
Location: UK
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.
__________________
adverse credit mortgage specialist, bad credit mortgage resources, credit repair and debt consolidation | debt management mortgage solutions.
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
Super Moderator

Posts: 6,557
Location: Tennessee
Try this solution: http://meyerweb.com/eric/css/edge/popups/demo2.html
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!
"Using or working with IE is like having to wear a 1970's polyester suit with pantyhose and a girdle, to work everyday"
Carolina Corvette Club
LadynRed is offline
Reply With Quote
View Public Profile
 
Old 05-21-2008, 08:28 PM Re: Display Image on Mouseover
Super Talker

Posts: 127
Name: Jess Weiss
Location: Massachusetts
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
Super Moderator

Posts: 6,557
Location: Tennessee
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 !!
"Using or working with IE is like having to wear a 1970's polyester suit with pantyhose and a girdle, to work everyday"
Carolina Corvette Club
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
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: 377
Name: Venkat Raj
Location: Salem, South India
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
Super Moderator

Posts: 6,557
Location: Tennessee
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 !!
"Using or working with IE is like having to wear a 1970's polyester suit with pantyhose and a girdle, to work everyday"
Carolina Corvette Club
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
thanks for all your help guys
codingbeginner is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Display Image on Mouseover
 

Thread Tools

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

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