|
 |
Due to the volume of spam happening on our forums, posting is now restricted to verified members only. If you're not verified, drop us a note with your username.
|
|
 Home > FlexCMS Support Forum > User Help > Code Snippets > "Bookmark Us" script

FlexCMS Support Forum


"Bookmark Us" script Started September 15, 2007 @ 3:47pm by yorkcoparamedic
 |
Post Message |
|
|
"Bookmark Us" script | September 15, 2007 @ 3:47pm | This works well with most newer browsers like IE, FF, and Opera. I have tested it on all of them. Just place the code below in a new menu block, change to your URL and off you go.

Code
<script type="text/javascript">
function bookmark_us(url, title){
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:bookmark_us('http://www.yoursitehere.com')">Click Here!</a> |
|
You can also use a image instead of a text link.
|
|
|
|
|
|
|
|


|
|
 | MEMBERS 
|

|
|