Rank: Member
Iscritto dal : 10/1/2007 Posts: 0
|
Girando alla ricerca di un menu dinamico a tendina sono riuscito a trovarne uno bello pronto e fatto ma purtroppo si è riscontrato un problema. Io per il momento conosco esclusivamente il codice html e sicuramente il problema è una sciocchezza ma non conoscendo java sono una settimana che ci sto sbattendo la testa sopra senza risultati. Il menu funziona ma le tendine di selezione sono sempre presenti e non scompaiono o appaiono quando dovrebbero farlo. Di seguito il codice:
(:@ Page language="VB" debug="true":) (script runat="server")
Sub page_load(obj As object, e As EventArgs ) lrForum.style("visibility") = "hidden" lrAsp1.style("visibility") = "hidden" lrAsp2.style("visibility") = "hidden" lrPhp.style("visibility") = "hidden" End Sub
Sub mostra_forum(obj As object, e As EventArgs ) lrForum.style("visibility") = "visible" lrAsp1.style("visibility") = "hidden" lrAsp2.style("visibility") = "hidden" lrPhp.style("visibility") = "hidden" End Sub
Sub mostra_asp1(obj As object, e As EventArgs ) lrForum.style("visibility") = "hidden" lrAsp1.style("visibility") = "visible" lrAsp2.style("visibility") = "hidden" lrPhp.style("visibility") = "hidden" End Sub
Sub mostra_asp2(obj As object, e As EventArgs ) lrForum.style("visibility") = "hidden" lrAsp1.style("visibility") = "visible" lrAsp2.style("visibility") = "visible" lrPhp.style("visibility") = "hidden" End Sub
Sub mostra_php(obj As object, e As EventArgs ) lrForum.style("visibility") = "hidden" lrAsp1.style("visibility") = "hidden" lrAsp2.style("visibility") = "hidden" lrPhp.style("visibility") = "visible" End Sub
(/script) (html) (head) (title)Menu A tendina con vb.net(/title) (meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1") (script language="javascript1.2") function barra() { // La scritta messa tra i doppi apici, ha la funzione di nascondere il link nella barra di stato del browser quando l'utente si porta coll mouse sulla scritta interessata. window.status='Menù a tendina realizzato in VB.NET ; } (/script) (/head)
(body bgcolor="#FFFFFF" text="#000000" link="#000000" vlink="#000000" alink="#000000" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="setInterval('barra()',100);") (Form runat="Server") (div id="lrTitolo" style="position:absolute; left:0; top:0; width:300; height:20; z-index:2") (table width="300" border="0" cellspacing="0" cellpadding="0" background="tabella_off.gif") (tr) (td height="20" width="100" background="tabella_off.gif" id="tbForum" onMouseOver="tbForum.background='tabella_on.gif'" onMouseOut="tbForum.background='tabella_off.gif'") (div align="center")(b)(font size="2" face="Verdana, Arial, Helvetica, sans-serif") (asp:LinkButton id="lbForum" text="Forum" runat="server" onClick="mostra_forum" /) (/font)(/b)(/div) (/td) (td height="20" width="100" background="tabella_off.gif" id="tbFreeasp" onMouseOver="tbFreeasp.background='tabella_on.gif'" onMouseOut="tbFreeasp.background='tabella_off.gif'") (div align="center")(b)(font size="2" face="Verdana, Arial, Helvetica, sans-serif") (asp:LinkButton id="lbAsp" text="freeAsp" runat="server" onClick="mostra_asp1" /) (/font)(/b)(/div) (/td) (td height="20" width="100" background="tabella_off.gif" id="tbFreephp" onMouseOver="tbFreephp.background='tabella_on.gif'" onMouseOut="tbFreephp.background='tabella_off.gif'") (div align="center")(b)(font size="2" face="Verdana, Arial, Helvetica, sans-serif") (asp:linkbutton id="lbPhp" text="freePhp" runat="server" onClick="mostra_php" /) (/font)(/b) (/td) (/tr) (/table) (/div)
(div id="lrForum" style="position:absolute; left:20; top:20; width:250; height:80; z-index:2" runat="server") (table width="250" border="0" cellspacing="0" cellpadding="0" background="menu_up.gif") (tr) (td width="250" height="20" background="menu_up.gif" id="frHp" onMouseOver="frHp.background='menu_dw.gif'" onMouseOut="frHp.background='menu_up.gif'") (div align="center")(font size="2" face="Verdana, Arial, Helvetica, sans-serif" color="#000000")(b) (a href="http://forum.html.it/forum/" target="_blank")Home Page Page Forum(/a) (/b)(/font)(/div) (/td) (/tr) (tr) (td width="250" height="20" background="menu_up.gif" id="frAsp" onMouseOver="frAsp.background='menu_dw.gif'" onMouseOut="frAsp.background='menu_up.gif'") (div align="center")(font size="2" face="Verdana, Arial, Helvetica, sans-serif" color="#000000")(b) (a href="http://forum.html.it/forum/forumdisplay.php?s=andforumid=35" target="_blank")Sezione Asp(/a) (/b)(/font)(/div) (/td) (/tr) (tr) (td width="250" height="20" background="menu_up.gif" id="frPhp" onMouseOver="frPhp.background='menu_dw.gif'" onMouseOut="frPhp.background='menu_up.gif'") (div align="center")(font size="2" face="Verdana, Arial, Helvetica, sans-serif" color="#000000")(b) (a href="http://forum.html.it/forum/forumdisplay.php?s=andforumid=39" target="_blank")Sezione Php(/a) (/b)(/font)(/div) (/td) (/tr) (tr) (td width="250" height="20" background="menu_up.gif" id="frWeb" onMouseOver="frWeb.background='menu_dw.gif'" onMouseOut="frWeb.background='menu_up.gif'") (div align="center")(font size="2" face="Verdana, Arial, Helvetica, sans-serif" color="#000000")(b) (a href="http://forum.html.it/forum/forumdisplay.php?s=&forumid=27" target="_blank")Sezione WebGrafica(/a) (/b)(/font)(/div) (/td) (/tr) (/table) (/div)
(div id="lrAsp1" style="position:absolute; left:120; top:20; width:250; height:60; z-index:2" runat="server") (table width="250" border="0" cellspacing="0" cellpadding="0" background="menu_up.gif") (tr) (td width="250" height="20" background="menu_up.gif" id="aspG" onMouseOver="aspG.background='menu_dw.gif'" onMouseOut="aspG.background='menu_up.gif'") (div align="center")(b)(font size="2" face="Verdana, Arial, Helvetica, sans-serif") (a href="http://freeasp.html.it/guide/index.asp" target="_blank")Sezione Guide(/a) (/font)(/b)(/div) (/td) (/tr) (tr) (td width="250" height="20" background="menu_up.gif" background="menu_up.gif" id="aspA" onMouseOver="aspA.background='menu_dw.gif'" onMouseOut="aspA.background='menu_up.gif'") (div align="center")(b)(font size="2" face="Verdana, Arial, Helvetica, sans-serif") (asp:LinkButton id="lbAsp2" text="Sezione Articoli" onClick="mostra_asp2" runat="server" /)(/font)(/b)(/div) (/td) (/tr) (tr) (td width="250" height="20" background="menu_up.gif" background="menu_up.gif" id="aspS" onMouseOver="aspS.background='menu_dw.gif'" onMouseOut="aspS.background='menu_up.gif'") (div align="center")(b)(font size="2" face="Verdana, Arial, Helvetica, sans-serif") (a href="http://freeasp.html.it/script/index.asp" target="_blank")Sezione Script(/a) (/font)(/b)(/div) (/td) (/tr) (/table) (/div)
(div id="lrPhp" style="position:absolute; left:220; top:20; width:250; height:60; z-index:2; visibility: visible" runat="server") (table width="250" border="0" cellspacing="0" cellpadding="0" background="menu_up.gif") (tr) (td height="20" background="menu_up.gif" background="menu_up.gif" id="phpG" onMouseOver="phpG.background='menu_dw.gif'" onMouseOut="phpG.background='menu_up.gif'") (div align="center")(font face="Verdana, Arial, Helvetica, sans-serif" size="2")(b) (a href="http://freephp.html.it/guide/index.asp" target="_blank")Sezione Giude(/a) (/b)(/font)(/div) (/td) (/tr) (tr) (td height="20" background="menu_up.gif" background="menu_up.gif" id="phpS" onMouseOver="phpS.background='menu_dw.gif'" onMouseOut="phpS.background='menu_up.gif'") (div align="center")(font face="Verdana, Arial, Helvetica, sans-serif" size="2")(b) (a href="http://freephp.html.it/script/index.asp" target="_blank")Sezione Script(/a) (/b)(/font)(/div) (/td) (/tr) (tr) (td height="20" background="menu_up.gif" background="menu_up.gif" id="phpP" onMouseOver="phpP.background='menu_dw.gif'" onMouseOut="phpP.background='menu_up.gif'") (div align="center")(font face="Verdana, Arial, Helvetica, sans-serif" size="2")(b) (a href="http://freephp.html.it/programmatori/index.asp" target="_blank")Sezione Programmatori Italiani(/a) (/b)(/font)(/div) (/td) (/tr) (/table) (/div)
(div id="lrAsp2" style="position:absolute; left:370; top:40; width:250; height:80 ; z-index:2" runat="server") (table width="250" border="0" cellspacing="0" cellpadding="0" background="menu_up.gif") (tr) (td height="20" background="menu_up.gif" id="asp2A" onMouseOver="asp2A.background='menu_dw.gif'" onMouseOut="asp2A.background='menu_up.gif'") (div align="center")(b)(font size="2" face="Verdana, Arial, Helvetica, sans-serif") (a href="http://freeasp.html.it/articoli/list_articoli.asp?idcat=1" target="_blank")Asp(/a) (/font)(/b)(/div) (/td) (/tr) (tr) (td height="20" background="menu_up.gif" id="asp2N" onMouseOver="asp2N.background='menu_dw.gif'" onMouseOut="asp2N.background='menu_up.gif'") (div align="center")(b)(font size="2" face="Verdana, Arial, Helvetica, sans-serif") (a href="http://freeasp.html.it/articoli/list_articoli.asp?idcat=5" target="_blank")Asp.Net(/a) (/font)(/b)(/div) (/td) (/tr) (tr) (td height="20" background="menu_up.gif" id="asp2M" onMouseOver="asp2M.background='menu_dw.gif'" onMouseOut="asp2M.background='menu_up.gif'") (div align="center")(b)(font size="2" face="Verdana, Arial, Helvetica, sans-serif") (a href="http://freeasp.html.it/articoli/list_articoli.asp?idcat=4" target="_blank")MS SQL Server(/a) (/font)(/b)(/div) (/td) (/tr) (tr) (td height="20" background="menu_up.gif" id="asp2S" onMouseOver="asp2S.background='menu_dw.gif'" onMouseOut="asp2S.background='menu_up.gif'") (div align="center")(b)(font size="2" face="Verdana, Arial, Helvetica, sans-serif") (a href="http://freeasp.html.it/articoli/list_articoli.asp?idcat=2" target="_blank")Server NT/2000(/a) (/font)(/b)(/div) (/td) (/tr) (/table) (/div)
(/form)
(/body) (/html)
|
Rank: AiutAmico
Iscritto dal : 4/7/2002 Posts: 1,731
|
<font color=red>Ciao scusa..non so se saprò aiutarti, ma ci provo volentieri. Puoi indicarmi il link della pagina da cui hai prelevato il codice?</font id=red>
|