<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<style type="text/css">
body {
overflow:auto;
}#showpic {
width:400px;
height:400px;
background-color:#CCCCCC;
}
#showpic img {
width:400px;
height:400px;
}
</style>
<title>无标题文档</title><script src="" type="text/javascript" language="javascript">
function $(ider){return document.getElementById(ider);}

var obj1;

obj1 = document.createElement("div");
//obj1.id

function newwind(){
window.open("http://www.baidu.com/","","width=300px,height=400px");
}

function showpic(whichpic){
var iex = navigator.userAgent;
if(iex.indexOf("MSIE")>0){
var source = whichpic.getAttribute("href");
var obj2 = $("showpic").document.getElementsByTagName("img"); 
//alert(obj2+"全体请注意,美女来了饿!");
//alert(document.body.childNodes.length);
obj2[0].setAttribute("src",source); 

var titleva = whichpic.getAttribute("title");
var obj3 = $("values");
obj3.childNodes[0].nodeValue = titleva;  
//alert(obj3.childNodes[0].nodeValue);
}
if(iex.indexOf("Firefox")>0){
window.open("http://www.baidu.com","");
alert(navigator.userAgent);
}
}
</script></head><body onmouseup = "movice();"><ul>
<li><a href="506b2d1bf95a4b0542a9ad44.jpg" title="first img!" target="_blank" onclick="showpic(this);return false; ">第一个图片</a></li>
    <li><a href="c0172c947a25e007d1135ebc.jpg" title="second img!" target="_blank" onclick="showpic(this);return false; ">第一个图片</a></li>
    <li><a href="qwe.jpg" target="_blank" title="third img!" onclick="showpic(this);return false; ">第一个图片</a></li>
    <li><a href="sdf.jpg" target="_blank" title="forth img!" onclick="showpic(this);return false; ">第一个图片</a></li></ul>
<div id="values">choice element value!</div>
<div id="showpic"><img src="sdf.jpg"/></div>
</body>
</html>这段代码在IE中可以运行,但在火狐中无法运行,请高手帮帮,我是个小菜鸟,谢谢大家了!