I'd try:
Code:
.
.
.
print "fadeimages[$i] = [\"" . $current_galleryurl ."main.php?g2_view=core.DownloadItem&g2_itemId=$g_id\",";
print "\"javascript:void(window.open('" . $current_galleryurl ."main.php?g2_view=core%3AShowItem&g2_itemId=$g_source','','width=300,height=250'))\", \"\"];\n";
.
.
.
and, if that gives you a parse error, then try it this way:
Code:
.
.
.
print "fadeimages[$i] = [\"" . $current_galleryurl ."main.php?g2_view=core.DownloadItem&g2_itemId=$g_id\",";
print "\"javascript:void(window.open(\'" . $current_galleryurl ."main.php?g2_view=core%3AShowItem&g2_itemId=$g_source\',\'\',\'width=300,height=250\'))\", \"\"];\n";
.
.
.
Notes: This relies upon the code you furnished in your post being error free. To avoid confusing '' and ", copy and paste my code rather than trying to read it with your eyes and type it.
Bookmarks