ive got this code in on my site
its basically for switch a menu between 2 views 'thumb_view' and 'display'
it works fine, but whenever i start the page, it always starts on 'display'
how do i change this code so 'thumb_view' is the first one to show?
everything iv tried seems to break it.
if you need any more details about the code, such as the css properties, let me know.
PHP:
$(document).ready(function(){
$("a.switch_thumb").toggle(function(){
$(this).addClass("swap");
$("ul.display").fadeOut("fast", function() {
$(this).fadeIn("fast").addClass("thumb_view");
});
}, function () {
$(this).removeClass("swap");
$("ul.display").fadeOut("fast", function() {
$(this).fadeIn("fast").removeClass("thumb_view");
});
});
});
it works fine, but whenever i start the page, it always starts on 'display'
how do i change this code so 'thumb_view' is the first one to show?
everything iv tried seems to break it.
if you need any more details about the code, such as the css properties, let me know.