Quote:
Originally Posted by vasilis
You could insert a Javascript function that opens a popup window, something like:
Code:
var newwindow;
function popupwin(url)
{
newwindow=window.open(url,'name','height=400,width=200');
if (window.focus) {newwindow.focus()}
}
where 'url' is your image file url and then insert the anchor code anywhere in your page:
Code:
<a href="javascript: popupwin('your_domain/path_to_image/image_name');">Pop it</a>
|
Can you please advise where to insert the code, do I insert it into home.tpl? I need a popup box on the home page to make visitors aware of a new product, so they can either click on it to go to the product page, or simply close it and stay on home page, thanks for your help.