日期:2014-05-17  浏览次数:20838 次

div+css js按钮特效 鼠标移上去显示子菜单
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<TITLE>按钮</TITLE>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=gb2312">
<LINK href="style/skin2.css" type=text/css rel=stylesheet>

<SCRIPT type=text/javascript>             
var waitting = 1;             
var secondLeft = waitting;             
var timer;                             
var sourceObj;             
var number;             
function getObject(objectId)//获取id的函数              
    {             
        if(document.getElementById && document.getElementById(objectId)) {             
        // W3C DOM             
        return document.getElementById(objectId);             
        } else if (document.all && document.all(objectId)) {             
        // MSIE 4 DOM             
        return document.all(objectId);             
        } else if (document.layers && document.layers[objectId]) {             
        // NN 4 DOM.. note: this won't find nested layers             
        return document.layers[objectId];             
        } else {             
        return false;             
        }             
    }             
function SetTimer()//主导航时间延迟的函数             
    {             
        for(j=1; j <10; j++){             
            if (j == number){