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.
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.
Comment