Jump to content


Corporate Sponsors


Latest News: (loading..)

- - - - -

Hot to paste Javascript in Information box


4 replies to this topic

#1 fxtrader777

  • Community Member
  • 241 posts
  • Real Name:nick

Posted 13 February 2008, 09:43

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>

#2 fxtrader777

  • Community Member
  • 241 posts
  • Real Name:nick

Posted 13 February 2008, 13:22

May be to paste in array()?

#3 fxtrader777

  • Community Member
  • 241 posts
  • Real Name:nick

Posted 14 February 2008, 06:46

any ideas?

#4 Cheepnis

  • Community Member
  • 92 posts
  • Real Name:Cheepnis
  • Gender:Male

Posted 28 March 2011, 21:25

3 years later and I would like to know if anybody has any help with hotw to do this. Thanks!

#5 pyramids

  • Community Member
  • 380 posts
  • Real Name:Jeff
  • Gender:Male
  • Location:Pennsylvania

Posted 28 March 2011, 21:34

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