, Guest!
Already a Member? Login or Register.





Menu



Clients



Showcase



Rate FlexCMS

ScriptSearch.com Rating:

Hotscripts Rating
Excellent!
Very Good
Good
Fair
Poor



FlexCMS eNews

To subscribe to our enewsletter, please enter your email address in the box below and click the "Subscribe" button.


Note:  You may easily remove yourself from the newsletter list at any time by following the instructions included with every mailing.

LATEST DEVELOPMENT NEWS:  FlexCMS 2.5 has been released!!! Click here to read the official announcement!

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 







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

Processing Time: 0.12490 seconds.
 

Powered By FlexCMS
Powered By FlexCMS


Valid CSS!