, Guest!
Already a Member? Login or Register.

Menu



Showcase


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 
yorkcoparamedic


Posts: 11
 
"Bookmark Us" scriptSeptember 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.

 

Post Message 




Try & Buy FeedForAll - Easy to use RSS Feed Creator - great for iTunes users!

MEMBERS




All Contents, Code, Scripts and Technologies Copyright 2003-2009 FlexCMS.
All Rights Reserved. Software License Agreement

Processing Time: 0.19977 seconds.
 
Management Login

Powered By FlexCMS
Powered By FlexCMS