View Full Version : “Bookmark this page” Java and Netscape?


Breckenridge Realtor
02-08-2005, 09:07 AM
Should “Bookmark this page” Java work with Netscape?

I am trying to make this work at:

http://www.amenta.com/summitcountyrealestate/search.htm

The top frame is here:

http://www.amenta.com/summitcountyrealestate/top.htm

The code I am using is this:

<html>

<head>
<meta http-equiv="Content-Type"
content="text/html; charset=iso-8859-1">
<meta name="GENERATOR" content="Microsoft FrontPage 2.0">
<title>top frame of IDX service</title>

<script language="JavaScript">

<!-- Begin
function addbookmark()
{
bookmarkurl="http://www.amenta.com/summitcountyrealestate.search.htm"
bookmarktitle="Breckenridge, Keystone, and all Summit County Colorado real estate"
if (document.all)
window.external.AddFavorite(bookmarkurl,bookmarkti tle)
}
// End -->
</script>

</head>

<body bgcolor="#FFFFFF">

<p align="center"><b>| </b><a href="javascript:addbookmark()"><b>Bookmark
This Page</b></a><b>| </b><a href="http://www.amenta.com/"
target="_blank"><font size="2" face="Arial"><b>Return To Ted's
Summit County Real Estate Index Page</b></font></a><font size="2"
face="Arial"><b> |</b></font></p>
</body>
</html>

This is working with IE 6.0 but not Netscape 7.2

Any suggestions would be greatly appreciated.

seo guy
02-11-2005, 02:26 PM
Try this: It will detect IE and if anything else will give the command
"Bookmark this page (ctrl D)" - which is customizable


<SCRIPT LANGUAGE="JavaScript">
var txt = "Bookmark this MLS page!";
var url = "http://www.yourdomain.com/yourfile.php";
var who = "Description of your mls page";

var ver = navigator.appName;
var num = parseInt(navigator.appVersion);
if ((ver == "Microsoft Internet Explorer")&&(num >= 4)) {
document.write('<A HREF="javascript:window.external.AddFavorite(url,who);" ');
document.write('onMouseOver=" window.status=');
document.write("txt; return true ");
document.write('"onMouseOut=" window.status=');
document.write("' '; return true ");
document.write('">'+ txt + '</a>');
}else{
txt += " (Ctrl+D)";
document.write(txt);
}
</script>