Javascript Code
<!-- Script by hscripts.com -->
<script language=javascript>
var wid = "250"; //Fix the width of Popup Window
var hei = "250"; //Fix the width of Popup Window
function img_popup(form) {
selectionname = form.imagename.options[form.imagename.selectedIndex].text;
selection = form.imagename.options[form.imagename.selectedIndex].value;
Popup = window.open("", "PREVIEW", "toolbar=0,resize=0,status=0,menubar=0,scrollbars=0,width="+wid+",height="+hei);
Popup.document.open();
Popup.document.write("<html><title>Preview</title>");
Popup.document.write("<body BGCOLOR=FFFFFF>");
Popup.document.write("<form><center>" + selectionname + "<hr>");
Popup.document.write("<img hspace=0 vspace=0 " + "src='" + selection + "'>");
Popup.document.write("<hr><input type='button' value='Close' " + "onClick='window.close()'></form>");
Popup.document.write("</center></body></html>");
Popup.document.close();
}
</script>
<!-- Script by hscripts.com -->
HTML Code
<!-- Script by hscripts.com -->
<form>
<select NAME="imagename" onChange="img_popup(this.form)">
<option value="http://www.hscripts.com/freeimages/icons/money/money-bag/money-bag-clipart10.gif" SELECTED>Image 1
<option value="http://www.hscripts.com/freeimages/icons/money/coin/coin-clipart-picture2.gif">Image 2
<option value="http://www.hscripts.com/freeimages/icons/money/piggy-penny-box/coin-bank-clipart7.gif">Image 3
</select>
</form>
<!-- Script by hscripts.com -->
Release Date - 01-12-2007
Get free version without ©copyright link for just
5
|