Forum Moderators: open

Message Too Old, No Replies

Bookmark/add to favorites script from image map?

         

Rock7

8:29 pm on Feb 19, 2006 (gmt 0)

10+ Year Member



Hey everyone,
I'm new to the forum and have a question. I'm working on my first site so bear with me.
I'm trying to find a script that would allow me to use a photoshop button with an image map to use as an "add to favorites" button. I have found quite a few scripts online but they are all using text links and not buttons.

The site is almost done but this is holding me up bigtime.

Thanks,
R7

Trace

4:41 pm on Feb 20, 2006 (gmt 0)

10+ Year Member



Are you sure you want to use an image map?

text link would look like this:

<a href="javascript:window.external.AddFavorite(location.href, document.title);">some text</a>

For an image, it isn't much different:

<a href="javascript:window.external.AddFavorite(location.href, document.title);"><IMG SRC="yourImage.gif"></a>

With an image map, just use the same javascript in the area of your map:

<IMG SRC="yourImage.gif" USEMAP="#map">
<MAP NAME="map">
<AREA SHAPE="RECT" COORDS="5,5,5,5" HREF="javascript:window.external.AddFavorite(location.href, document.title);">
</MAP>

Hope that helps.

Rock7

8:34 pm on Feb 20, 2006 (gmt 0)

10+ Year Member



Thanks for the reply.

I'm actually using a Photoshop image full of text and wanted to use an image map with some of that text. Its not actually a button.

I'll try your example later.
Thanks again.