Re: Pop Up bookmark in hotspot

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Stefan B Rusynko (sbr_enjoy_at_hotmail.com)
Date: 12/16/04


Date: Thu, 16 Dec 2004 05:57:25 -0500

Remove All the code you pasted in the hyperlink tag (a href=) and paste it in the HEAD section (before the </head> tag) as

<script LANGUAGE="JavaScript">
Function addtofavorites() {
if ((navigator.appName == "Microsoft Internet Explorer") && (parseInt(navigator.appVersion) >= 4)) {
var url="http://WWW.YOURWEBSITE.COM/";
var title="YOURWEBSITE DESCRIPTION (this will display on favorites listing)";
document.write('<A HREF="javascript:window.external.AddFavorite(url,title);"');
document.write('<small>Bookmark YOURWEBSITE!</small><br></a>');
} else {
var msg = "<b>Bookmark YOURWEBSITE!</b>";
if(navigator.appName == "Netscape") msg += " <b> - press(Ctrl-D) on your keyboard.</b>";
document.write(msg);
} }
</script>

Note: The above code can not wrap - each line above ends in a { or } or ;

Then in your hyperlink tag (a href=" ") add: javascript: addtofavorites()
so it look like:
<a href="javascript:addtofavorites(); title="Add to favorites">

-- 
_____________________________________________
SBR @ ENJOY (-:              [ Microsoft MVP - FrontPage ]
"Warning - Using the F1 Key will not break anything!"  (-;
To find the best Newsgroup for FrontPage support see:
  http://www.net-sites.com/sitebuilder/newsgroups.asp
_____________________________________________
"Pam" <pam_staley(removethis)@hotmail.com> wrote in message news:aG4wd.407$RH4.45@newsread1.news.pas.earthlink.net...
| the 'bookmark' I want the link to be is the one for the script that pops up
| the little box that says "Bookmark this Page" and then opens up the viewer's
| favorites and adds the page to their bookmarked sites.
|
| I did try what you suggested - just in case I'm missing something in the
| directions - I drew my hotspot around the picture - put in index.html and
| then went into the code - I took out <area href="index.html"  and then
| pasted in:
|
| <area href=<script LANGUAGE="JavaScript">
|
| if ((navigator.appName == "Microsoft Internet Explorer")
| && (parseInt(navigator.appVersion) >= 4))
| {
| var url="http://WWW.YOURWEBSITE.COM/";
| var title="YOURWEBSITE DESCRIPTION (this will display on favorites
| listing)";
| document.write('<A
| HREF="javascript:window.external.AddFavorite(url,title);"');
| document.write('<small>Bookmark YOURWEBSITE!</small><br></a>');}
| else {
| var msg = "<b>Bookmark YOURWEBSITE!</b>";
| if(navigator.appName == "Netscape") msg += " <b> - press(Ctrl-D) on your
| keyboard.</b>";
| document.write(msg);
| }
| </script>
|
| but it still doesn't work
|
| any other ideas? maybe I can't do this type of thing?
| -- 
| Blessings,
| Pam
|
|
| "Rob Giordano (aka: Crash Gordon®)" <NOVIAGRAwebmaster@siriussystems.com>
| wrote in message news:eKtpSHw4EHA.3756@TK2MSFTNGP14.phx.gbl...
| try linking it to the page that the bookmark will be on, then try altering
| the code.
|
|
| "Pam" <pam_staley(removethis)@hotmail.com> wrote in message
| news:W93wd.594$9j5.145@newsread3.news.pas.earthlink.net...
| | I think I got buried previous and I really need an answer to this - so
| | forgive me for asking again-
| |
| | I have a client that has sent me his own artwork and within the artwork is
| a
| | 'button' to click to bookmark the site - how can I incorporate the script
| | for bookmark on this 'button' with the hotspot tool? using fp2003
| |
| | the answers I got were good - however when I draw the hotspot in the
| picture
| | there is really no where to put the script - I have to put something in
| the
| | 'address' box or the hotspot disappears.  So what I tried was to put
| | 'something' in and then go into the edit view and re do the script ... it
| | seems like it works, but then when I hit preview and click on it - it
| keeps
| | going to a 'page not found' .. I tried adding the 1st part of the script
| to
| | the head tag and then the link script to where the code is at on the
| hotspot
| | link ... but then I get an error on the script....HELP??!!!
| |
| | any help appreciated
| |
| | thanks
| |
| |
| |
| |
| | -- 
| | Blessings,
| | Pam
| |
| |
| |
|
|


Relevant Pages

  • Re: DHTML Expanding Hotspot with Text - Web Component
    ... Insert> Layer ... >> if you do this it'll show as a little yellow tag in "normal view". ... >> Microsoft MVP FrontPage ... >>> I'm looking for a tool to insert hotspot text, ...
    (microsoft.public.frontpage.addins)
  • Geospatial Annotation / Social Networking Project
    ... Uses include private, community and social ... bookmark it and add notation. ... A virtual signpost with annotation for any tag you can imagine, ... jockeys, DotNet jockeys, visionaries at home in your P.J.'s. ...
    (comp.infosystems.gis)
  • Re: Help needed for a expand-collapse menu
    ... function getParentByTag(element, tag) { ... var div = getParentByTag; ... if (!div) return; // Fail silently ... so I need help with the collapse part and this is how I would like to ...
    (comp.lang.javascript)
  • Re: Error! Bookmark not defined. HELP!!
    ... Look up the Help topic "Field codes: XE (Index Entry) field" ... when the same XE tag appears on a range of pages. ... Seven of your tags are expecting a bookmark, ... deletion of entries. ...
    (microsoft.public.word.docmanagement)
  • Re: Get ID-Tags of MP3s
    ... {- Fixed bug with tag ... {ID3v2 frame header} ... function ExtractTrack(const TrackString: string): Byte; ...
    (comp.lang.pascal.delphi.misc)