Team:Wash U/Temp

From 2009.igem.org

(Difference between revisions)
 
(36 intermediate revisions not shown)
Line 1: Line 1:
-
<html >
+
{{WashUback}}
 +
<html>
 +
<head>
 +
<title>Advanced Menu Bar</title>
 +
<!-- Advanced Menu Bar Generated by SearchBliss.com - Copyright 2002 - All Rights Reserved -->
 +
<script language="JavaScript">
 +
<!--
 +
function MM_preloadImages() { //v3.0
 +
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
 +
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
 +
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
 +
}
-
   <!-- For the hover styles of the Menu control to -->
+
function MM_findObj(n, d) { //v3.0
-
   <!-- work correctly, you must include this head   -->
+
   var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
-
   <!-- element.                                     -->
+
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
-
   <head runat="server">
+
   if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
-
     <title>Menu StaticHoverStyle Example</title>
+
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document); return x;
 +
}
 +
 
 +
function MM_nbGroup(event, grpName) { //v3.0
 +
   var i,img,nbArr,args=MM_nbGroup.arguments;
 +
   if (event == "init" && args.length > 2) {
 +
    if ((img = MM_findObj(args[2])) != null && !img.MM_init) {
 +
      img.MM_init = true; img.MM_up = args[3]; img.MM_dn = img.src;
 +
      if ((nbArr = document[grpName]) == null) nbArr = document[grpName] = new Array();
 +
      nbArr[nbArr.length] = img;
 +
      for (i=4; i < args.length-1; i+=2) if ((img = MM_findObj(args[i])) != null) {
 +
        if (!img.MM_up) img.MM_up = img.src;
 +
        img.src = img.MM_dn = args[i+1];
 +
        nbArr[nbArr.length] = img;
 +
    } }
 +
  } else if (event == "over") {
 +
    document.MM_nbOver = nbArr = new Array();
 +
    for (i=1; i < args.length-1; i+=3) if ((img = MM_findObj(args[i])) != null) {
 +
      if (!img.MM_up) img.MM_up = img.src;
 +
      img.src = (img.MM_dn && args[i+2]) ? args[i+2] : args[i+1];
 +
      nbArr[nbArr.length] = img;
 +
    }
 +
   } else if (event == "out" ) {
 +
    for (i=0; i < document.MM_nbOver.length; i++) {
 +
      img = document.MM_nbOver[i]; img.src = (img.MM_dn) ? img.MM_dn : img.MM_up; }
 +
  } else if (event == "down") {
 +
     if ((nbArr = document[grpName]) != null)
 +
      for (i=0; i < nbArr.length; i++) { img=nbArr[i]; img.src = img.MM_up; img.MM_dn = 0; }
 +
    document[grpName] = nbArr = new Array();
 +
    for (i=2; i < args.length-1; i+=2) if ((img = MM_findObj(args[i])) != null) {
 +
      if (!img.MM_up) img.MM_up = img.src;
 +
      img.src = img.MM_dn = args[i+1];
 +
      nbArr[nbArr.length] = img;
 +
  } }
 +
}
 +
//-->
 +
</script>
</head>
</head>
-
 
+
<body bgcolor="#FFFFFF"  LEFTMARGIN="0" RIGHTMARGIN="0" TOPMARGIN="0" BOTTOMMARGIN="0" onLoad="MM_preloadImages('down.gif','over.gif','up.gif')">
-
  <body>
+
<table border="0" cellpadding="5" cellspacing="0" bgcolor="#CCCCCC">
-
    <form id="form1" runat="server">
+
  <tr>
-
 
+
    <td><a href="https://2009.igem.org/Team:Wash_U"><img name="menu1" src="up.gif" border="0" onLoad="" width="105" height="20"></a></td>
-
      <h3>Menu StaticHoverStyle Example</h3>
+
    <td><a href="http://"><img name="menu2" src="up.gif" border="0" onLoad="" width="105" height="20"></a></td>
-
 
+
    <td><a href="http://"><img name="menu3" src="up.gif" border="0" onLoad="" width="105" height="20"></a></td>
-
      <asp:menu id="NavigationMenu"
+
    <td><a href="http://"><img name="menu4" src="up.gif" border="0" onLoad="" width="105" height="20"></a></td>
-
        staticdisplaylevels="2"
+
    <td><a href="http://"><img name="menu5" src="up.gif" border="0" onLoad="" width="105" height="20"></a></td>
-
        staticsubmenuindent="10"  
+
    <td><a href="http://"><img name="menu6" src="up.gif" border="0" onLoad="" width="105" height="20"></a></td>
-
        orientation="Vertical"
+
    <td><a href="http://"><img name="menu7" src="up.gif" border="0" onLoad="" width="105" height="20"></a></td>
-
        target="_blank"
+
  </tr>
-
        runat="server">
+
</table>
-
 
+
<div id="Layer1" style="position:absolute; width:102px; height:17px; z-index:1; left: 6px; top: 7px" visibility: visible">  
-
        <statichoverstyle backcolor="LightSkyBlue"
+
  <div align="center"><a href="https://2009.igem.org/Team:Wash_U"  onClick="MM_nbGroup('down','group1','menu1','down.gif',1)" onMouseOver="MM_nbGroup('over','menu1','over.gif','up.gif',1)" onMouseOut="MM_nbGroup('out')"><font face="Arial" style="color:black;text-decoration:none" size="2">Home</font></a></div>
-
          forecolor="Black"/>
+
</div>
-
 
+
<div id="Layer2" style="position:absolute; width:102px; height:17px; z-index:1; left: 122px; top: 7px; visibility: visible">  
-
        <items>
+
  <div align="center"><a href="http://" onClick="MM_nbGroup('down','group1','menu2','down.gif',1)" onMouseOver="MM_nbGroup('over','menu2','over.gif','up.gif',1)" onMouseOut="MM_nbGroup('out')"><font face="Arial" style="color:black;text-decoration:none" size="2"></font></a></div>
-
          <asp:menuitem navigateurl="Home.aspx"  
+
</div>
-
            text="Home"
+
<div id="Layer3" style="position:absolute; width:102px; height:17px; z-index:1; left: 237px; top: 7px; visibility: visible">  
-
            tooltip="Home">
+
  <div align="center"><a href="http://" onClick="MM_nbGroup('down','group1','menu3','down.gif',1)" onMouseOver="MM_nbGroup('over','menu3','over.gif','up.gif',1)" onMouseOut="MM_nbGroup('out')"><font face="Arial" style="color:black;text-decoration:none" size="2"></font></a></div>
-
            <asp:menuitem navigateurl="Music.aspx"
+
</div>
-
              text="Music"
+
<div id="Layer4" style="position:absolute; width:102px; height:17px; z-index:1; left: 352px; top: 7px; visibility: visible">  
-
              tooltip="Music">
+
  <div align="center"><a href="http://" onClick="MM_nbGroup('down','group1','menu4','down.gif',1)" onMouseOver="MM_nbGroup('over','menu4','over.gif','up.gif',1)" onMouseOut="MM_nbGroup('out')"><font face="Arial" style="color:black;text-decoration:none" size="2"></font></a></div>
-
              <asp:menuitem navigateurl="Classical.aspx"  
+
</div>
-
                text="Classical"
+
<div id="Layer5" style="position:absolute; width:102px; height:17px; z-index:1; left: 467px; top: 7px; visibility: visible">
-
                tooltip="Classical"/>
+
  <div align="center"><a href="http://" onClick="MM_nbGroup('down','group1','menu5','down.gif',1)" onMouseOver="MM_nbGroup('over','menu5','over.gif','up.gif',1)" onMouseOut="MM_nbGroup('out')"><font face="Arial" style="color:black;text-decoration:none" size="2"></font></a></div>
-
              <asp:menuitem navigateurl="Rock.aspx"
+
</div>
-
                text="Rock"
+
<div id="Layer6" style="position:absolute; width:102px; height:17px; z-index:1; left: 582px; top: 7px; visibility: visible">  
-
                tooltip="Rock"/>
+
  <div align="center"><a href="http://" onClick="MM_nbGroup('down','group1','menu6','down.gif',1)" onMouseOver="MM_nbGroup('over','menu6','over.gif','up.gif',1)" onMouseOut="MM_nbGroup('out')"><font face="Arial" style="color:black;text-decoration:none" size="2"></font></a></div>
-
              <asp:menuitem navigateurl="Jazz.aspx"
+
</div>
-
                text="Jazz"
+
<div id="Layer7" style="position:absolute; width:102px; height:17px; z-index:1; left: 696px; top: 7px; visibility: visible">
-
                tooltip="Jazz"/>
+
  <div align="center"><a href="http://" onClick="MM_nbGroup('down','group1','menu7','down.gif',1)" onMouseOver="MM_nbGroup('over','menu7','over.gif','up.gif',1)" onMouseOut="MM_nbGroup('out')"><font face="Arial" style="color:black;text-decoration:none" size="2"></font></a></div>
-
            </asp:menuitem>
+
</div>
-
            <asp:menuitem navigateurl="Movies.aspx"
+
</body>
-
              text="Movies"
+
-
              tooltip="Movies">
+
-
              <asp:menuitem navigateurl="Action.aspx"
+
-
                text="Action"
+
-
                tooltip="Action"/>
+
-
              <asp:menuitem navigateurl="Drama.aspx"
+
-
                text="Drama"
+
-
                tooltip="Drama"/>
+
-
              <asp:menuitem navigateurl="Musical.aspx"
+
-
                text="Musical"
+
-
                tooltip="Musical"/>
+
-
            </asp:menuitem>
+
-
          </asp:menuitem>
+
-
        </items>
+
-
 
+
-
      </asp:menu>
+
-
 
+
-
    </form>
+
-
  </body>
+
</html>
</html>
 +
{{WashUbottom}}

Latest revision as of 20:43, 18 June 2009

Advanced Menu Bar