Menu made of css div: a main display layer, other lists are hidden, use js function to set the display and hiding of the list. Two functions are used respectively, and the effect of the function implementation is the same. One is the example in the "Css Dhtml Essence" book, and the other is the function I found. The first function is eval(layerRef layerName endLayerRef styleRef ".visibility = 'visible'") ; eval(layerRef layerName endLayerRef styleRef ".visibility = 'hidden'"); > {
var i,p,v,obj,args=MM_showHideLayers.arguments;
{
v =args[i 2]; ')?'hidden':v;
> var p,i,x;
if(!d)
d=document; > {
d=parent.frames[n.substring(p 1)].document; if(!(x=d[ n])&&d.all)
s[i] [n];
for(i=0;!x&&d.layers&&i
x=document.getElementById(n);
return x;
}
//第二个函数
onMouseOut="javascript:hiddenMenu('shui')" >
onmouseout="javascript:MM_showHideLayers('hua','','hide')">
onmouseout="javascript:MM_showHideLayers('che','','hide')">