Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Hot to paste Javascript in Information box


Guest

Recommended Posts

Posted

Hello forum

 

I need to paste java script somewhere inside information Box

 

How can I manage this I get error when I try to paste it inside ?> (outside ?> is OK but the appearance on frontpage is not nice)

 

 

 

 

<!-- information //-->

<tr>

<td><?php

$info_box_contents = array();

$info_box_contents[] = array('text' => Currencies);

 

new infoBoxHeading($info_box_contents, false, false);

 

$info_box_contents = array();

$info_box_contents[] = array(); <-------------------------------------Somewhere here!

new infoBox($info_box_contents);

?>

 

I want to paste

 

 

 

 

<!-- start Boom.ge currency bar code-->

<script language="javascript" src="http://currency.boom.ge/moduls/currency_bar.php?id=7&w=173&h=91">

</script>

  • 3 years later...
Posted

can't say it will work for your script, buy try:

 

$info_box_contents = array();

$info_box_contents[] = array('text' => '<script language="JavaScript"></script>');

 

just be careful with the use of ' (apostrophes) in the script

Archived

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

×
×
  • Create New...