when i use my code with mozilla the next and back buttons work, but the status bar doesnt, and with netscape i can only get the pictures to change only if i use the pulldown box and i dont press ‘next’ or ‘back’
can anyone help?
[code=php]
<input type=”button” value=”Open Says Me!” onclick=”window.open(‘thing.html’,”,’width=500,height=350,resizable=no,scrollbars=no,status=yes’);”>
and the popup…
[code=php]
<SCRIPT LANGUAGE=”JavaScript”>
<!–
function doChange(opt){
var selobj=document.getElementById(“piclist”);
var idx=selobj.selectedIndex;
if(opt==”back” && idx!=0) idx–;
if(opt==”next” && idx!=selobj.options.length-1) idx++;
document.getElementById(“mypic”).src=selobj.options[idx].value;
selobj.selectedIndex=idx;
window.status=selobj.options[idx].name;
}
//–>
</SCRIPT>
</HEAD>
<BODY BGCOLOR=”blue” link=”maroon”><center>
<p><img id=”mypic” src=”pic1.jpg”></p>
<input type=”button” value=”back” onclick=’doChange(“back”)’>
<SELECT id=”piclist” onchange=’doChange(“selected”)’>
<option value=”pic1.jpg” name=”picture 1″>Pic1</option>
<option value=”pic2.jpg” name=”picture 2″>Pic2</option>
<option value=”pic3.jpg” name=”picture 3″>Pic3</option>
<option value=”liger!.bmp” name=”Liger!!!”>Liger</option>
</SELECT>
<input type=”button” value=”next” onclick=’doChange(“next”)’>
<p><a href=’javascript:window.close();’>Close Window</a></p>
</center></BODY>
</HTML>
please give any input you can?