jQuery幻灯片无法在$(window).load中工作 [英] jquery slide not working inside $(window).load
本文介绍了jQuery幻灯片无法在$(window).load中工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
jQuery Silde $(#divhome").slideDown(2000);正在使用Onclick 函数.但是 Same在窗口加载功能内部无法正常工作.
The jquery Silde $("#divhome").slideDown(2000); is working inside the Onclick function. But the Same is not working inside the window load function.
$(window).load(function(){
$('#divhome').load('home.html'); //Load home Div
$("#divhome").slideDown(2000); //Silde home Div
$('#divgallery').load('gallery.html'); //Load Gallery Div
$('#divabout').load('about.html'); //Load AboutUs Div
$('#divcontact').load('contact.html'); //Load Contactus Div
});
请帮忙..
在此先感谢
Santhosh
Kindly help..
Thanks in Advance
Santhosh
推荐答案
(#divhome").slideDown(2000);正在使用Onclick 函数.但是 Same在窗口加载功能内部无法正常工作.
("#divhome").slideDown(2000); is working inside the Onclick function. But the Same is not working inside the window load function.
(窗口).load(function(){
(window).load(function(){
(' #divhome').load(' //
('#divhome').load('home.html'); //Load home Div
这篇关于jQuery幻灯片无法在$(window).load中工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文