Hi,
I have made a new info box, and placed a bannner in it. I want it to be hyerlinked through a popup window linked to another site.
How can i embedd this javascript code into catalog/includes/boxes/my_box.php?
<a href="http://chat.boldchat.com/chat/visitor.jsp?cdid=961164255" target="_blank" onClick="this.newWindow = window.open('http://chat.boldchat.com/chat/visitor.jsp?cdid=961164255&url=' + document.location, 'Chat', 'toolbar=0,scrollbars=1,location=0,statusbar=0,men ubar=0,resizable=1,width=640,height=480'); this.newWindow.focus(); this.newWindow.opener = window;return false;"><img alt="Live chat by Boldchat" src="http://www.roseluggage.com/images/headbabe12.jpg" border="1"></a>
I know where to embedd it:
$info_box_contents[] = array('align' => 'center',
'text' => '<a href="http://chat.boldchat.com/chat/visitor.jsp?cdid=961164255">' . tep_image (DIR_WS_IMAGES . 'headbabe12.jpg', 'LiveSales') . '</a>' );
But I need to use the javascript coding in order to get a pop up window.
Any help would be greatly appreciated.
Regards,
|rf@N





LinkBack URL
About LinkBacks






Bookmarks