jQuery menu open after page load, should start out closed
My menu starts out open on my page, i need it to start out closed, thanks,
i pasted both the jquery and the html with php, i dont know what else to
add to this, i'm not very good with jquery
jQuery.noConflict();
var gbs = {};
gbs.ready = function($) {
// Location drop
var local_config = {
sensitivity: 2, // number = sensitivity threshold (must be 1 or higher)
interval: 80, // number = milliseconds for onMouseOver polling interval
over: doOpen, // function = onMouseOver callback (REQUIRED)
timeout: 500, // number = milliseconds delay before onMouseOut
out: doClose // function = onMouseOut callback (REQUIRED)
};
function doOpen() {
jQuery('#locations_header_wrap').slideDown("fast");
jQuery(this).addClass('active');
}
function doClose() {
jQuery('#locations_header_wrap').slideUp("medium");
jQuery('.header-locations-drop-link').removeClass('active');
}
jQuery('.header-locations-drop-link').hoverIntent(local_config);
<?php $locations = gb_get_locations();
if ( !empty( $locations ) && !is_wp_error( $locations ) ) : ?>
<div id="location">
<div class="header-locations-drop-link gb_ff">
<span class="current_location"><?php
gb_current_location_extended(); ?></span>
<div id="locations_header_wrap" class="clearfix cloak
header_color font_small">
<?php gb_list_locations(); ?>
</div><!-- #locations_header_wrap. -->
</div>
</div>
<?php endif; ?>
No comments:
Post a Comment