[Typo3-UG Dutch] site check

Arco arco at appeltaart.mine.nu
Thu Apr 28 14:00:04 CEST 2005


Voor IE is het mogelijk om een behaviour op te nemen in de stylesheet.
Dan werken alle andere browsers zonder javascript.

*	Peterned - http://www.xs4all.nl/~peterned/
 *	(c) 2003 - Peter Nederlof
 *
 *	howto: body { behavior:url("csshover.htc"); }
 *	---------------------------------------------

Arco



=?iso-8859-1?Q?Timur_=D6zcan?= wrote ..
> 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



More information about the TYPO3-UG-dutch mailing list