emeraldisle
Quote:
2. Remove the java script and put it in a .js file
I can do that? How?
|
Copy and paste that code into windows notepad and save it as whatever-you-name-it.js. Make sure when you save the file you choose "Save as type" is set to "All files". Do not include the start and end script tag, for this is not needed, just the code itself.
Now in the head of your page you need to add a line like this
Code:
<SCRIPT src="path/to/javascript/whatever-you-name-it.js"></SCRIPT>
Now in the case you need to link to the script as in a bookmark script you link it like this.
Code:
<a href="javascript:addBookmark();">BookMark Us</a>
please note the 'addBookmark()' is a function in the javascript itself
Code:
var bookmarkurl="http://www.domain.com"
var bookmarktitle="Title of the bookmark"
function addBookmark(){
if (document.all)
window.external.AddFavorite(bookmarkurl,bookmarktitle)
}
^ actual code in .js file ^
Quote:
|
Where can I generate this?
|
read this first http://www.google.com/support/webmasters/bin/answer.py?answer=40318
To make a sitemap you can use the one at http://www.auditmypc.com This a free service that I have used and know it works
Note this generator does use java script