Ver Mensaje Individual
  #15 (permalink)  
Antiguo 26/10/2010, 19:09
harryems
 
Fecha de Ingreso: septiembre-2010
Mensajes: 113
Antigüedad: 14 años, 2 meses
Puntos: 4
Respuesta: jquery fg.menu dentro de un div

Me hubiera gustado mas subir un paquete, pero no tengo permisos, y el firewall del trabajo no me deja abrir alguna pagina para compartir archivos :S:S:S
espero sea claro y que las bibliotecas nos ea un problema :D

este es el index :
Código PHP:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<
html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<
head>
<
title>Filament Group Lab</title>
    <
meta http-equiv="content-type" content="text/html; charset=utf-8" />

    <
script type="text/javascript" src="jquery-1.4.2.min.js"></script>
    <script type="text/javascript" src="fg.menu.js"></script>
    <script type="text/javascript" src="jquery.layout.js"></script>

    <link type="text/css" href="fg.menu.css" media="screen" rel="stylesheet" />
    <link type="text/css" href="JqueryLayoyt.css" media="screen" rel="stylesheet" />
    <link type="text/css" href="theme/ui.all.css" media="screen" rel="stylesheet" />

    <!-- styles for this example page only -->
    <style type="text/css">
    body { font-size:62.5%; margin:0; padding:0; }
    </style>

    <!-- style exceptions for IE 6 -->
    <!--[if IE 6]>
    <style type="text/css">
        .fg-menu-ipod .fg-menu li { width: 95%; }
        .fg-menu-ipod .ui-widget-content { border:0; }
    </style>
    <![endif]-->

    <script type="text/javascript">
    $(function(){
        $('.fg-button').hover(
            function(){ $(this).removeClass('ui-state-default').addClass('ui-state-focus'); },
            function(){ $(this).removeClass('ui-state-focus').addClass('ui-state-default'); }
        );

        $.post('menuContent.html', function(data){ // grab content from another page
            $('#flyout1').menu({
                        content: data,
                        backLink: false});
        });
         $("body").layout({
            defaults: {
               fxName:                       "slide"
            ,  fxSpeed:                      "slow"
            ,  north__fxName:                "none"
            ,  south__fxName:                "none"
            ,  south__spacing_closed:        8
            ,  initClosed:                   false
            },

              west:{
                  minSize:230
                  ,togglerLength_closed:  "90%"
                  ,maskIframesOnResize: true
                ,slideTrigger_close : "mouseout"
                ,hideTogglerOnSlide : true
              },
              north:{
                  minSize:30
                  , maskIframesOnResize: true
              }
        }
    );
    });
    </script>
</head>
       <body>
             <div class="ui-layout-west">
                    <a tabindex="0" href="menuContent.html" class="fg-button fg-button-icon-right ui-widget ui-state-default ui-corner-all" id="flyout1"><span class="ui-icon ui-icon-triangle-1-s"></span>ipod-style menu w/ breadcrumb</a>
             </div>
             <div class="ui-layout-center">
             </div>
       </body>
</html> 
el menuContent.html:
Código PHP:
<ul>
    <
li><a href="#">Breaking News</a>
        <
ul>
            <
li><a href="#">Entertainment</a></li>
            <
li><a href="#">Politics</a></li>
            <
li><a href="#">A&amp;E</a></li>
            <
li><a href="#">Sports</a>
                <
ul>
                    <
li><a href="#">Baseball</a></li>
                    <
li><a href="#">Basketball</a></li>
                    <
li><a href="#">A really long label would wrap nicely as you can see</a></li>
                    <
li><a href="#">Swimming</a>
                        <
ul>
                            <
li><a href="#">High School</a></li>
                            <
li><a href="#">College</a></li>
                            <
li><a href="#">Professional</a>
                                <
ul>
                                    <
li><a href="#">Mens Swimming</a>
                                        <
ul>
                                            <
li><a href="#">News</a></li>
                                            <
li><a href="#">Events</a></li>
                                            <
li><a href="#">Awards</a></li>
                                            <
li><a href="#">Schedule</a></li>
                                            <
li><a href="#">Team Members</a></li>
                                            <
li><a href="#">Fan Site</a></li>
                                        </
ul>
                                    </
li>
                                    <
li><a href="#">Womens Swimming</a>
                                        <
ul>
                                            <
li><a href="#">News</a></li>
                                            <
li><a href="#">Events</a></li>
                                            <
li><a href="#">Awards</a></li>
                                            <
li><a href="#">Schedule</a></li>
                                            <
li><a href="#">Team Members</a></li>
                                            <
li><a href="#">Fan Site</a></li>
                                        </
ul>
                                    </
li>
                                </
ul>
                            </
li>
                            <
li><a href="#">Adult Recreational</a></li>
                            <
li><a href="#">Youth Recreational</a></li>
                            <
li><a href="#">Senior Recreational</a></li>
                        </
ul>
                    </
li>
                    <
li><a href="#">Tennis</a></li>
                    <
li><a href="#">Ice Skating</a></li>
                    <
li><a href="#">Javascript Programming</a></li>
                    <
li><a href="#">Running</a></li>
                    <
li><a href="#">Walking</a></li>
                </
ul>
            </
li>
            <
li><a href="#">Local</a></li>
            <
li><a href="#">Health</a></li>
        </
ul>
    </
li>
    <
li><a href="#">Entertainment</a>
    <
ul>
        <
li><a href="#">Celebrity news</a></li>
        <
li><a href="#">Gossip</a></li>
        <
li><a href="#">Movies</a></li>
        <
li><a href="#">Music</a>
        <
ul>
            <
li><a href="#">Alternative</a></li>
            <
li><a href="#">Country</a></li>
            <
li><a href="#">Dance</a></li>
            <
li><a href="#">Electronica</a></li>
            <
li><a href="#">Metal</a></li>
            <
li><a href="#">Pop</a></li>
            <
li><a href="#">Rock</a>
                <
ul>
                    <
li><a href="#">Bands</a>
                        <
ul>
                            <
li><a href="#">Dokken</a></li>
                        </
ul>
                    </
li>
                    <
li><a href="#">Fan Clubs</a></li>
                    <
li><a href="#">Songs</a></li>
                </
ul>
            </
li>
        </
ul>
        </
li>
        <
li><a href="#">Slide shows</a></li>
        <
li><a href="#">Red carpet</a></li>
    </
ul>
    </
li>
    <
li><a href="#">Finance</a>
    <
ul>
        <
li><a href="#">Personal</a>
        <
ul>
            <
li><a href="#">Loans</a></li>
            <
li><a href="#">Savings</a></li>
            <
li><a href="#">Mortgage</a></li>
            <
li><a href="#">Debt</a></li>
        </
ul>
        </
li>
        <
li><a href="#">Business</a></li>
    </
ul>
    </
li>
    <
li><a href="#">Food Cooking</a>
    <
ul>
        <
li><a href="#">Breakfast</a></li>
        <
li><a href="#">Lunch</a></li>
        <
li><a href="#">Dinner</a></li>
        <
li><a href="#">Dessert</a>
            <
ul>
                <
li><a href="#">Dump Cake</a></li>
                <
li><a href="#">Doritos</a></li>
                <
li><a href="#">Both please.</a></li>
            </
ul>
        </
li>
    </
ul>
    </
li>
    <
li><a href="#">Lifestyle</a></li>
    <
li><a href="#">News</a></li>
    <
li><a href="#">Politics</a></li>
    <
li><a href="#">Sports</a>
        <
ul>
            <
li><a href="#">Baseball</a></li>
            <
li><a href="#">Basketball</a></li>
            <
li><a href="#">Swimming</a>
            <
ul>
                <
li><a href="#">High School</a></li>
                <
li><a href="#">College</a></li>
                <
li><a href="#">Professional</a>
                <
ul>
                    <
li><a href="#">Mens Swimming</a>
                    <
ul>
                            <
li><a href="#">News</a></li>
                            <
li><a href="#">Events</a></li>
                            <
li><a href="#">Awards</a></li>
                            <
li><a href="#">Schedule</a></li>
                            <
li><a href="#">Team Members</a></li>
                            <
li><a href="#">Fan Site</a></li>
                        </
ul>
                    </
li>
                    <
li><a href="#">Womens Swimming</a>
                    <
ul>
                        <
li><a href="#">News</a></li>
                        <
li><a href="#">Events</a></li>
                        <
li><a href="#">Awards</a></li>
                        <
li><a href="#">Schedule</a></li>
                        <
li><a href="#">Team Members</a></li>
                        <
li><a href="#">Fan Site</a></li>
                    </
ul>
                    </
li>
                </
ul>
                </
li>
                <
li><a href="#">Adult Recreational</a></li>
                <
li><a href="#">Youth Recreational</a></li>
                <
li><a href="#">Senior Recreational</a></li>
            </
ul>
            </
li>
            <
li><a href="#">Tennis</a></li>
            <
li><a href="#">Ice Skating</a></li>
            <
li><a href="#">Javascript Programming</a></li>
            <
li><a href="#">Running</a></li>
            <
li><a href="#">Walking</a></li>
        </
ul>
        </
li>
</
ul
el JqueryLayoyt.css
Código PHP:

    
.ui-layout-pane {  
        
border1px solid #BBB; 
    

    .
ui-layout-pane-center /* IFRAME pane */ 
        
padding0;
        
margin:  0;
    } 
    .
ui-layout-pane-west /* west pane */ 
        
padding0 10px
        
background-color#EEE !important;
        
overflowauto;
    } 
    .
ui-layout-pane-north /* north pane */ 
        
padding0 10px
        
backgroundurl("../images/north_base.png"repeat-x scroll 0 50#80ADE5;
        
overflowauto;
    }
    .
ui-layout-resizer /* all 'resizer-bars' */ 
        
background#DDD; 
        

    .
ui-layout-resizer-open:hover /* mouse-over */
            
background#9D9; 
        
}

    .
ui-layout-toggler /* all 'toggler-buttons' */ 
        
background#AAA; 
        

        .
ui-layout-toggler-closed /* closed toggler-button */ 
            
background#CCC; 
            
border-bottom1px solid #BBB; 
        

        .
ui-layout-toggler .content /* toggler-text */ 
            
font14px bold VerdanaVerdanaArialHelveticasans-serif;
        }
        .
ui-layout-toggler:hover /* mouse-over */ 
            
background#DCA; 
            

            .
ui-layout-toggler:hover .content /* mouse-over */ 
                
color#009; 
                
}

    
/* class to make the 'iframe mask' visible */
    
.ui-layout-mask {
        
opacity0.2 !important;
        
filter:     alpha(opacity=20) !important;
        
background-color#666 !important;
    
}

span.button-close-west            backgroundurl(../image/go-lt-off.gifno-repeat center; }
span.button-close-west:hover    backgroundurl(../image/go-lt-on.gif)  no-repeat center; }
span.button-close-east            backgroundurl(../image/go-rt-off.gifno-repeat center; }
span.button-close-east:hover    backgroundurl(../image/go-rt-on.gif)  no-repeat center; }