Add to Favourites or Bookmark
To make it easier for your web site visitors to revisit your site include an “Add to favourites” option. This is also known as Book marking a page. By adding this feature to your site you will increase the amount of repeat visitors to your site.
To do this you need to add some JavaScript [Define] to your web site, which is really easy to do. Copy the code below into the section of your web site where you want the “Add to favourites” functionality to where you would like it to appear.
<script language="JavaScript1.2">
<!--
var bookmarkurl="http://www.websiteaddress.co.uk"
var bookmarktitle="Change to short web site description"
function addbookmark(){
window.external.AddFavorite(bookmarkurl,bookmarktitle)
}
if (navigator.userAgent.indexOf("Windows") != -1 &&
navigator.appVersion.substring(0,1) > 3){
document.write("<a href=javascript:addbookmark();>Add to Favourites</a>");
}
else{
document.write("Please bookmark this page.");
}
//-->
</script>
Easy changes the code
Change http://www.websiteaddress.co.uk to your web site address, otherwise people will bookmark www.websiteadress.co.uk. Remember to include http:// at the beginning of the address and put “ “ around the complete address.
Change “Change to short web site description” to a description of your web site, and remember to put “” around the description.
If you use a web design program like Dreamweaver or FrontPage you will need to switch it into code mode, which will be explained in the programs help menu. Once in the code mode insert this code into the section of the web site where you want it to appear, for example the navigation bar.
More web design tips
To do this you need to add some JavaScript [Define] to your web site, which is really easy to do. Copy the code below into the section of your web site where you want the “Add to favourites” functionality to where you would like it to appear.
<script language="JavaScript1.2">
<!--
var bookmarkurl="http://www.websiteaddress.co.uk"
var bookmarktitle="Change to short web site description"
function addbookmark(){
window.external.AddFavorite(bookmarkurl,bookmarktitle)
}
if (navigator.userAgent.indexOf("Windows") != -1 &&
navigator.appVersion.substring(0,1) > 3){
document.write("<a href=javascript:addbookmark();>Add to Favourites</a>");
}
else{
document.write("Please bookmark this page.");
}
//-->
</script>
Easy changes the code
Change http://www.websiteaddress.co.uk to your web site address, otherwise people will bookmark www.websiteadress.co.uk. Remember to include http:// at the beginning of the address and put “ “ around the complete address.
Change “Change to short web site description” to a description of your web site, and remember to put “” around the description.
If you use a web design program like Dreamweaver or FrontPage you will need to switch it into code mode, which will be explained in the programs help menu. Once in the code mode insert this code into the section of the web site where you want it to appear, for example the navigation bar.
More web design tips
0 Comments:
Post a Comment
<< Home