Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

making the pop-up window script into a function


trogette

Recommended Posts

Posted

Can anyone walk me through adding javascript to a function? I want to be able to add the pop-up image javascript stuff to an infobox-contents array, and I figured it might streamline things if the pop-up image code was written as a function anyway. Does that make sense? Is it even possible?

 

I have a vague idea that what I need to do is set the javascript bits as php variables and then put the bits together but since the javascript is already littered with php I'm having trouble seeing what I need to put where!

 

Thanks all :) Will upload the results to contributions ASAP!

Posted

Thanks, I'll have a look :) It's just that the pop-up thing has so many special characters I'm not sure how to break it up!

Archived

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

×
×
  • Create New...