Debt Consolidation - Debt Consolidation - Free Animated Greetings - Myspace Code - Air Jordan Release Date

PDA

View Full Version : [Plz Help] How to Set-up a Button (Image) to Bookmark


Darkhodge
Apr 1st 2006, 5:24 am
Hey,


I was just wondering how I could go about using an image as a button to bookmark the page.

In case I didn't explain that properly, I want to set-up an image that visitors click on which would then automatically bookmark the page.

Phew it's been a long day... I hope that made sense!


Thanks:)

Slapyo
Apr 1st 2006, 8:05 am
Search Google for javascript bookmark. I just did and a bunch of results showed up. You could then modify the code so that instead of some text saying to bookmark the site, you can have your image in there.

Darkhodge
Apr 1st 2006, 11:03 am
Ah right thanks a lot - I'll look into it :)

Darkhodge
Apr 2nd 2006, 11:02 am
Found it - well one way of doing it. I'll post it here in case others need it in the future:

-----

1. Place this code in between your <head> </head> tags:

<script type="text/javascript">
<!--
function favoris() {
if ( navigator.appName != 'Microsoft Internet Explorer' ){
window.sidebar.addPanel("YOUR SITE DESCRIPTION","http://www.YOUR SITE URL.com/","");
}
else {
window.external.AddFavorite("http://www.YOUR SITE URL.com/","YOUR SITE DESCRIPTION");
}
}
//-->
</script>


2. Hyperlink the image or text to: "javascript:void(favoris());"


That's it - hope that helps! :D