Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $('a.DMode').click(function(e) {
- if(window.location.hash == "#DMode"){
- /* We reset the hash */
- parent.location.hash = '';
- /* Then we switch back to the original mode */
- $("ul.sub_list > li").animate({opacity:0}, 500, function(){
- $(".sub_content").css("width", "590px");
- $(".sub_content_translate").css("width", "0px").css("display", "none");
- $("ul.sub_list > li").delay(500).animate({opacity:1}, 500);
- });
- return false;
- }else{
- /* Else, we display the dual mode
- * We hide the list while changing everything */
- $("ul.sub_list > li").animate({opacity:0}, 500, function(){
- $(".sub_content").css("width", "295px");
- $(".sub_content_translate").css("width", "295px").css("display", "block");
- $("ul.sub_list > li").delay(500).animate({opacity:1}, 500);
- });
- }
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement