Welcome Guest ( Log In | Register )



 
Reply to this topicStart new topic
> Let Visitors Bookmark Ur Site To Get Repeat Visitors!, easy code to let visitors add a bookmark to ur site..
shiv
post Mar 21 2006, 12:25 AM
Post #1


Member [ Level 2 ]
Group Icon

Group: Members
Posts: 53
Joined: 20-March 06
Member No.: 12,139



let ur visitors easily add a bookmark to your site. fully configurable, you can specify the url and name for the link.



QUOTE
Step 1:
put the following script in the head of your page.place the code below between the and tags within the HTML page that you want them to bookmark.

<script LANGUAGE="JAVASCRIPT" TYPE="TEXT/JAVASCRIPT">
<!--

var url = "http://your url";
var title = "your title";

function makeLink(){
if(document.all)
window.external.AddFavorite(url,title)
}

// -->
</script>


Step 2:

put the following in the BODY of your page. place the code below between the <BODY> and BODY> tags within the HTML page that you would like to let them bookmark.

<A HREF="java script:makeLink()">Bookmark Us</A>



njoy!

shiv
Go to the top of the page
 
+Quote Post
brunomokan
post Mar 21 2006, 04:25 AM
Post #2


Newbie [ Level 2 ]
Group Icon

Group: Members
Posts: 20
Joined: 19-June 05
Member No.: 6,363



nice code... it can be used with any browser???? i have a lot of codes like this that can't be used with all browsers!!! when you click on the link to bookmark the page, the browser don't bookmark it..... i will try to use it with IE, firefox and opera, te most used browsers!!!

well, i have tested it on internet explorer 6 and firefox, but it works only on internet explorer, i was unable to find the opera installer.....

one more thing, you will need to update your code:


remove the space between the words "java" and "script", writing "javascript"!!!!!!

This post has been edited by brunomokan: Mar 21 2006, 04:28 AM
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic

Collapse

> Similar Topics

Topics Topics
  1. Wondering How To Hide Your Source Code?(15)
  2. Bid Visitors Bye/thank U With A Popup Onunload In Just One Line!(0)
  3. Dynamically Change The Background Image On Mouse Effects!(3)
  4. Browser Quaker Script - Shock Your Visitors!(5)
  5. Dynamicdrive: Good Site For JavaScript Codes(5)
  6. A Cool Collection Cursor Followers! Excite Your Visitors!(1)
  7. JavaScript: A Welcome To Visitors Script(8)
  8. Javascript: Browser Detection Script(0)


 



- Lo-Fi Version Time is now: 5th December 2008 - 12:00 AM