View Single Post
  #12  
Old 08-21-2011, 04:36 AM
 
JoeS JoeS is offline
 

Senior Member
  
Join Date: Dec 2008
Posts: 124
 

Default Re: Adding Login Popup to Descriptions

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.
__________________
xcart gold plus 4.6.5
responsive customized skin
responsive menus
cdseo + on sale + smart predictive search
Reply With Quote