User:Soxra/monaco.js: Difference between revisions

From the Kingdom Hearts Wiki, the Kingdom Hearts encyclopedia
Jump to navigationJump to search
(Created page with "function runOnloadHook() { importScriptURI("http://code.jquery.com/jquery-latest.min.js"); } window.onload = function() { $(document).ready(function() { $("#p-Navigation ...")
 
No edit summary
Line 8: Line 8:
       $me.parent().click(function(){
       $me.parent().click(function(){
         window.location = $me.attr("href");
         window.location = $me.attr("href");
      }).hover(function(){
        $me.addClass("hoveredLink");
      },function(){
        $me.removeClass("hoveredLink");
       }).attr("style","cursor:hand;cursor:pointer");
       }).attr("style","cursor:hand;cursor:pointer");
     });
     });
   });
   });
};
};

Revision as of 07:43, 23 February 2011

function runOnloadHook() {
  importScriptURI("http://code.jquery.com/jquery-latest.min.js");
}
window.onload = function() {
  $(document).ready(function() {
    $("#p-Navigation .pBody a, #p-Interaction .pBody a, #p-search .pBody a, #p-tb .pBody a, #p-lang .pBody a").each(function() {
      var $me = $(this);
      $me.parent().click(function(){
        window.location = $me.attr("href");
      }).hover(function(){
        $me.addClass("hoveredLink");
      },function(){
        $me.removeClass("hoveredLink");
      }).attr("style","cursor:hand;cursor:pointer");
    });
  });
};