<HEAD></HEAD>
<SCRIPT>
function doFunction(){<br">

跨框架下拉菜单

80酷酷网    80kuku.com

  菜单|下拉

<HTML XMLNS:myMenu>
<?IMPORT namespace="myMenu" implementation="study/menu1.htc" />
<HEAD></HEAD>
<SCRIPT>
function doFunction(){
    // Retrieve the result from the event object created in menu.htc.
    var x = event.result;
    // Switch the result value.
    switch(x){
        case "picimage":
            document.all.oFrame.src = "http://www.smallrain.net/javascript.asp?type=图形图像";
            break;
        case "mouseevent":
            document.all.oFrame.src = "http://www.smallrain.net/javascript.asp?type=鼠标事件";
            break;
        case "timedate":
            document.all.oFrame.src = "http://www.smallrain.net/javascript.asp?type=时间日期";
            break;
        case "photoshopplug":
            document.all.oFrame.src = "http://www.smallrain.net/plug.asp?type=插件";
            break;
        case "webmake":
            document.all.oFrame.src = "http://www.smallrain.net/study.asp?type=网页制作";
            break;
        case "webProcedure":
            document.all.oFrame.src = "http://www.smallrain.net/study.asp?type=网络编程";
            break;
        case "aspcode":
            document.all.oFrame.src = "http://www.smallrain.net/download.asp?type=ASP源码下载";
            break;
        case "flashcode":
            document.all.oFrame.src = "http://www.smallrain.net/download.asp?type=FLASH源码下载";
            break;
        default:
            // Do nothing.
            break;
    }
}
</SCRIPT>
<BODY font-size:70%">

<div background:#ffffff; border:1px outset #cccccc; width:500px;"><myMenu:menu id="javascript" onsubmenu_click="doFunction()" >网页特效<myMenu:menu id="picimage">图形图像</myMenu:menu> <myMenu:menu id="mouseevent">鼠标事件</myMenu:menu> <myMenu:menu id="timedate">时间日期</myMenu:menu></myMenu:menu><myMenu:menu id="plug" onsubmenu_click="doFunction()">插件下载<myMenu:menu id="photoshopplug">Photoshop插件</myMenu:menu></myMenu:menu><myMenu:menu id="study" onsubmenu_click="doFunction()">网络学院 <myMenu:menu id="webmake">网页制作</myMenu:menu> <myMenu:menu id="webProcedure">网络编程</myMenu:menu></myMenu:menu><myMenu:menu id="download" onsubmenu_click="doFunction()">下载基地 <myMenu:menu id="aspcode">ASP源码下载</myMenu:menu> <myMenu:menu id="flashcode">FLASH源码下载 </myMenu:menu></myMenu:menu>
<Iframe id="oFrame" src="http://www.smallrain.net" width="100%" height="350px" 1px solid black;"></iframe></div>



分享到
  • 微信分享
  • 新浪微博
  • QQ好友
  • QQ空间
点击: