...

View Full Version : cross browser help



cursor_joe
03-14-2005, 11:59 PM
this works well on IE. 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?





<input type="button" value="Open Says Me!" onclick="window.open('thing. html','','width=500,height=350,resizable=no,scroll
bars=no,status=yes');">





and the popup...




<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='java script:window.close();'>Close Window</a></p>
</center></BODY>
</HTML>

cursor_joe
03-15-2005, 12:02 PM
problem solved :)

for anyone interested, the answer can be found here (http://www.webdeveloper.com/forum/showthread.php?s=&threadid=59596&perpage=15&pagenumber=1).



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum