Cross-Frame Pull-down menu

Source: Internet
Author: User
Menu | dropdown

? 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= graphic image";
Break
Case "MouseEvent":
DOCUMENT.ALL.OFRAME.SRC = "Http://www.smallrain.net/javascript.asp?type= mouse event";
Break
Case "Timedate":
DOCUMENT.ALL.OFRAME.SRC = "http://www.smallrain.net/javascript.asp?type= time Date";
Break
Case "Photoshopplug":
DOCUMENT.ALL.OFRAME.SRC = "Http://www.smallrain.net/plug.asp?type=PhotoShop plugin";
Break
Case "Webmake":
DOCUMENT.ALL.OFRAME.SRC = "Http://www.smallrain.net/study.asp?type= Web page production";
Break
Case "Webprocedure":
DOCUMENT.ALL.OFRAME.SRC = "http://www.smallrain.net/study.asp?type= network Programming";
Break
Case "ASPCode":
DOCUMENT.ALL.OFRAME.SRC = "Http://www.smallrain.net/download.asp?type=ASP source download";
Break
Case "Flashcode":
DOCUMENT.ALL.OFRAME.SRC = "Http://www.smallrain.net/download.asp?type=FLASH source download";
Break
Default
Doing nothing.
Break
}
}
</SCRIPT>
<body style= "Font-family:verdana; font-size:70% ">

<div style= "padding:10px; Background: #ffffff; border:1px outset #cccccc; width:500px; " ><mymenu:menu id= "javascript" onsubmenu_click= "Dofunction ()" > Web effects <mymenu:menu id= "Picimage" > Graphic images </myMenu:menu> <mymenu:menu id= "MouseEvent" > Mouse events </myMenu:menu> <mymenu:menu id= "Timedate" > Time Date </mymenu:menu></mymenu:menu><mymenu:menu id= "plug" onsubmenu_click= "Dofunction ()" > Plugin Download < Mymenu:menu id= "Photoshopplug" >photoshop plug-in </mymenu:menu></mymenu:menu><mymenu:menu id= "study" Onsubmenu_click= "Dofunction ()" > Network college <mymenu:menu id= "webmake" > Web page production </myMenu:menu> <mymenu:menu ID = "Webprocedure" > Network programming </mymenu:menu></mymenu:menu><mymenu:menu id= "Download" onsubmenu_click= " Dofunction () "> Download base <mymenu:menu id=" ASPCode ">asp source download </myMenu:menu> <mymenu:menu id=" Flashcode " >flash Source Download </myMenu:menu></myMenu:menu>
<iframe id= "Oframe" src= "http://www.smallrain.net" width= "100%" height= "350px" style= "border:1px solid black;" ></iframe></div>



Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.