I am trying to add a Javascript in array but it gives me an error unless
certain characters are commented which makes sense, but then the Javascript
won't run. Any ideas here is what I am trying:

<?
    $info_box_contents = array();
    $info_box_contents[] = array('align' => 'left',
                                 'text'  => '
<A HREF="test.html" onmouseover="document.images[0].src='test1'.jpg; return
true;">
<IMG SRC="images/reviews.jpg" BORDER=0></A>');

of course the ' characters are a problem etc. so for an example I tried:

<?
    $info_box_contents = array();
    $info_box_contents[] = array('align' => 'left',
                                 'text'  => '
<A HREF="test.html" onmouseover="document.images[0].src=\'test1\'.jpg;
return true;">
<IMG SRC="images/reviews.jpg" BORDER=0></A>');

Any suggestions on how to get this to work?




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to