PDA

View Full Version : How do I put in a bookmark?



Oboe Girl
08-12-2006, 04:45 PM
I want to add the "BOOKMARK US" to my site. How do I do that? I imagine it's simple but I don't know how to do it.

Oboe Girl
http://www.bostonterriergifts.com

FPRob
08-12-2006, 06:17 PM
You dont need a script for that one mate :)

Simply add a line of text which says

To bookmark this page pres CTRL+D

Dolding CTRL and tapping the letter D is the standard keyboard shortcut to add a webpage to your list of bookmarks :)

Oboe Girl
08-12-2006, 10:56 PM
Sorry, I guess I wasn't clear on what I wanted to do. I want to add the opportunity for people to bookmark my web site on the page of my website so they will add my site to their "Favorites."

FPRob
08-12-2006, 11:16 PM
Yes mate...CTRL+D will do it without the need to add clunky and chunky JavaScript. All you need to do is have a little line of text letting people know that they have that option. Many people don't use keyboard shortcuts so they are unaware of this quick way to add bookmarks to their favourites list.

:)

Collectors-info
08-12-2006, 11:33 PM
You can cut & paste all the code thatís between the solid lines (not the solid lines) into your html box. These types of code wont work in some browsers but will in most. This one I believe will leave a message to press Ctrl+D if the browser is not compatible.

__________________________________________________ ____________________


<font face="Arial" size="3">
<b>
<script>
.
.
.
</script>
</b>
</font>

<script language="JavaScript">
<!--
// ==============================================
// www.collectors-info.com (http://www.collectors-info.com)
// ==============================================

// message to show in non-IE browsers
var txt = "Book mark us to your favorites we would like see you again!"
// do not edit below this line
// ===========================

var url = this.location;
var who = document.title;
var ver = navigator.appName
var num = parseInt(navigator.appVersion)
if ((ver == "Microsoft Internet Explorer")&&(num >= 4)) {
document.write('<A HREF="javascript:window.external.AddFavorite(url,who);" ');
document.write('onMouseOver=" window.status=')
document.write("txt; return true ")
document.write('"onMouseOut=" window.status=')
document.write("' '; return true ")
document.write('">'+ txt + '</a>')
______________________
}else{
txt += " (Ctrl+D)"
document.write(txt)
}

//-->
</script>
__________________________________________________ _____________________



Good luck

Chris

Oboe Girl
08-12-2006, 11:56 PM
Thank you FPRob & Chris. I'm using both ideas on different pages of my site. I really appreciate the help. You're great!!!

FPRob
08-13-2006, 12:02 AM
Coool, both should work fine... you will find that the JavaScript above won't work in broswers where people have JavaScript disabled though OG. People will get an error but most do have it enabled.

Hehehe you can ignore this bit from the top of the above code as it has nothing in it...




<font face="Arial" size="3">
<b>
<script>
.
.
.
</script>
</b>
</font>