Can anyone help me please by telling me the code to change my input button to a link i have tried many different ways but cant get it thanks!
<head>
<script>
function openMe(){
var me = window.open("my_frame.html","me","width=250,height=350");
me.resizeTo(350, 530);
me.moveTo(100, 100);
}
</script>
</head>
<body>
<script LANGUAGE="JavaScript">
function previewPic(sel) {
document.previewpic.src = "" + sel.options[sel.selectedIndex].value;
}
function showPic(sel) {
images = new Array();
images[1] = "javascriptpenMe()";
images[2] = "pic2.jpg";
images[3] = "iceberg.jpg";
images[4] = "ocean.jpg";
images[5] = "olympus.jpg";
images[6] = "temple.jpg";
window.location.href = images[sel.selectedIndex+1];
}
</script>
<center>
<form name=picform>
<select name=selbox size=5 onChange="previewPic(this)">
<option value=http://www.webdeveloper.com/forum/archive/index.php/"pic1.jpg">Axe
<option value="pic1.jpg">Castle
<option value="iceberg-small.jpg">Iceberg
<option value="ocean-small.jpg">Ocean
<option value="olympus-small.jpg">Olympus
<option value="temple-small.jpg">Temple
</select>
<p>
<img name="previewpic" src="pic1.jpg" width=150 height=113 border=1>
<p>
<input type=button value="More Info" onclick="showPic(this.form.selbox)" name="Button">
</form>
</center>
</body>
<head>
<script>
function openMe(){
var me = window.open("my_frame.html","me","width=250,height=350");
me.resizeTo(350, 530);
me.moveTo(100, 100);
}
</script>
</head>
<body>
<script LANGUAGE="JavaScript">
function previewPic(sel) {
document.previewpic.src = "" + sel.options[sel.selectedIndex].value;
}
function showPic(sel) {
images = new Array();
images[1] = "javascriptpenMe()";
images[2] = "pic2.jpg";
images[3] = "iceberg.jpg";
images[4] = "ocean.jpg";
images[5] = "olympus.jpg";
images[6] = "temple.jpg";
window.location.href = images[sel.selectedIndex+1];
}
</script>
<center>
<form name=picform>
<select name=selbox size=5 onChange="previewPic(this)">
<option value=http://www.webdeveloper.com/forum/archive/index.php/"pic1.jpg">Axe
<option value="pic1.jpg">Castle
<option value="iceberg-small.jpg">Iceberg
<option value="ocean-small.jpg">Ocean
<option value="olympus-small.jpg">Olympus
<option value="temple-small.jpg">Temple
</select>
<p>
<img name="previewpic" src="pic1.jpg" width=150 height=113 border=1>
<p>
<input type=button value="More Info" onclick="showPic(this.form.selbox)" name="Button">
</form>
</center>
</body>