我正在使用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