Ho una pagina con 2 frame...Uno lo usero come contenitore per il menu l'altro per i contenuti...
Il codice del menu è:
Lo preso da html.itcodice:STYLE TYPE="text/css"> /* Make the menu float to the left of the text. */ #menu {float:left; width:50pt; background:lightgrey; border:2px white outset; cursor:default} /* Hide the pop-up menus initially. */ #menu .popup {position:absolute; display:none; background:lightgrey; border:2px white outset; width:135pt; margin:2pt} #menu P {margin-top:0pt; margin-bottom:0pt} .over {color:navy; font-weight:bold} </STYLE> <SCRIPT LANGUAGE="JavaScript"> var curPop = null; function clearCurrent() { // Hide the pop-up menu that is currently displayed. if (null != curPop) curPop.style.display = ""; curPop = null; } function popup() { var el = event.srcElement; clearCurrent(); // Display a new menu option. if (("P" == el.tagName) && ("menu" == el.parentElement.id)) { // Position and display the pop-up menu. var elpop = document.all[el.sourceIndex + 1]; elpop.style.pixelLeft = document.all.menu.offsetLeft + document.all.menu.offsetWidth - 7; elpop.style.pixelTop = el.offsetTop + document.all.menu.offsetTop; elpop.style.display = "block"; curPop = elpop; } event.cancelBubble = true; } function highlight() { // Highlight the menu options. if (null != event.fromElement) if ((event.fromElement.tagName == "P") && (event.fromElement.parentElement.id == "menu")) event.fromElement.className = ""; if (null != event.toElement) if ((event.toElement.tagName == "P") && (event.toElement.parentElement.id == "menu")) event.toElement.className = "over"; } </SCRIPT> </HEAD> <BODY bgcolor="white" ONCLICK="clearCurrent()"> <DIV ID="menu" ONCLICK="popup()" ONMOUSEOVER="highlight()" ONMOUSEOUT="highlight()"> Matematica <DIV CLASS="popup"> le 4 operazioni Numeri negativi JavaScript Sfondi Controlli </DIV> Italiano <DIV CLASS="popup"> Analisi grammaticale Analisi logica Analisi del periodo </DIV> </body>![]()
Cmq...
Se lo metto in sta pagina con i frame vanno sotto la pagina contenuti...
Come risolvere?
PEr favore veloci...Sono a scuola e tra poco mi finisce l'ora...

Rispondi quotando
