View Single Post
  #1  
Old 07-24-2008, 12:11 PM
  tqualizerman's Avatar 
tqualizerman tqualizerman is offline
 

X-Adept
  
Join Date: Jun 2008
Posts: 392
 

Default Bookmark this page - how to?

I've been reading that offering a reminder to bookmark can boost repeat shopping, but I'm having a hard time getting this code to work with smarty

I've found a fairly clean code that looks like this:

<script>
function bookmark(title,url){
if(window.sidebar)
window.sidebar.addPanel(title,url,■");
else if(window.opera && window.print){
var elem = document.createElement(▓a');
elem.setAttribute(▓href▓,url);
elem.setAttribute(▓title▓,title);
elem.setAttribute(▓rel▓,▓sidebar▓);
elem.click();
}
else if(window.external)
window.external.AddFavorite(url,title);
}
</script>




And to call it on a page you use this:



<a href=■javascript:bookmark(▓Henrie Media Inc.▓,▓http://www.henriemedia/▓);■>Bookmark this page</a>

But x-cart is giving a bunch of problems, for one its taking me to a 404-not found page (which may or may not be my SEO module interfering.)



Has anyone successfully implemented this on their site?
__________________
- www.nerdseven.com - Gadgets & Gizmos from Out of This World
- Sound Sensitive T-Shirts That Flash to the Beat of Music (http://www.tqualizer.com)


X-Cart Version 4.1.10
Reply With Quote