Legal Real estate Insurance Website Hosting Travel Agents Internet & Phone Casino Sports Book Templates Expat Food Items Domain Names
Submit Engine Send e-Cards Shopping Mall Travel Guide Missing Persons Free Web Based E-mail Search The Web Webmaster Tools Dating Service Blog read now Play Flash Games
Free E-books Free Legal Forms Reference Programs Scripts Affilliate Videos Free Adsense Templates Erotic phone Java games
Send SMS to USA FAQ's & Advice Expat Profile Consumer Protection Testimonials Pattaya's WeatherThai Food Recipes Free Articles Free Magazines
Pattaya City Thailand, legal, real-estate and discount international telephone services pattaya city thailand.com - Pattaya City Thailand now offers free webmaster utilites, free programs and free downloads

Webmaster Tips, Tricks & Utilities    JavaScript's & CSS Styling

      Bookmark This Page

Here is a simple JavaScript that will let your visitors bookmark your website! This script is compatible with Internet Explorer and Mozilla / Firefox browsers.

<span style="border: 1px dashed rgb(51, 51, 51); padding: 3px;">
<script type="text/javascript">
var text = "Bookmark This Page!"
// Add your website URL between the quotations below
var site = "http://www.pattayacitythailand.com";
// Add your site description in the quotations below
var desc = "Webtools for Webmasters"
var ver = navigator.appName
var num = parseInt(navigator.appVersion)
if ((ver == "Microsoft Internet Explorer")&&(num >= 4))
{
document.write('<a title="Bookmark this page" href="javascript:window.external.AddFavorite(site,desc);" ');
document.write('onMouseOver=" window.status=')
document.write("text; return true ")
document.write('"onMouseOut=" window.status=')
document.write("' '; return true ")
document.write('">'+ text + '</a>')
}
else
{
text += " (Ctrl+D)"
document.write(text)
}
</script> </span>

Copy the code and paste it into your webpage where you would like it to show up. Go through the lines of the script that have the "//" in front of them -- those forward slashes indicate a comment.

The first comment line asks you to add the URL of your website for your visitors to bookmark in between the quotation marks. The second comment line is pointing out where you would add the description of your website. Try to keep the description fewer than 10 words.

The following are not working examples of the script:

Secondary Visual Output:

Bookmark This Page! (Ctrl+D)

Primary Visual Output

Bookmark This Page!

In some browsers, the code will show the linked text "Bookmark This Page!" In other browsers, it will show the unlinked text "Bookmark This Page! (Ctrl+D)."

Below is a working example.

 

 

Pattaya City Thailand, legal, real-estate and discount international telephone services



Google