Ir para conteúdo
Fórum CódigoFonte.net

Tania_br

Membros
  • Total de itens

    2
  • Registro em

  • Última visita

  1. Tania_br

    Ajuda com Menu Dropdown

    Oi amigos de fórum, estou quase louca aqui rs , estou fazendo um menu dropdown, mas queria que ele abrisse igual ao MEGA MENU ( no site da Caras tem www.caras.com.br ) só que o meu abre assim: O submenu não fica encostado na borda Esquerda... Já tentei o margin-left: -300px , por ex, mas aí quando eu passo o foco para outro item do menu (ex: Agenda) ai fica muito para a esquerda... Entenderam?? Aí vai meu css, se vocês puderem me ajudar, ficarei muuuito grata .nav ul { margin: 0; padding: 0; list-style: none; width: 150px; } .nav li { position: relative; } .nav li ul { top: 0; display: none; float:right; } .nav ul li a { display: block; text-decoration: none; color:#999999 !important; background: #fff; padding: 5px; border-bottom: 0; width:auto; height:auto; } /* Fix IE. Hide from IE Mac \*/ * html ul li { float: left; } * html ul li a { height: 1%; } /* End */ /* Fix IE. Hide from IE Mac \*/ * html ul li { float: left; height: 1%; } * html ul li a { height: 1%; } /* End */ .nav ul { position:absolute; margin: 0; padding: 0; list-style: none; width: auto; border-bottom: 1px solid #ccc; margin-top:30px; width:900px; } .nav li:hover ul { display: block; } .nav li:hover ul, li.over ul { display: block; } [/html]
  2. Tania_br

    cycle

    Boa noite colegas de fórum... Estou precisando muito da ajuda de vocês. Tenho que entregar um trabalho amanhã e o sslide de fotos criado com o cycle roda em todos navegodores, menos no Internet Explorer... Já revirei os códigos... Vou colocar eles aqui, quem sabe vocês podem me dar alguma dica... Ficarei muiito grata. // Cycle plugin config jQuery(document).ready(function($){ var baseURL = $('input.base-url').val(); var c1TransitionType = "fade"; var c1Speed = 1000; var c1Timeout = 5000; var c1Sync = 1; $.get(baseURL+"/wp-content/themes/u-design/sliders/cycle/cycle1/cycle1_params.php", function(theXML){ $('settings',theXML).each(function(i){ c1TransitionType = $(this).find("fx").text(); c1Speed = parseInt($(this).find("speed").text()); c1Timeout = parseInt($(this).find("timeout").text()); c1Sync = parseInt($(this).find("sync").text()); }); /* homepage slider params */ $('#c1-slider').cycle({ fx: c1TransitionType, speed: c1Speed, timeout: c1Timeout, sync: c1Sync, randomizeEffects: 0, prev: '#slider-prev', next: '#slider-next', pager: '#c1-nav' }); $('#c1-pauseButton').click(function() { $('#c1-slider').cycle('pause'); return false; }); $('#c1-resumeButton').click(function() { $('#c1-slider').cycle('resume', true); return false; }); }); }); <?php $root = dirname(dirname(dirname(dirname(dirname(dirname(dirname(__FILE__))))))); if ( file_exists( $root.'/wp-load.php' ) ) { require_once( $root.'/wp-load.php' ); } elseif ( file_exists( $root.'/wp-config.php' ) ) { require_once( $root.'/wp-config.php' ); } $c1_slides_array = explode( ',', $udesign_options['c1_slides_order_str'] ); $transition_types_array = array(); foreach( $c1_slides_array as $slide_row_number ) { $transition_types_array[] = $udesign_options['c1_transition_type_'.$slide_row_number]; } $transition_types_csv = implode(',', $transition_types_array); $result = array( fx => $transition_types_csv, speed => $udesign_options['c1_speed'], timeout => $udesign_options['c1_timeout'], sync => ( $udesign_options['c1_sync'] ) ? 1 : 0 ); // create a new XML document $doc = new DomDocument('1.0'); // create root node $root = $doc->createElement( 'settings' ); $root = $doc->appendChild( $root ); foreach( $result as $param_name=>$param_value ){ $child = $doc->createElement( $param_name ); $child->appendChild( $doc->createTextNode( $param_value ) ); $root->appendChild( $child ); $doc->appendChild( $root ); } // get complete xml document $xml_string = $doc->saveXML(); header('Content-Type: application/xml; charset=ISO-8859-1'); echo $xml_string; #c1-header { background-color: #FFF; display: block; float: left; position: relative; width: 100%; padding-bottom:10px; } #c1-header #header-content { padding-top: 25px; } #c1-header .c1-slideshow { position: relative; background-color: transparent; overflow: hidden; outline: none; width: 960px; height: 420px; } #c1-slider { background: transparent url(../../common-images/c1-frame.png) no-repeat scroll 50% 0; position: relative; list-style: none outside none; margin-left:auto; margin-right:auto; width:960px; height:420px; } #c1-slider li { background: none repeat scroll 0 0 transparent !important; width: 960px; overflow: hidden; margin: 0 auto; padding: 0; } .c1-slide-img-wrapper { padding: 23px; display: block; float: left; } #c1-slider .slide-desc h2 { font-size: 18px; margin-top: 5px; } #c1-slider .slide-img { float: left; margin: 0; } #c1-nav { padding: 5px 5px 0 0; margin: 0 auto; float:right; height:14px; position: relative; } #c1-nav a { background: url("../images/slider-bullet.png") no-repeat scroll 0 0 transparent; display: block; float: left; width: 14px; height: 14px; margin-right: 5px; text-indent: -9999px; border: 0 none; outline: 0 none; } #c1-nav a.activeSlide { background-position: -15px 0; } #c1-pauseButton { margin: 0 auto; height: 14px; float: right; position: relative; } #c1-pauseButton a { background: url("../images/slider-controls.png") no-repeat scroll 0 0 transparent; display: block; float: left; width: 14px; height: 14px; margin: 5px 5px 0 0; text-indent: -9999px; border: 0 none; outline: 0 none; } #c1-resumeButton { margin: 0 auto; height: 14px; float: right; position: relative; } #c1-resumeButton a { background: url("../images/slider-controls.png") no-repeat scroll 100% 0 transparent; display: block; float: left; width: 14px; height: 14px; margin: 5px 30px 0 0; text-indent: -9999px; border: 0 none; outline: 0 none; } #c1-shadow { background: transparent url(../../common-images/trans-shadow.png) no-repeat scroll 0 100%; width: 940px; height: 300px; margin: -307px auto 0; } Obrigada galera...
×
×
  • Criar Novo...