I have a pop up script that is supposed to pop up the big image from the random image display script. I am using the following script located below <head> under <script>
function pop(){
EzPopUpWindow = window.open("http://www.mywebsite.com/pop.php?img=$first[$a]","Image1","left=100,top=100,screenX=100,screenY=100,width=400,height=400,");
}
--NOTICE I am trying to pass variable ($first[$a]) to the above script--
Then at my url I have this:
print "<a href='javascript:pop()'><img border='0' src='pics/$first[$a]'></a><br><br>";
Unfortunantly once the page has been loaded there is no way I can see of getting the variable to the script at the top of my page. Any ideas?