
February 6th, 2005, 09:32 PM
|
|
|
|
Join Date: Apr 2007
Posts: 9
Time spent in forums: < 1 sec
Reputation Power: 0
|
|
|
Bugs in a script used for making popup window
I want a popup window for the boldchat site. The code is as follows which contains bug.
<script language="javascript"><!--
document.write('<?php echo '<a href="javascript:popupWindow(\''http://chat.boldchat.com/chat/visitor.jsp?cdid=961164290">' . tep_image(DIR_WS_IMAGES . 'headbabe12.jpg', 'LiveSales'), SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, 'hspace="5" vspace="5"') . '<br>' . TEXT_CLICK_TO_ENLARGE . '</a>';?>');
//--></script>
<?php
new infoBox($info_box_contents);
?>
Don't worry about the user-defined functions. Its working fine. The error i get is :
Parse error: parse error, unexpected '?' in c:webrlgiftvoucherincludesboxeslive_salespersons.p hp on line 28.
Line no 28 is:
document.write('<?php echo '<a href="javascript:popupWindow(\''http://chat.boldchat.com/chat/visitor.jsp?cdid=961164290">' .
Any help would be greatly appreciated.
|