Computer Forums

Member Login

Remember Me? Sign Up! | Forgot Password
 
Slogan
 
Closed Thread
Old 11-02-2008, 04:39 PM   #1 (permalink)
 
Newb Techie

Join Date: Sep 2008

Posts: 34

pcbres12 is on a distinguished road

Default Embeded links?

How do I embed a link into a picture? As in like you hover over the pic and it comes up with the little hand and you click it and takes you to the website of the picture? I am awhere of the <IMG SRC.=... > code and I am using that.

PS: This is in HTML.
pcbres12 is offline  
Old 11-02-2008, 05:30 PM   #2 (permalink)
Baez's Avatar
 

Join Date: Sep 2005

Location: Toronto, Canada

Posts: 5,465

Baez is a glorious beacon of lightBaez is a glorious beacon of lightBaez is a glorious beacon of lightBaez is a glorious beacon of lightBaez is a glorious beacon of light

Default Re: Embeded links?

I think this is what you mean.

Code:
<a href="http://www.google.com"> 
    <img src="google.jpg" alt="Google" /> 
</a>

__________________


Last edited by Baez; 11-02-2008 at 05:35 PM.
Baez is offline  
Old 11-02-2008, 06:24 PM   #3 (permalink)
CrazeD's Avatar
 
Wizard Techie

Join Date: Feb 2006

Location: Maine

Posts: 3,683

CrazeD will become famous soon enough

Send a message via AIM to CrazeD Send a message via MSN to CrazeD
Default Re: Embeded links?

Quote:
Originally Posted by cvb724 View Post
I think this is what you mean.

Code:
<a href="http://www.google.com"> 
    <img src="google.jpg" alt="Google" /> 
</a>
Almost... you need to add the title attribute to the anchor.

Code:
<a href="http://www.google.com" title="Hover text here"> 
    <img src="google.jpg" alt="Google" /> 
</a>

__________________

Need website help? PM me!
CrazeD is offline  
Old 11-02-2008, 06:56 PM   #4 (permalink)
Baez's Avatar
 

Join Date: Sep 2005

Location: Toronto, Canada

Posts: 5,465

Baez is a glorious beacon of lightBaez is a glorious beacon of lightBaez is a glorious beacon of lightBaez is a glorious beacon of lightBaez is a glorious beacon of light

Default Re: Embeded links?

The alt tag gives the hover text of the pic too. You don't need to title unless you want the name of the link and not the picture.
__________________

Baez is offline  
 
Closed Thread

Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Vista Home/Windows Mail Links No Longer Work Katmandu Windows Operating Systems and Software 4 10-13-2008 03:25 PM
CSS Visited Links Problem decrypted Programming Discussions 4 08-27-2008 04:09 PM
IE Problem With Links craftman Browser & General Internet Questions 5 08-20-2008 10:56 AM
Firefox opens links in tabs cnico88 Windows Operating Systems and Software 3 11-17-2007 10:15 PM
Virus Writers Taint Google Ad Links Osiris Virus - Spyware Protection / Detection 0 04-26-2007 08:38 PM