Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

javascript popup


seanpaul

Recommended Posts

Hi Guys,

 

What I'm looking for is the ability to have javascript popup window links from text contained in catalog/includes/languages/english/default.php

 

The popups would open standard html pages.

 

What I cant work out is where the javascript that would normaly sit in the header on a html document should go.

 

Any suggestions would help greatly.

 

Cheers

Link to comment
Share on other sites

Have a look at catalog/advanced search.php.... see how it is done for the help on the advanced search page... be sure to look at it all

Link to comment
Share on other sites

You will find there are other files referenced from advanced search.php - such as popup_search_help.php - use this as a general template to make your own files to reference - there would be additions to your language file also. This part of the javascript controls the look, size and position of your window:

 

function popupWindow(url) {

 window.open(url,'popupWindow','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resiza
ble=yes,copyhistory=no,width=450,height=280,screenX=150,screenY=150,top=150,left=
150')

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...