Forum Moderators: mack
i have used many different scripts, none of them work for me. the only thing i can think of is that they might be getting messed up because the site i am building is a site that uses frames.
if this is the problem, does anyone know of a workaround for it?
if it matters, i am trying to put the bookmark link in the contents frame (left side) and have a header frame, footer frame, and main page frame in addition to the contents frame.
if you need more clarification to help me, let me know, and i will get you any info you need.
-Thanks in advance,
Skate
Are you using something like:
<a href="javascript:window.external.AddFavorite('http://www.mysite.com','Favorites text')">Bookmark Us</a>
script1:
<!-- TWO STEPS TO INSTALL BOOKMARK PAGE:
1. Copy the coding into the HEAD of your HTML document
2. Add the last code into the BODY of your HTML document -->
<!-- STEP ONE: Paste this code into the HEAD of your HTML document -->
<HEAD>
<SCRIPT LANGUAGE="JavaScript">
<!-- This script and many more are available free online at -->
<!-- The JavaScript Source! [javascript.internet.com...] -->
<!-- Original: Prakash -->
<!-- Web Site: [www20.brinkster.com...] -->
<!-- Begin
function addbookmark()
{
bookmarkurl="http://wwwJavascriptsource.com"
bookmarktitle="Welcome To The Java Script Source"
if (document.all)
window.external.AddFavorite(bookmarkurl,bookmarktitle)
}
// End -->
</script>
</HEAD>
<!-- STEP TWO: Copy this code into the BODY of your HTML document -->
<BODY>
<a href="javascript:addbookmark()"><b>Bookmark This Page</a>
<p><center>
<font face="arial, helvetica" size"-2">Free JavaScripts provided<br>
by <a href="http://javascriptsource.com">The JavaScript Source</a></font>
</center><p>
<!-- Script Size: 1.02 KB -->
script2:
<!-- ONE STEP TO INSTALL BOOKMARK US:
1. Copy the coding into the BODY of your HTML document -->
<!-- STEP ONE: Paste this code into the BODY of your HTML document -->
<SCRIPT LANGUAGE="JavaScript">
<!-- This script and many more are available free online at -->
<!-- The JavaScript Source! [javascript.internet.com...] -->
<!-- Begin
if ((navigator.appName == "Microsoft Internet Explorer") && (parseInt(navigator.appVersion) >= 4)) {
var url="http://www.javascriptsource.com";
var title="The JavaScript Source";
document.write('<A HREF="javascript:window.ext');
document.write('ernal.AddFavorite(url,title);" ');
document.write('onMouseOver=" window.status=');
document.write("'Add our site to your favorites!'; return true ");
document.write('"onMouseOut=" window.status=');
document.write("' '; return true ");
document.write('">Add our site to your favorites!</a>');
}
else {
var msg = "Don't forget to bookmark us!";
if(navigator.appName == "Netscape") msg += " (CTRL-D)";
document.write(msg);
}
// End -->
</script>
<p><center>
<font face="arial, helvetica" size="-2">Free JavaScripts provided<br>
by <a href="http://javascriptsource.com">The JavaScript Source</a></font>
</center><p>
<!-- Script Size: 0.91 KB -->
those are indicative of the types i have used... some with only script for the body, some with script for both. i usually wind up getting the error "'url' undefined" when i try to click the links they make... the other error i get alot is "object expected"
-thanks again,
Skate