Programalama > JAVA SCRIPT

Etiketler: popup, resim

Ort. 5
Puan ver:
<SCRIPT language="JavaScript">
function display_image(form) {
selectionname = form.imagename.options[form.imagename.selectedIndex].text;
selection = form.imagename.options[form.imagename.selectedIndex].value;
PreView = window.open("", "Resim", "toolbar=0,location=0,directories=0,status=0,menubar=yes,scrollbars=yes,resizable=yes,copyhistory=0,width=400,height=420");
PreView.document.open();
PreView.document.write("<HTML><HEAD>");
PreView.document.write("<TITLE>Preview</TITLE>");
PreView.document.write("</HEAD><BODY BGCOLOR=000000 TEXT=99ccff>");//verander hiervoor de kleuren
PreView.document.write("<FORM><CENTER><B><FONT SIZE=+1>" + 
selectionname + "</FONT></B><HR>");
PreView.document.write("<IMG HSPACE=0 VSPACE=0 " +
"SRC='" + selection + "'>");
PreView.document.write("<HR><FORM><INPUT TYPE='button' VALUE='Kapat' " +
"onClick='window.close()'></FORM>");
PreView.document.write("</CENTER>");
PreView.document.write("</BODY></HTML>");
PreView.document.close();
    }
</SCRIPT>


<FORM>
<p align="center">
<select NAME="imagename" onChange="display_image(this.form)">
<!-- verander hieronder de url van de plaatjes die je wilt tonen --><center>
<option value="http://www.furkan.dostweb.com/images/t_01c.jpg" SELECTED>Resim 1 
<option value="http://www.furkan.dostweb.com/images/t_01c.jpg">Resim 2 
<option value="http://www.furkan.dostweb.com/images/t_01c.jpg">Resim 3 
<option value="http://www.furkan.dostweb.com/images/t_01c.jpg">Resim 4 
<option value="http://www.furkan.dostweb.com/images/t_01c.jpg">Resim 5
<option value="http://www.furkan.dostweb.com/images/t_01c.jpg">Resim 6
<option value="http://www.seniseven.com/modules/4nAlbum/album/album8/JBWEBRINGGLOBE.gif">Resim 7
</select>
</FORM>


Yorumlar                 Yorum Yaz
Bu hazır kod'a ilk yorumu siz yapın!
KATEGORİLER
ASP - 240
ASP.NET - 24
C# - 75
C++ - 174
CGI - 8
DELPHI - 247
FLASH - 49
HTML - 536
PASCAL - 246
PERL - 11
PHP - 160
WML - 9
XML - 2
Copyright © 2002 - 2024 Hazır Kod - Tüm Hakları Saklıdır.
Siteden yararlanırken gizlilik ilkelerini okumanızı tavsiye ederiz.
hazirkod.com bir İSOBİL projesidir.