Wrox Programmer Forums
|
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Dreamweaver (all versions) section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old October 14th, 2006, 12:11 PM
Registered User
 
Join Date: Oct 2006
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default linking images

How do I link thumbnail pictures on my site to the actual full html page? Obviously I'm a newbie
 
Old October 15th, 2006, 08:52 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Hi pbarbers,

Let's say you have a thumb called Thumb1.gif and an HTML page that shows the full image, called ShowImage1.html, then you can link to the image like this:

<a href="ShowImage1.html"><img src="Images/Thumb1.gif" /></a>

So, basically, you wrap the image in an <a> tag. The src attribute of the image points to an image in the Images folder (just an example) and the href attribute of the <a> tag points to the full page.

You can use Dreamweaver to create this code for you. Select the image, and then browse for another page in the Link box on the Properties panel for the image.

Hope this helps,

Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
Author of ASP.NET 2.0 Instant Results and Beginning Dreamweaver MX / MX 2004
Want to be my colleague? Then check out this post.





Similar Threads
Thread Thread Starter Forum Replies Last Post
Load Images from and Save Images to a Database cyndie VB.NET 2 August 17th, 2008 06:42 AM
Problem with linking images in crystal reports gpdhillon Crystal Reports 6 September 6th, 2006 11:06 PM
Linking images in SQL databases willowdesigns SQL Server ASP 0 May 3rd, 2006 01:07 PM
linking anukagni Access 1 March 28th, 2006 08:21 AM
Linking sherr8 Access 2 July 30th, 2003 02:29 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.