/    Sign up×
Community /Pin to ProfileBookmark

Bookmark / Favorite Script

For my site, Outdoor High Adventure, I want to have a bookamrk script on each page along with printing, email, etc.

[CODE]<script type=”text/javascript”>

/***********************************************
* Bookmark site script- © Dynamic Drive DHTML code library (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit Dynamic Drive at http://www.dynamicdrive.com/ for full source code
***********************************************/

/* Modified to support Opera */
function bookmarksite(title,url){
if (window.sidebar) // firefox
window.sidebar.addPanel(title, url, “”);
else if(window.opera && window.print){ // opera
var elem = document.createElement(‘a’);
elem.setAttribute(‘href’,url);
elem.setAttribute(‘title’,title);
elem.setAttribute(‘rel’,’sidebar’);
elem.click();
}
else if(document.all)// ie
window.external.AddFavorite(url, title);
}
</script>

<a href=”javascript:bookmarksite(‘Outdoor High Adventure’, ‘http://www.outdoorhighadventure.com’)”><IMG style=”PADDING-LEFT: 5px” src=”http://www.outdoorhighadventure.com/Star.png” align=right border=0></a>[/CODE]

For that script I need to change it so that it bookmarks the current page and title, not the one i preset. Also, this script doesn’t work in Safari, so unless someone has a script, I need it so that in Safari, when someone clicks it, a small text message appears saying it doesn’t work in safari. Thanks!

to post a comment
JavaScript

0Be the first to comment 😎

×

Success!

Help @odhadventure spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.16,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...