PDA

View Full Version : page error for bookmark script



Denise
07-08-2005, 11:35 AM
Hi

I am new here so if I have repeated anyone's thread or not added what I should have added please accept my apologies.

I have just added your dynamic 'bookmark this site' script but when I test the link, nothing happens, I just see the words page error at the bottom of the screen.

I can't see that I have done anything wrong but am wondering if it has anything to do with the fact is in in a Frontpage 2003 shared border?

The site is http://womenaresexy.com and it is in the left border. I wonder if anyone can take a look and advise please?

Thanks very much in advance for your help.

Denise

jscheuer1
07-08-2005, 01:47 PM
You forgot to put the script on the page:

<script type="text/javascript">

/***********************************************
* Bookmark site script- Dynamic Drive DHTML code library (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit Dynamic Drive at http://www.dynamicdrive.com/ for full source code
***********************************************/

function bookmarksite(title, url){
if (document.all)
window.external.AddFavorite(url, title);
else if (window.sidebar)
window.sidebar.addPanel(title, url, "")
}

</script>You have the call for the script, but the script is not there. It belongs in the head of the document. Anywhere in the head is good but, if you are having trouble deciding, put it right between these two tags:

</style>
</head>

Denise
07-08-2005, 04:20 PM
Thanks John

I had put the script on but I'm afraid I put in in the header part of the left border and not the main part of the page. :o

However, I don't what's happening now but I still get the same messages. Sorry to be a pain.

Denise