跨框架下拉菜单

 1<html xmlns:mymenu="">
 2<?IMPORT namespace="myMenu" implementation="study/menu1.htc" />
 3<head></head>
 4<script>   
 5function doFunction(){   
 6// Retrieve the result from the event object created in menu.htc.   
 7var x = event.result;   
 8// Switch the result value.   
 9switch(x){   
10case "picimage":   
11document.all.oFrame.src = "http://www.smallrain.net/javascript.asp?type=图形图像";   
12break;   
13case "mouseevent":   
14document.all.oFrame.src = "http://www.smallrain.net/javascript.asp?type=鼠标事件";   
15break;   
16case "timedate":   
17document.all.oFrame.src = "http://www.smallrain.net/javascript.asp?type=时间日期";   
18break;   
19case "photoshopplug":   
20document.all.oFrame.src = "http://www.smallrain.net/plug.asp?type=PhotoShop插件";   
21break;   
22case "webmake":   
23document.all.oFrame.src = "http://www.smallrain.net/study.asp?type=网页制作";   
24break;   
25case "webProcedure":   
26document.all.oFrame.src = "http://www.smallrain.net/study.asp?type=网络编程";   
27break;   
28case "aspcode":   
29document.all.oFrame.src = "http://www.smallrain.net/download.asp?type=ASP源码下载";   
30break;   
31case "flashcode":   
32document.all.oFrame.src = "http://www.smallrain.net/download.asp?type=FLASH源码下载";   
33break;   
34default:   
35// Do nothing.   
36break;   
37}   
38}   
39</script>
40<body style="font-family:verdana; font-size:70%">
41<div style="padding:10px; 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>
42<iframe height="350px" id="oFrame" src="http://www.smallrain.net" style="border: 1px solid black;" width="100%"></iframe></div></body></html>
Published At
Categories with 网页设计
Tagged with
comments powered by Disqus