[Typo3-UG Dutch] site check

Timur Özcan tozcan at fnl.nl
Thu Apr 28 12:24:41 CEST 2005


Hallo joost
 
Ik heb ook een soort gelijk menu. Omdat IE het niet is er een hack javascript beschikbaar voor IE. 
Je moet dan in je template naar die script verwijzen.
 
Dit heb ik in mijn template staan:
 
<!-- Multimenu js needed for it to work start-->
<script type="text/javascript" >
 function init(){
     activateMenu('nav');
  activateMenu('nav3');
     activateMenu('vertnav');
 }
</script>
   
<script src="/fileadmin/examples/multimenu.js" type="text/javascripts"></script>
<!-- Multimenu js end -->
 
De naam "nav" heb ik dan staan in de td waar het menu moet komen.
 
En in de multimenu.js staat het volgende:
 
activateMenu = function(nav) {
    /* currentStyle restricts the Javascript to IE only */
 if (document.all && document.getElementById(nav).currentStyle) {  
  var navroot = document.getElementById(nav);
        /* Get all the list items within the menu */
        var lis=navroot.getElementsByTagName("LI");  
  for (i=0; i<lis.length; i++) {
            /* If the LI has another menu level */
            if(lis[i].lastChild.tagName=="UL"){
                /* assign the function to the LI */
              lis[i].onmouseover=function() {  
                   /* display the inner menu */
                   this.lastChild.style.display="block";
         }
    lis[i].onmouseout=function() {                       
                    this.lastChild.style.display="none";
    }
            }
  }
 }
}
/* I do this differently on the test page to fix a problem float container problem in IE5 Mac*/
/*Uncomment the function below*/
 
window.onload= function(){
   
    activateMenu('nav'); //you only need one of these for each menu
    activateMenu('vertnav');  
}
 
Door deze script moet jou menu als het goed is werken in IE. 
 
Succes, gr Timur

-----Oorspronkelijk bericht-----
Van: typo3-ug-dutch-bounces at lists.netfielders.de [mailto:typo3-ug-dutch-bounces at lists.netfielders.de]Namens Joost Kahmann
Verzonden: donderdag 28 april 2005 12:04
Aan: TYPO3 Usergroup Dutch
Onderwerp: [Typo3-UG Dutch] site check



Hallo allemaal,

Ik heb een site gebouwd met een horizontaal uitklapmenu.
Het principe werkt in Safari voor MacOSX.

Nu hoor ik net dat in Explorer het menu niet werkt.
Ik heb hier geen windowsmachine.
Kan iemand even voor mij kijken op
  http://www.journalism.fcj.hvu.nl/index.php?id=62
?

Alvast bedankt.

Groet, Joost



-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/ms-tnef
Size: 7312 bytes
Desc: not available
Url : http://lists.netfielders.de/pipermail/typo3-ug-dutch/attachments/20050428/f485c4c6/attachment.bin 


More information about the TYPO3-UG-dutch mailing list