Verifica correttezza script javascript.

R

Raffaele Rea

Nei POPUP generati non sono visibili le immagini ad essi collegate.
Il mio intento è fare in modo che il visitatore possa chiudere gli
stessi cliccando su un qualsiasi punto dell'immagine.

Il codice è il seguente:
____________________________________________________________________________
<script>
var popup="";
function apriPOPUP(url,width,height)
{
if (popup!="")
{
popup.close();
}
popup=window.open(url,"popup","resizable=no,scrollbars=no,height="+height+",width="+width+",location=no,menubar=no,screenX=150,screenY=10,status=no,toolbar=no,top=0,left=0");
popup.document.write('<html>\n<head>\n<title>Immagine
Grande</title>\n</head>\n<body topmargin=0 leftmargin=0
bgcolor="#FFFFFF" text="#000000" link="#000000" vlink="#000000"
alink="#000000" onload="">\n<a href="javascript:close()"><img
src="_+url+_" border="0" alt="Clicca per chiudere"
name="pict"></a><br>\n</body>\n</html>\n');
popup.focus();
}
</script>

<tr align="center">
<td width="25%"><font face="Arial, Helvetica, sans-serif"><a
href="javascript:;apriPOPUP('images/map_high.gif',443,356)"><img
src="images/th_map_high.gif" border="1" width="100"
height="80"></a></font></td>

<td width="25%"><font face="Arial, Helvetica, sans-serif"><a
href="javascript:;apriPOPUP('images/map_low.gif',443,356)"><img
src="images/th_map_low.gif" border="1" width="100"
height="80"></a></font></td>
</tr>
____________________________________________________________________________
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,483
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top