Wednesday, January 4, 2012

How to Make a Bookmark Site Script

Favorite IconFor tips opener after a while the vacuum is how to create a script bookmarking site. You may have never seen a blog or a site that at the top there is a link labeled "Bookmark this, Bookmark this site, etc.". The function of the link it is for us mememerintahkan browser to store your blog or site address in your browser's bookmark list. For example, you try to click the link at the top right that reads my blog Bookmark This Blog. How were the results? There are pop-up display that works to save new bookmarks right?

The advantage of this script is to allow visitors to quickly access our blog and can always remember it, so we can maintain it untul kunjngannnya onwards. Ok, rather than extend muqodimah, let kta directly wrote in the title of this lecture, uh how to create scripts bookmark this site, hehehe ...

Here's How to Make a Bookmark Site Script

1. Login to your Blogger account

2. Choose Layout> Edit HTML

3. Find the code and paste the following javascript code on it:

  1. <script type="text/javascript">  
  2.     bookmarksite function (title, url) {  
  3.     if (window.sidebar)  
  4.     window.sidebar.addPanel (title, url, "");  
  5.     else if (window.opera & & window.print) {  
  6.     var elem = document.createElement ('a');  
  7.     elem.setAttribute ('href', url);  
  8.     elem.setAttribute ('title', title);  
  9.     elem.setAttribute ('rails''sidebar');  
  10.     elem.click ();  
  11.     }  
  12.     else if (document.all)  
  13.     window.external.AddFavorite (url, title);  
  14.     }  
  15.     </ Script>  

4. Click Save Template

5. To display the link you can make with a regular text link or with images, code:

Plain text link:
  1. <a href="javascript:bookmarksite('Judul Blog','URL Blog')"> Bookmark This Blog! </ a>  

Link to picture:
  1. <a href="javascript:bookmarksite('BlogTitle','URL Blog')"> <img src="url-image" border="0"/> </ a>  

Note:

If the title of your blog there are quotation marks eg Zacky's Blog, then you should add a javascript backslashed in your link, so it becomes:
  1. <a href="javascript:bookmarksite('Deni\'s Blog','URL Blog')"> Bookmark This Blog! </ a>  

The link you can place where you want.

How? Make it easy?

Anyway, do not forget to bookmark my blog

Good luck ...

0 comments:

Post a Comment

Updates Via E-Mail

Featured Post 3

Labels