diedVIPs

html knowhow

Button Add to Favorites










Add to Favorites

Add to Favorites oder Bookmark ist das gleiche. Mit diesem Butten können ihre Besucher Ihre Seite zu deren Favoriten schreiben.

So sieht´s aus




Quellcode
<html>
<head>
<script type="text/javascript">
function addBookmark(url, title){
if (!url) {url = window.location}
if (!title) {title = document.title}
var browser=navigator.userAgent.toLowerCase();
if (window.sidebar) { // Mozilla, Firefox, Netscape
window.sidebar.addPanel(title, url,"");
} else if( window.external) { // IE or chrome
if (browser.indexOf('chrome')==-1){ // ie
window.external.AddFavorite( url, title);
} else { // chrome
alert('Please Press CTRL+D (or Command+D for macs) to bookmark this page');
}
}
else if(window.opera && window.print) { // Opera - automatically adds to sidebar if rel=sidebar in the tag
return true;
}
else if (browser.indexOf('konqueror')!=-1) { // Konqueror
alert('Please press CTRL+B to bookmark this page.');
}
else if (browser.indexOf('webkit')!=-1){ // safari
alert('Please press CTRL+B (or Command+D for macs) to bookmark this page.');
} else {
alert('Your browser cannot add bookmarks using this link. Please add this link manually.')
}
}
</script>

<style type="text/css">Hier nichts</style>
</head>

<body >
<input style="border-width:0px;background-color:aqua;font-size:1.3em;color:black;border-radius:10%;" type="button" value="Füge diese Seite deinen Bookmarks zu!"
onclick="addBookmark('http://htmlknowhow.de', 'Die Seite für Webdesigner');"/>
</body>

</html>







Kontakt    Datenschutz   Impressum