Creating Graphic Links


You can also use images to link to documents within your site, as well as to sites other than your own. This exercise shows you how to create an external link. You can use the same techniques you used in the preceding exercise to link images to files on your site.

1.

Click the class.jpg graphic to select it. Enter schedule/immersion-details.html in the Property inspector's Link text field.

This link is a relative path. You can use graphics to provide links just as easily as text. The immersion-details.html file does not exist in the schedule folder. You can use this method to insert links for pages that have not yet been created.

Remember, you must use an absolute path to link to a document that is located outside of your local file structure or to anything that is outside of the root folder. An absolute link begins with http:// (HyperText Transfer Protocol) to indicate that the user is connecting to a Web server. The remainder of the absolute link specifies the address of the linked site. All links to documents that exist on external Websites are absolute links.

Tip

If a URL is long or complex, you can go to that site in your browser, copy the URL, and paste it into the Link text field.

2.

Save the file and preview it in the browser.

Notice that when you roll over the graphics at the bottom of the page, you see the hand, indicating that they are linked. Depending on your browser, the link locations can appear in the browser's status bar as you roll over the links.




Macromedia Dreamweaver 8(c) Training from the Source
Macromedia Dreamweaver 8: Training from the Source
ISBN: 0321336267
EAN: 2147483647
Year: 2006
Pages: 326

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net