<script type="text/javascript">
</script> <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"> </script>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>自定义Alt</title>
</head>
<body>
<span alt="web开发^O^">corange.cn</span>
<span alt="web开发^O^" altbg="red" altcolor=yellow altborder="yellow">corange.cn</span>
<span alt="web开发^O^" altbg="#F7F7F7" altcolor="#999999" altborder="#CCCCCC">corange.cn</span>
<span alt="web开发^O^" altbg="green" altcolor=yellow altborder="darkgreen">corange.cn</span>
<span alt="web开发^O^" altbg="#000000" altcolor="#FFFFFF" altborder="#000000">corange.cn</span>
<div style="display:none;border:1px solid #000000;background-color:#FFFFCC;font-size:12px;position:absolute;padding:2;" id=altlayer></div>
<script>
document.body.οnmοusemοve=quickalt;
document.body.οnmοuseοver=getalt;
document.body.οnmοuseοut=restorealt;
var tempalt='';
function getalt()
{
if(event.srcElement.alt && (event.srcElement.alt!='' || (event.srcElement.alt=='' && tempalt!='')))
{
altlayer.style.left=event.x;
altlayer.style.top=event.y+20;
altlayer.style.display='';
tempalt=event.srcElement.alt;
tempbg=event.srcElement.altbg;
tempcolor=event.srcElement.altcolor;
tempborder=event.srcElement.altborder;
event.srcElement.alt='';
altlayer.innerText=tempalt;
if (typeof(tempbg)!="undefined"){altlayer.style.background=tempbg}else{altlayer.style.background="#FFFFCC"}
if (typeof(tempcolor)!="undefined"){altlayer.style.color=tempcolor}else{altlayer.style.color=tempcolor="#000000"}
if (typeof(tempborder)!="undefined"){altlayer.style.border='1px solid '+tempborder;}else{altlayer.style.border='1px solid #000000';}
}
}
function quickalt()
{
if(altlayer.style.display=='')
{
altlayer.style.left=event.x;
altlayer.style.top=event.y+10;
}
}
function restorealt()
{
event.srcElement.alt=tempalt;
tempalt='';
altlayer.style.display='none';
}
</script>
</body>
</html>