ulvis.paste.net

Paste Search Dynamic
Recent pastes
functions.js
  1. / JavaScript Document
  2. $(document).ready(function(){   
  3. $("a.lightbox").fancybox();
  4. $(".popular_post") .hide();
  5. $(".popular_post:first") .show();
  6. $(".nav_post ul li").click(function() {
  7. $(".nav_post ul li").removeClass("active"); //Remove any "active" class
  8. $(this).addClass("active");
  9.  Cufon.refresh();//Add "active" class to selected tab
  10. $(".popular_post").hide(); //Hide all tab content
  11. var activeTab = $(this).find("a").attr("href"); //Find the rel attribute value to identify the active tab + content
  12. $(activeTab).fadeIn(); //Fade in the active content
  13. return false;
  14. });
  15.  
  16. $("#nav ul li ul") .prev() .addClass("dropdown");
  17. $("#nav ul li a.dropdown") .append("<em>&nbsp;</em>");
  18. $("#nav ul li ul li a.dropdown") .children("em") .remove();
  19. Cufon.replace('h1',{hover:true});
  20. Cufon.replace('h2',{hover:true});
  21. Cufon.replace('h3',{hover:true});
  22. Cufon.replace('h4',{hover:true});
  23. Cufon.replace('.right_comment li a.btn_submit',{hover:true});
  24. Cufon.replace('.nav_post  li a ',{hover:true});
  25. Cufon.replace('#nav > ul >  li > a',{hover:true});
  26. Cufon.replace('.nav_news li a',{hover:true});
  27. $("#gallery_sec li").hover(function() {
  28. $(this).css({'z-index' : '10'});
  29. $(this).find('a').addClass("hover").stop()
  30. .animate({
  31. top: '-30px',
  32. left: '-30px'
  33. }, 100);
  34.  
  35. } , function() {
  36. $(this).css({'z-index' : '0'});
  37. $(this).find('a').removeClass("hover").stop()
  38. .animate({
  39. marginTop: '0px',
  40. marginLeft: '0px',
  41. top: '0px',
  42. left: '0px'
  43. }, 200);
  44. });
  45. $("#nav ul li ul li a.dropdown") .removeAttr("href");
  46. $("#nav ul li ul li a.dropdown") .click (function () {
  47. $(this) .toggleClass ("activebg") .next () .slideToggle ("normal");
  48. });
  49. //$("#nav ul li") .hover (function (){Cufon.refresh();});
  50.  
  51. $(".content_news") .hide();
  52. $(".content_news:first") .show();
  53. $(".nav_news ul li").click(function() {
  54. $(".nav_news ul li").removeClass("active"); //Remove any "active" class
  55. $(this).addClass("active");
  56.  Cufon.refresh();//Add "active" class to selected tab
  57. $(".content_news").hide(); //Hide all tab content
  58. var activeTab = $(this).find("a").attr("href"); //Find the rel attribute value to identify the active tab + content
  59. $(activeTab).fadeIn(); //Fade in the active content
  60. return false;
  61. });
  62.  
  63.  
  64.  
  65. $("#nav  li ") .hover (function (){
  66. $(this) .addClass ("hoveract") .children() .removeClass("hoveract");
  67.         },function (){
  68.                 $(this) .removeClass ("hoveract");
  69.                 Cufon.refresh();       
  70.         });
  71.  
  72. });
  73. $(document) .ready (function(){
  74.         $('#banner_images').cycle({
  75. fx:     'fade',
  76. delay:  5000,
  77. timeout:  5000,
  78. pager:"#pager"
  79.  
  80. });
  81.         });
Parsed in 0.018 seconds