PDA

View Full Version : Bookmarking problem


^KoalaBear^
12-25-2002, 04:47 PM
A Merry Christmas and Happy New Year to all at Codings!!

I'm going batty trying to figure out where I've slipped up on this supposedly simple bookmarking script. Could someone please point out the error of my ways?

The test url is HERE! (http://home.graffiti.net/aussiesites/test/bkmk-test.html)

The code is:

<title>Book Mark Test</title>
<!-- Beginning of CSIM -->
<IMG SRC="logo-ani-aus.gif" USEMAP="#logo-ani-aus.gif" WIDTH=700 HEIGHT=380 BORDER=0>
<MAP NAME="logo-ani-aus.gif">
<AREA SHAPE=RECT COORDS="3,324,30,348" HREF="<form><input TYPE="button" VALUE="Add To Favorites"
onClick='window.external.AddFavorite(location.href, document.title);'></form>
<AREA SHAPE=RECT COORDS="3,353,30,376" HREF="http://home.graffiti.net/xxxxxx.html" ALT="Share this Page with a Friend!">
</MAP>
<!-- End of CSIM -->
<link REL="SHORTCUT ICON" HREF="http://home.graffiti.net/aussiesites/favicon.ico">
</head>
<body text="#000000" bgcolor="#FFFFFF" link="#3333FF" vlink="#FFFFFF" alink="#FFFFFF" background="bg-text.jpg" BGPROPERTIES="FIXED">
</body>
</html>


Thanks...
Cheers!
KB...

^KoalaBear^
12-25-2002, 04:53 PM
I'm obviously trying to combine a simple 'form' button script with the mapping co-ordinates and out-smarted myself! :o

Mhtml
12-25-2002, 04:54 PM
G'day! :)

Well you just have to take out that form bit and stick in a little javascript: bit..

<title>Book Mark Test</title>
<!-- Beginning of CSIM -->
<IMG SRC="logo-ani-aus.gif" USEMAP="#logo-ani-aus.gif" WIDTH=700 HEIGHT=380 BORDER=0>
<MAP NAME="logo-ani-aus.gif">
<AREA SHAPE=RECT COORDS="3,324,30,348" HREF="javascript:window.external.AddFavorite(location.href, document.title)">
<AREA SHAPE=RECT COORDS="3,353,30,376" HREF="http://home.graffiti.net/xxxxxx.html" ALT="Share this Page with a Friend!">
</MAP>
<!-- End of CSIM -->
<link REL="SHORTCUT ICON" HREF="http://home.graffiti.net/aussiesites/favicon.ico">
</head>
<body text="#000000" bgcolor="#FFFFFF" link="#3333FF" vlink="#FFFFFF" alink="#FFFFFF" background="bg-text.jpg" BGPROPERTIES="FIXED">
</body>
</html>


Try that.

Mhtml
12-25-2002, 04:57 PM
For some weird reason it is separating the word javascript into 2 words ' java script ' I guess it is so it will display without actually executing. So you will have to take out the space in the code href="javascript:

^KoalaBear^
12-25-2002, 05:21 PM
LOL Hiya Mike... Sleepwalkin near your puter again? :D :D

What is it... 4.20am over your side? LOL

Thanks I'll check out your post and see if I can get it to work, Mate!

KB...
:thumbsup:

^KoalaBear^
12-25-2002, 05:31 PM
Yep worked a treat. Mate... Thanks!! :)

Ya want some of my Chrissy chocolates? :p

Mhtml
12-26-2002, 05:01 AM
I was definitly up o late, I only just got up now 4:05pm :D
Also I couldn't eat another bite, I'm still full.

^KoalaBear^
12-26-2002, 07:15 AM
Yeah me too Mike! I ate like there was no tomorrow regretably :(

Now I gotta eat like a canary to get all that weight off again... lol

Ahhh well.... only a coupla times a year I break out and splurge on food!

Mhtml
12-26-2002, 09:37 AM
too right :)