Hello,

I have this php file with this code:

PHP Code:
function java_scr_preview ()
{
    echo 
'<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script>';
    echo 
'<script type="text/javascript">';
    echo 
'var pass_this_variable =  echo $foto';
    echo 
'</script>';
    echo 
'<script type="text/javascript" src="ddimgtooltip.js">';
    echo 
'<SCRIPT LANGUAGE="JavaScript">';
    echo 
'function Preview(url)';
    echo 
'{';
    echo 
"window.open(url,'_blank','location=no,scrollbars=yes,toolbar=no,width=500,height=700')";
    echo 
'}';
    echo 
'</script>';

and a .js file where I want to get the $foto value

Code:
tooltips[2]=["http://www.website.net/preview/images/pass_this_variable"]
I cant get it to work...

when hovering the link I get broken image

Somebody knows what is wrong?

Thanks in advance