This sounds very similar to what I am trying to do, I am currently trying to add a popup window to the product info page linked by a image. This is the code I have in a .js file in /includes/modules/pages/product_info/jsscript_360view.js as stated in an other thread.
PHP Code:
var newwindow = ''
function popitup(url) {
if (newwindow.location && !newwindow.closed) {
newwindow.location.href = url;
newwindow.focus(); }
else {
newwindow=window.open(url,'htmlname','width=404,height=316,resizable=1');}
}
function tidy() {
if (newwindow.location && !newwindow.closed) {
newwindow.close(); }
}
I would like to add different images for each product so I am downloading the file link in EasyPopulate.
I just cannot work out how to call the javascript in the html code. The code that should be used in the body of the html is:
PHP Code:
<A HREF="javascript:popitup('test.jpg')"><IMG SRC="testi.jpg" WIDTH="160" BORDER="0" HEIGHT="120" HSPACE="10" VSPACE="5" ALT="Test" TITLE="Test" ALIGN=left></A>
This may help, and any advice would be good !
Bookmarks