javascript embedded within PHP array

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View
Hi, can anyone suggest how to fix this problem:

src='media/images/".$spage."_1.gif'></a>","rest of array..."),

As you can see I have a PHP array and inside that I want to set a
javascript popup but the syntax for javascript will not allow it. When
you roll over this in the browser, the link will only show:


It peters out on the (

so I think - i can use ascii characters (&#40;) to complete the
javascript function - but this isnt working either...

Soo - is there another event handler that is better to use? Can anybody
suggest any workaround at all?

I would appreciate your time. Thanks!


Re: javascript embedded within PHP array

ahh - i found the \ escape - this is the fix:

src='media/images/".$spage."_1.gif'></a>","rest of array..."),

For other newbs like me :)

Re: javascript embedded within PHP array wrote:
Quoted text here. Click to load it

If you copy/pasted that code, the it peters out on the quotes. Use an
editor that support php highlighting.


Site Timeline