xNeTworKx: Bild in neuem Fenster öffnen...

Beitrag lesen

Hallo,
(Script ist von Wolfgang S.)

<html>
<head>
<title>Bildscript</title>
<script language="JavaScript">

F1=false

function fenster(URL1)
{
 if(F1)
  {
  if(F1.closed==false)
  F1.close()
  }
F1=open("","","width=200,height=200,resizable=yes")
  with(F1.document)
   {
    open()
    write("<html>")
    write("<body topmargin='0' leftmargin='0' marginheight='0' marginwidth='0' >")
    write("<img src='"+URL1+"'>")
    write("</body>")
    write('<script type="text/javascript">\n')
    write("self.resizeTo(document.images[0].width,document.images[0].height)")
    write("</script>")
    write("</html>")
    close()
   }
  F1.focus()
 }
</script>
<body>
<a href="javascript:fenster('party11.jpg')">bild1</a>
<a href="javascript:fenster('party11klein.jpg')">bild2</a>
<a href="javascript:fenster(bild3.gif)">bild3</a>
</body>
</html>