function(element,value) //给元素添加className
{
if(!element.className)
{
element.className=value;
}
else{
newClassName+=element.className;
newClassName+=' ';
newClassName+=value;
element.className=newClassName;
}
}
function(element,value) //给元素添加className
{
if(!element.className)
{
element.className=value;
}
else{
newClassName+=element.className;
newClassName+=' ';
newClassName+=value;
element.className=newClassName;
}
}