Go Back   CodingForums.com > :: Client side development > General web building

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 06-07-2010, 02:42 PM   PM User | #1
jmc32
New to the CF scene

 
Join Date: Jun 2010
Posts: 2
Thanks: 1
Thanked 0 Times in 0 Posts
jmc32 is an unknown quantity at this point
How do I make an image appear when hovering over text?

I am trying to make a small picture appear when the mouse hovers over some text, using adobe dreamweaver cs4. If anyone knows how to do this, it would be a great help.

Thanks
jmc32 is offline   Reply With Quote
Old 06-07-2010, 03:41 PM   PM User | #2
Fumigator
UE Antagonizer


 
Fumigator's Avatar
 
Join Date: Dec 2005
Location: Utah, USA, Northwestern hemisphere, Earth, Solar System, Milky Way Galaxy, Alpha Quadrant
Posts: 7,686
Thanks: 42
Thanked 637 Times in 625 Posts
Fumigator is a glorious beacon of lightFumigator is a glorious beacon of lightFumigator is a glorious beacon of lightFumigator is a glorious beacon of lightFumigator is a glorious beacon of light
If you're not comfortable writing Javascript code, you'll need to find someone else's Javascript code that does this. You may also want to look at using jQuery, which is a framework of functions and methods written in Javascript but it makes life easier for the web developer. One particular jQuery plugin I use a lot for mouseover stuff is called clueTip.

http://jquery.com

http://plugins.learningjquery.com/cl...etting-started
__________________
Fumigator is offline   Reply With Quote
Old 06-07-2010, 04:54 PM   PM User | #3
Apostropartheid
The Apostate


 
Apostropartheid's Avatar
 
Join Date: Oct 2007
Posts: 3,215
Thanks: 16
Thanked 265 Times in 263 Posts
Apostropartheid is on a distinguished road
Magic.
However, this rule may get you thinking:
Code:
a img {
  display: none;
}
a:hover img {
  display: inline-block;
}
__________________
Blog | Twitter
Useful links: W3C HTML Validator | W3C CSS Validator | HTML 5 Guide
CF: HTML & CSS Resources/Tutorials Thread | HTML & CSS Posting Rules and Guidelines
Remember: no link, no code, no help!
Apostropartheid is offline   Reply With Quote
Old 06-10-2010, 07:41 AM   PM User | #4
tdave
New Coder

 
Join Date: Feb 2009
Posts: 29
Thanks: 1
Thanked 1 Time in 1 Post
tdave has a little shameless behaviour in the past
Quote:
Originally Posted by Apostropartheid View Post
Magic.
However, this rule may get you thinking:
Code:
a img {
  display: none;
}
a:hover img {
  display: inline-block;
}
Nice trick,well it gonna make all image display: none

You might also consider this trick: http://lab.arc90.com/2006/07/11/link...nail/#examples
__________________
Personal use: Free software
Dummies Computer Guide /Guy...

Last edited by tdave; 06-10-2010 at 08:03 AM..
tdave is offline   Reply With Quote
Old 06-10-2010, 04:31 PM   PM User | #5
meddle58
New to the CF scene

 
Join Date: Jun 2010
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
meddle58 is an unknown quantity at this point
Use Flash

Quote:
Originally Posted by jmc32 View Post
I am trying to make a small picture appear when the mouse hovers over some text, using adobe dreamweaver cs4. If anyone knows how to do this, it would be a great help.

Thanks
Using flash for the purpose can also be a good idea. It might not be very search engine friendly so what you can do is create your menu using flash and give a normal link in the bottom so that internet users will see the flash graphics and the search engines will read the ordinary menu in the bottom.

Last edited by oracleguy; 06-10-2010 at 05:42 PM..
meddle58 is offline   Reply With Quote
Reply

Bookmarks

Tags
dreamweaver, hover, image

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

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

Forum Jump


All times are GMT +1. The time now is 02:01 PM.


Advertisement
Log in to turn off these ads.