View Single Post
  #3  
Old 03-25-2009, 06:39 AM
 
carpeperdiem carpeperdiem is offline
 

X-Guru
  
Join Date: Jul 2006
Location: New York City, USA
Posts: 5,399
 

Default Re: Open a Shadowbox upon entering a page - with a smarty IF

Yes. Of course. I have it working on a regular html page. Just starting to try to port it over to xcart.

This is a basic example of how it can work...

Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <script type="text/javascript" src="/shadowbox/adapter/shadowbox-base.js"></script> <script type="text/javascript" src="/shadowbox/shadowbox.js"></script> <script type="text/javascript"> Shadowbox.loadSkin('classic', '/shadowbox/skin'); Shadowbox.loadLanguage('en', '/shadowbox/lang'); Shadowbox.loadPlayer(['flv', 'html', 'iframe', 'img', 'qt', 'swf', 'wmp'], '/shadowbox/player'); window.onload = function(){ Shadowbox.init(); Shadowbox.open({ player: 'html', title: 'Hello World!', content: '<div style="border: 2px solid #FF07CE; width: 188; height: 188; padding: 4px; background-color: #FBDFFF; "><p>Hello World!</p></div>', height: 200, width: 200 }); }; </script> <meta http-equiv="content-type" content="text/html;charset=ISO-8859-1"> <title>Hello World!</title> </head> <body bgcolor="#ffffff"> <p>Hello World</p> </body> </html>

So, for xcart, I took the script and made it an include, and wrapped it in a {literal}. But no joy yet.

I think I'm close to figuring it out though, and I will report back.
__________________
xcart 4.5.4 gold+ w/x-payments 1.0.6; xcart gold 4.4.4
Reply With Quote