Visualizzazione dei risultati da 1 a 6 su 6

Discussione: menu tendina con dw MX

  1. #1

    menu tendina con dw MX

    Ciao a tutti,
    sto facendo un sito e da due giorni mi sono impantanato. il mio problema è il seguente. Ho creato un menu a tendina (che si attivano on mouseover su una voce del menu) utilizzando i livelli di DW e voglio mettere una animazione flash al centro della pagina. A questo vorrei sapere: come faccio a far scomparire il menu a tendina una volta che il mouse esce dall'area del menu stesso (ho provato onmouseout sul menu ke deve scomparire ma non va)? Perchè il menu a tendina (in realtà un livello) non si sovrappone all'animazione flash non visualizzando quindi le voci del sottomenu?
    Spero di essere stato kiaro e di trovare un aiuto. Help me!!!

  2. #2
    Utente di HTML.it L'avatar di medorex
    Registrato dal
    Apr 2002
    Messaggi
    252

    ma

    Per il secondo problema dovrebbe essere sufficiente mettere l' animazione in flash dentro un layer e poi dargli uno z-index piu alto o piu basso delgli altri a seconda di quello che vuoi che rimanga in primo piano, altro consiglio metti il flash in wmode=trasparent che però non è riconosciuto da ns...
    Per il primo problema io dovrei vedere il codice...
    Ma quando impareremo mai ??

  3. #3
    Ho provato a mettere uno z-index + alto o + basso. In fase di progettazione fuynziona ma in anteprima non cambia nulla.
    Il file si trova a questo link:
    http://www.luigipersico.net/prova/index.htm

    vedi un pò cosa si può fare.
    Grazie

  4. #4
    a dimenticavo. il sottomenù appare solo quando si passa col mouse su 'L'allevamento' per le altre voci non mi serve.

  5. #5
    Utente di HTML.it L'avatar di medorex
    Registrato dal
    Apr 2002
    Messaggi
    252
    era sufficiente mettere il flash in trasparent e on mouseout sul livello...
    copia questo ma fai attenzione hai link
    codice:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
    
    <HTML><HEAD><TITLE>Untitled Document</TITLE><LINK href="style-principe.css" 
    type=text/css rel=stylesheet>
    <META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
    <SCRIPT language=JavaScript type=text/JavaScript>
    <!--
    function MM_reloadPage(init) {  //reloads the window if Nav4 resized
      if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
        document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
      else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
    }
    MM_reloadPage(true);
    
    function MM_findObj(n, d) { //v4.01
      var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
        d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
      if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
      for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
      if(!x && d.getElementById) x=d.getElementById(n); return x;
    }
    
    function BW_centerLayers() { //v4.1.1
    	if (document.layers || document.all || document.getElementById){
    		var winWidth, winHeight, i, horz, vert, width, height, offsetX, offsetY, negX, negY, group, x, y, args;
    		args = BW_centerLayers.arguments;
    		
    		onresize = BW_reload;
    
    				
    		winWidth = (document.all)?document.body.clientWidth:window.innerWidth;
    		winHeight = (document.all)?document.body.clientHeight:window.innerHeight;
    				
    		for (i=0; i<(args.length-9); i+=10) {
    			horz    = args[i+1];
    			vert    = args[i+2];
    			width   = parseInt(args[i+3]);
    			height  = parseInt(args[i+4]);
    			offsetX = parseInt(args[i+5]);
    			offsetY = parseInt(args[i+6]);
    			negX    = args[i+7];
    			negY    = args[i+8];
    		
    			x = ((winWidth - width)/2) + offsetX;
    			y = ((winHeight - height)/2) + offsetY;
    						
    			x = (negX=='false' && (x < 0))?0:x;
    			y = (negY=='false' && (y < 0))?0:y;
    				
    			layerObj = (document.getElementById)?document.getElementById(args[i]):MM_findObj(args[i]);
    			
    			if (layerObj!=null) {
    				layerObj = (layerObj.style)?layerObj.style:layerObj;
    				layerObj.left = (horz=="true")?x:layerObj.left;
    				layerObj.top = (vert=="true")?y:layerObj.top;
    			}
    		}
    	}
    }
    
    function BW_reload() {location.reload();}
    
    function MM_showHideLayers() { //v6.0
      var i,p,v,obj,args=MM_showHideLayers.arguments;
      for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
        if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; }
        obj.visibility=v; }
    }
    
    function tmt_findObj(n){
    	var x,t; if((n.indexOf("?"))>0&&parent.frames.length){t=n.split("?");
    	x=eval("parent.frames['"+t[1]+"'].document.getElementById('"+t[0]+"')");
    	}else{x=document.getElementById(n)}return x;
    }
    //-->
    </SCRIPT>
    
    <META content="MSHTML 6.00.2800.1170" name=GENERATOR></HEAD>
    <BODY 
    onresize="BW_centerLayers('Esterno','true','false','680','383','0','0','false','false','false')" 
    bgColor=#e4e7cb 
    onload="BW_centerLayers('Esterno','true','false','680','383','0','0','false','false','false')">
    <DIV id=Esterno 
    style="Z-INDEX: 1; LEFT: 43px; VISIBILITY: visible; OVERFLOW: auto; WIDTH: 680px; POSITION: absolute; TOP: 22px; HEIGHT: 553px" 
    onclick="MM_showHideLayers('MenuTendina','','hide')">
    <DIV id=MenuTendina 
    style="Z-INDEX: 0; LEFT: 258px; VISIBILITY: hidden; WIDTH: 134px; POSITION: absolute; TOP: 4px; HEIGHT: 91px">
    
    <TABLE cellSpacing=0 cellPadding=0 width="100%" border=0 bgcolor="#e4e7cb">
      <TBODY>
      <TR>
        <TD>
          <DIV align=center>Maschi</DIV></TD></TR>
      <TR>
        <TD>
          <DIV align=center>Femmine</DIV></TD></TR>
      <TR>
        <TD>
          <DIV align=center>Cuccioli</DIV></TD></TR>
      <TR>
        <TD>
      <DIV align=center>Gli amici</DIV></TD></TR></TBODY></TABLE></DIV>
    <TABLE borderColor=#bdbd7d cellSpacing=0 cellPadding=0 width=650 align=center 
    border=0>
      <TBODY>
      <TR>
        <TD class=bordi vAlign=top bgColor=#ffffff colSpan=2 rowSpan=2>
          <TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
            <TBODY>
            <TR>
              <TD width="100%">
                <TABLE height=20 cellSpacing=0 cellPadding=0 width="100%" 
                bgColor=#e4e7cb border=0>
                  <TBODY>
                  <TR>
                    <TD width="15%" height=19>
                      <DIV align=center>Home</DIV></TD>
                    <TD width="21%">
                      <DIV align=center><A class=menu 
                      href="http://www.luigipersico.net/prova/index.htm#">Dove 
                      siamo</A></DIV></TD>
                    <TD width="26%">
                      <DIV align=center>L'Allevamento</DIV></TD>
                    <TD width="15%">
                      <DIV align=center>Link</DIV></TD>
                    <TD width="23%">
                      <DIV align=center>Guestbook</DIV></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE>
          <TABLE height=375 cellSpacing=0 cellPadding=0 width="100%" border=0 bgcolor="#e4e7cb">
            <TBODY>
            <TR>
              <TD bgcolor="#FFFFFF">
                <OBJECT classid=clsid:D27CDB6E-AE6D-11cf-96B8-444553540000 codeBase=http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0 width=559 height=387>
                  <PARAM NAME="movie" VALUE="Untitled%20Document_file/intro.swf">
    			  <PARAM NAME="quality" VALUE="high">
    			  <param name="wmode" value="transparent">
                  <embed src="Untitled%20Document_file/intro.swf" width="559" 
                height="387" quality="high" 
                pluginspage="http://www.macromedia.com/go/getflashplayer" 
                type="application/x-shockwave-flash"></embed></OBJECT></TD>
            </TR></TBODY></TABLE></TD>
        <TD vAlign=top>[img][/img]</TD></TR>
      <TR>
        <TD class=sfondo-vert height=2></TD></TR>
      <TR>
        <TD vAlign=top width=15 height=12>[img][/img]</TD>
        <TD class=sfondo-ombra width=637></TD>
        <TD vAlign=top width=10>[img][/img]</TD></TR></TBODY></TABLE></DIV></BODY></HTML>
    :ciauz:
    Ma quando impareremo mai ??

  6. #6
    grazie mille.

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 © 2025 vBulletin Solutions, Inc. All rights reserved.