in reply to perl javascript help passing varable
$number = 7; print << "END_OF_HTML"; <html> <head> <script type="text/javascript"> /* ... a bunch of JS .. */ messages[0] = new Array('upload/$number.gif','$number.gif',"#FFFFFF"); messages[1] = new Array('upload/$number.jpg','$number.jpg',"#DDECFF"); messages[2] = new Array('/upload/test.gif','Test description','black', +'white'); /* ... a bunch of JS .. */ </script> </head> <!-- HTML body stuff --> </html> END_OF_HTML
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: perl javascript help passing varable
by winracer (Initiate) on Oct 15, 2009 at 13:36 UTC | |
by thunders (Priest) on Oct 16, 2009 at 15:17 UTC |