一些js常用函数
add函数
function addLoadEvent(func){
	var load=window.onload;
	if(typeof window.onload!='function')
	{
		window.func=onload;
	}
	else
	{
		load();
		func();
	}
}
insertAfter函数
function insertAfter(newElement,tagElemnt){
	parent=tagElemnt.parentNode;
	if(tagElemnt==parent.lastChild)
	{
		parent.appendChild(newElement);
	}
	else
	{
		insertBefore(newElement,tagElemnt.nextSibling);
	}
}
                    
                
                
            
        
浙公网安备 33010602011771号