Jump to content
  • 0

Остановка выполнения событий jQuery


inex
 Share

Question

Добрый вечер, имеется вот такой код


/* noie */
jQuery(document).ready(function($){
var abc = "body";
jQuery.each(jQuery.browser, function(i) {
if($.browser.msie && $.browser.version < 9){
$("#page").replaceWith('<div id="noie"><span></span><h2>К сожалению ваш браузер устарел!</h2><div style="clear: both;"></div><p>Установите более современный!</p></div>');
}
});
});

/* slider */
jQuery(document).ready(function($){
$("#showcase").awShowcase(
{
content_width: 514,
content_height: 280,
fit_to_parent: false,
auto: true,
interval: 3000,
continuous: true,
loading: true,
tooltip_width: 200,
tooltip_icon_width: 32,
tooltip_icon_height: 32,
tooltip_offsetx: 18,
tooltip_offsety: 0,
arrows: false,
buttons: true,
btn_numbers: false,
keybord_keys: true,
mousetrace: false, /* Trace x and y coordinates for the mouse */
pauseonover: true,
stoponclick: false,
transition: 'fade', /* hslide/vslide/fade */
transition_delay: 0,
transition_speed: 500,
show_caption: 'onload', /* onload/onhover/show */
thumbnails: false,
thumbnails_position: 'outside-last', /* outside-last/outside-first/inside-last/inside-first */
thumbnails_direction: 'vertical', /* vertical/horizontal */
thumbnails_slidex: 1, /* 0 = auto / 1 = slide one thumbnail / 2 = slide two thumbnails / etc. */
dynamic_height: false, /* For dynamic height to work in webkit you need to set the width and height of images in the source. Usually works to only set the dimension of the first slide in the showcase. */
speed_change: true, /* Set to true to prevent users from swithing more then one slide at once. */
viewline: false, /* If set to true content_width, thumbnails, transition and dynamic_height will be disabled. As for dynamic height you need to set the width and height of images in the source. */
custom_function: null /* Define a custom function that runs on content change */
});
});

/* modal */
jQuery(document).ready(function($){
$( "#logindialog" ).dialog({
autoOpen: false,
wight: 100
});
$('#loginlink').click(function(){
$('#logindialog').dialog('open');
return false;
});
});

/* menu */
jQuery(document).ready(function($){
$('ul.menu').each(function(){
// find menu items with children.
$(this).find('li').has('ul').addClass('has-menu')
//.append('<span class="arrow"> </span>');
});
$('ul.menu li').hover(function(){
$(this).find('ul:first').stop(true, true).fadeIn('fast');
$(this).addClass('hover');
},
function(){
$(this).find('ul').stop(true, true).fadeOut('slow');
$(this).removeClass('hover');
});
});

Как остановить выполнение функций после


/* noie */
jQuery(document).ready(function($){
var abc = "body";
jQuery.each(jQuery.browser, function(i) {
if($.browser.msie && $.browser.version < 9){
$("#page").replaceWith('<div id="noie"><span></span><h2>К сожалению ваш браузер устарел!</h2><div style="clear: both;"></div><p>Установите более современный!</p></div>');
}
});
});

? , чтобы только он выполнился на странице, заранее спасибо!

Link to comment
Share on other sites

5 answers to this question

Recommended Posts

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. See more about our Guidelines and Privacy Policy