Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Quick syntax fix


charlatan

Recommended Posts

I am trying to add more image to certaing products and i'd like to do this with javascript pop up windows.

Nearly got it...i'm a little lost on the syntax below

 

<?php

if ( $products_name == "Para Package" ){

echo "<font color='blue'>Click here for more images >>" ?>

<script language="javascript"><!--

document.write('<?php echo '<a href="java script:popupWindow('"http://www.website.com/images/Para.jpg"') . '<br></a>'; ?>');

//--></script>

<?php } ?>

Link to comment
Share on other sites

figured it

 

if($products_name == "Para Package") {

echo("<font color='blue'>Click here for more images >> <a href='java script:popups(\"http://www.website.com/images/Para_Package_Big1.jpg\")'>1</a> <a href='java script:popups(\"http://www.website.com/images/Para_Package_Big2.jpg\")'>2</a> <a href='java script:popups(\"http://www.website.com/images/Para_Package_Big3.jpg\")'>3</a>");

}

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...