<! DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 transitional//en" "Http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd ">
<meta http-equiv= "Content-type" content= "text/html; charset=gb2312 "/>
<title>javascript Show Hidden Tab object code </title>
<script language= "JavaScript" >
function Changetab_objdiv (event_obj,div_obj,now_i,total_num,the_class,other_class)
{
for (Var i=1;i<=total_num;i++)
{
if (document.getElementById (event_obj+i))
{
var The_eobj=document.getelementbyid (event_obj+i);
if (now_i==i)
{
The_eobj.classname=the_class;
}
Else
{
if (Other_class)
{
The_eobj.classname=other_class;
}
Else
{
The_eobj.classname= "";
}
}
}
if (document.getElementById (div_obj+i))
{
var Item_obj=document.getelementbyid (div_obj+i);
if (now_i==i)
{
Item_obj.style.display= "";
}
Else
{
Item_obj.style.display= "None";
}
}
}
}
</script>
<style type= "Text/css Tutorial" >
. ab{
Background: #00FFFF;
}
. bc{
Background: #990000;
}
</style>
<body>
<a href= "#" onmouseover= "Javascript:changetab_objdiv (' abc ', ' abc ', 1,2, ' ab ', ' BC ');" > Come on, I'll try </a>
<div id= "abc" >
</div>
</body>