61,111
社区成员
发帖
与我相关
我的任务
分享
<script>
window.onload=function(){
var button=document.getElementsByName("imageField1")[0];
if(button.disabled=="true") button.src="D.png"
}
function pngclick(){
obj.src="C.png"
location.href="http://www.baidu.com"
}
function imgfocus(e){
var obj=e.srcElement||e.target;
obj.src="B.png"
}
function imgout(e){
var obj=e.srcElement||e.target;
obj.src="A.png"
}
</script>
<input name="imageField1" type="image" src="A.png" onclick="pngclick()" onmouseover='imgfocus(event)' onmouseout="imgout(event)">
<!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=gb2312" />
<title>无标题文档</title>
<style type="text/css">
</style></head>
<body>
<script>
window.onload=function(){
var button=document.getElementsByName("imageField1")[0];
if(button.disabled=="true") button.src="DEST_LAYOUT_D.PNG"
}
function pngclick(e){
var obj=e.srcElement||e.target;
obj.src="DEST_LAYOUT_C.PNG"
location.href="http://www.baidu.com"
}
function imgfocus(e){
var obj=e.srcElement||e.target;
obj.src="DEST_LAYOUT_B.PNG"
}
function imgout(e){
var obj=e.srcElement||e.target;
obj.src="DEST_LAYOUT_A.PNG"
}
</script>
<input name="imageField1" type="image" src="DEST_LAYOUT_A.PNG" onmousedown='pngclick(event)'
onmouseover='imgfocus(event)' onmouseout="imgout(event)">
</body>
</html>
<!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=gb2312" />
<title>无标题文档</title>
<style type="text/css">
</style></head>
<body>
<script>
window.onload=function(){
var button=document.getElementsByName("imageField1")[0];
if(button.disabled=="true") button.src="DEST_LAYOUT_D.PNG"
}
function pngclick(){
obj.src="DEST_LAYOUT_C.PNG"
location.href="http://www.baidu.com"
}
function imgfocus(e){
var obj=e.srcElement||e.target;
obj.src="DEST_LAYOUT_B.PNG"
}
function imgout(e){
var obj=e.srcElement||e.target;
obj.src="DEST_LAYOUT_A.PNG"
}
</script>
<input name="imageField1" type="image" src="DEST_LAYOUT_A.PNG" onmousedown='pngclick(event)'
onmouseover='imgfocus(event)' onmouseout="imgout(event)">
</body>
</html>