PDA

View Full Version : Is saving for Web really doing the trick?


donamai
02-02-2008, 01:25 AM
Hello!

As any other person here I would like to ask a basic question regarding link usage. I have been trying for a while to find out if saving for web is actually doing the right job when saving images with links.

I have created an image for a website with a link to another website on it. When I am ready to save it in the safe for web window I press the brower preview and I do get the link to work but when I upload the image to the final site the link is not there anymore.

Do you think I am saving this file correctly?
Are there any settings that I have do before I finally save the image?
Do HTML outputs have something to do with this?
Does the final site have something to do with preventing the link to be displaid?

The link was added through the attributes box with a rectangle setting.

Perhaps the site I am working on does not allow images like that.

Take care and thank you ahead of time.!

Scott Weichert
02-03-2008, 08:17 AM
An image file can not contain a link in any form. No image file supports links at all. Links are made by HTML code that surrounds the image on a web page, or SWF files (Flash) which are far more than images and can contain scripting to call links.

TORCH511
02-05-2008, 02:11 PM
The reason the link works when you previewing the image is that when you preview, Illustrator is generating the HTML required to include the link, and most likely you are saving only the image, or you are saving the image and HTML, but not adding the HTML to the web page displaying the image.

The HTML Illustrator generates is for a complete web page, not just the image so you can not just copy and paste.

The image needs to be encased in an anchor tag <a> and would look something like the following:

<a href="www.somewebsite.com" target="_blank"><img src="images/yourimagefromillustrator.jpg" /></a>

the images/yourimagefromillustrator.jpg would be wherever you are storing the image within the root folder compared to where the actual page is. If the page and image are in the same folder then you can omit the image/ part.