X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   Creating a POPUP link in Detail Description (https://forum.x-cart.com/showthread.php?t=19322)

webmonster 01-17-2006 12:41 PM

Creating a POPUP link in Detail Description
 
Is there a "Smarty" way of creating a popup link from a text link in the detail description?

balinor 01-17-2006 12:59 PM

Just code it into the description...html is allowed :)

webmonster 01-18-2006 03:06 PM

HTML is allowed but Javascript isn't

Where is a safe place for this part of the script to function?

Code:

<SCRIPT TYPE="text/javascript">
<!--
function popup(mylink, windowname)
{
if (! window.focus)return true;
var href;
if (typeof(mylink) == 'string')
  href=mylink;
else
  href=mylink.href;
window.open(href, windowname, 'width=400,height=200,scrollbars=yes');
return false;
}
//-->
</SCRIPT>


This can be placed in the detail description
Code:

my popup

balinor 01-18-2006 03:10 PM

Put the script in the <head> (in home.tpl) and surround it with literal tags:

{literal}

script

{/literal}

shan 01-18-2006 04:12 PM

have a look at http://smarty.php.net


All times are GMT -8. The time now is 07:02 AM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.