code..

dehdmtw <[email protected]> 10 Sep 2003 13:11:42 -0000
Newsgroups gmane.comp.web.oscommerce.contributions
Message-ID <d928ef09f49bab9937d1bfb7b2394682@osCommerce-Forums>
This message was sent from: Contributions
http://forums.oscommerce.com/viewtopic.php?p=227355#227355
----------------------------------------------------------------

[b]maxidvd[/b]

i took the code
[code]<?php 
   if (isset($cPath) && tep_not_null($cPath)) { 
    if ( $cPath == '1_6' )  {  // Change 1_6 To Your Categories cPath Number 
?> 
    <SCRIPT LANGUAGE="JavaScript"> 
    window.open("http://www.maxidvd.com.au","height=200,width=200,left=80,top=80,scrollbars=yes"); // New Window to New Site 
    onClick=window.location=('<?php echo tep_href_link(FILENAME_DEFAULT);?>') // Redirect background to Homepage (With SID Intact) 
    </SCRIPT> 
<?php 
  } 
} 
?>[/code]

put it into my catalog/index.php file. nothing showed up anywhere. 
my question is, from looking at that code, that is just going to open the window on it's own correct? if so, i'd like to have this code working when clicking a link. i tried doing what this post said:
[url]http://forums.oscommerce.com/viewtopic.php?t=38047[/url]

but whenever i did that i got a parse error on the page holding the ahref code, error listed the ahref line containing the error. i'm on snapshot 9-5-2003 if that helps.