Quantcast
Channel: Newbie - Help with an interactive menu
Viewing all articles
Browse latest Browse all 3

Newbie - Help with an interactive menu

$
0
0

I was trying to code a menu that would disappear onmouseover. Here is the code:

<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="WebForm1.aspx.vb" Inherits="APERSA.WebForm1" Async="true" %><!DOCTYPE html><html xmlns="http://www.w3.org/1999/xhtml"><head runat="server"><title></title><script src="Scripts.js" type="text/javascript"></script><script type="text/javascript">
        function Menu(num) {
            var i = num;
            document.getElementbyId("Div" & "" &i& "").style.visibility = "hidden";
        }</script></head><body><form id="form1" runat="server"><div><div runat="server" id="Cabecalho" style="position:inherit; top:0px; left:0px; padding-left: 15px;" >  <img runat="server" id="ImgCabecalho" src="~/Imagens/Tio_02.png" /> <div runat="server" id="Contactos" style="position:absolute; left:650px; top:63px; height:30px; width:170px"></div> <div runat="server" id="TxTContactos" align="center" style="position:absolute; left:650px; top:65px; height:28px; width:170px">Contactos</div> <div runat="server" id="Menus" style="position:absolute; top:120px; left:100px; width:690px; height:33px"><div runat="server" id="Div1" class="TxtMenu" align="center" style="position:absolute; top:7px; width:90px; height:26px" onmouseover="Menu(1)">Serviços</div><div runat="server" id="Div2" class="TxtMenu" align="center" style="position:absolute; left:90px; top:7px; width:90px; height:26px" onmouseover="Menu(2)">Sobre Nós</div></div>                     </div></div></form></body></html>

What am I forgetting?

Thank you for your time


Viewing all articles
Browse latest Browse all 3

Latest Images

Trending Articles





Latest Images