
10-31-2006, 06:23 PM
|
 | General & Forum Moderator | | Join Date: Oct 2005 Location: Italy
Posts: 9,288
| |
Bookmark ( Add to favourites) button in BV | | This is an example of bookmark button. A BV advanced button is used.
Please copy the following code in the "Between Head" Tag of your page HTML: <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
***********************************************/
function bookmarksite(title, url){
if (document.all)
window.external.AddFavorite(url, title);
else if (window.sidebar)
window.sidebar.addPanel(title, url, "")
}
</script> To create the button, open your BV page, and click on the icon of the "Advanved Button" , or clicl on "Insert", --> Form --> Advanved Button. Size it as you want, and double click on it , to open the Properties Dialog Box. For the button properties, select the following:
Button Type: OnClick
OnClick Action : Execute Javascript function
In the OnClick value field type in javascript:bookmarksite('site_title', 'site_URL') Replace "site_title" with the actual title of your site, f.e. 'Studio Navaldesign'. Replace 'site_URL' with the actual URL of your site (or that of the specific page), f.e. 'http://www.navaldesign.info' Please test the script in www.navaldesign.info/Tips/bookmarkbutton.html This script was found, as you can see, in Dynamic Drive at http://www.dynamicdrive.com
Oh, it also works in preview.
__________________
Navaldesign Logger Lite: Low Cost, Customizable, multifeatured Login script Instant Download Cart: a Powerfull, Customized, in site, DB driven, e-products Cart DBTechnosystems.com Forms, Databases, Shopping Carts, Instant Download Carts, Loggin Systems and more.... Advanced BlueVoda Form Processor : No coding form processor! Just install and use! Now with built in CAPTCHA! |