Visualizzazione dei risultati da 1 a 3 su 3
  1. #1

    Menu con CSS e FRAME ( ci va sotto) come risovlere?[Rapido]

    Ho una pagina con 2 frame...Uno lo usero come contenitore per il menu l'altro per i contenuti...

    Il codice del menu è:
    codice:
    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>
    Lo preso da html.it
    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...

  2. #2
    il menu' dropdown dentro ad un frame? mi spiace, non si puo'

  3. #3
    Ho assolutamente bisogno di un menu simile...e anche bisogno dei frame...
    Che posso fare?Hai qualche script o consiglio da darmi?

Permessi di invio

  • Non puoi inserire discussioni
  • Non puoi inserire repliche
  • Non puoi inserire allegati
  • Non puoi modificare i tuoi messaggi
  •  
Powered by vBulletin® Version 4.2.1
Copyright © 2026 vBulletin Solutions, Inc. All rights reserved.