This is a discussion on Popup window upon clicking a hyperlinked banner within the osCommerce 2.2 Modification Help forums, part of the osCommerce 2.2 Forums category; Hi, I have made a new info box, and placed a bannner in it. I want it to be hyerlinked ...
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
|
#1
| ||||
| ||||
| 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 |
|
#2
| |||
| |||
| look at how the popup image for a large image is done...should be similar coding |
|
#3
| ||||
| ||||
| Thanks for replying. I have done that. But it still doesn't work. I have to use this javascript code: Quote:
Quote:
Someone talked about quotes within quotes are not allowed. I tried this but doesn't work. Code is: Quote:
Any suggestions? Regards, |rf@N |
|
#4
| ||||
| ||||
| I had contacted a person who had done the popup window feature at her site. And she was clearly not willing to cooperate. It is really pathetic when people of the open soure don't share knowledge after getting help from the community themselves. It should not have taken this much time to fix this problem. All I needed to do was to add an extrabacks slash before a few single quotes. I repeat in order to embed the bold chat coding in to the single quotes of an associative array of php, you need to change a few ' to \' . My coding is given below: Quote:
www.roseluggage.com Regards, Irfan |
| Thread Tools | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Anyway to get a popup window from FCK editor?? | Redeye_Joe | osCMax v2 Features Discussion | 1 | 03-07-2006 01:00 PM |
| how to make popup window scrolling? | technoboy | osCMax v2 Customization/Mods | 1 | 02-08-2006 12:26 PM |
| Scrollable popup window | fuzzyphil | osCMax v1.7 General Mods Discussion | 0 | 10-10-2005 03:39 AM |
| Help changing text in popup window titlebar | groggory | osCMax v1.7 Discussion | 4 | 12-08-2004 10:08 AM |
| popup window too small | jlee | osCommerce 2.2 Modification Help | 1 | 02-18-2003 01:24 PM |