我正在使用jQuery幻灯片出现在页面上出现在页面上时加载(约1秒),然后被隐藏。我不想让它显示出来,我该怎么做?jquery隐藏元素加载页面加载1秒
我使用这个代码:
$(document).ready(function() {
// hides the slickbox as soon as the DOM is ready
// (a little sooner than page load)
$('#menucategory').hide();
// shows the slickbox on clicking the noted link
$('img.menu_class').click(function() {
$('#menucategory').show('slow');
return false;
});
// hides the slickbox on clicking the noted link
$('a#hidecategory').click(function() {
$('#menucategory').hide('slow');
return false;
});
});
请将代码写在'jsfiddle.net'上 – diEcho 2011-03-01 10:02:51
我已经自行编写代码 - [http://jsfiddle.net/xbHbP/](http://jsfiddle.net/xbHbP/1 ),我实际上不知道你在问什么... – Alex 2011-03-01 10:05:07
ahhhh做到了。 @Razor Storm说了些什么? – Alex 2011-03-01 10:05:42