User:Scormus/wikia.js

var $tfrm; $(document).ready(function { //   alert("5");   $("#WikiaArticle div.test").click(function { //    alert("4"); //    $tfrm.html('Back Again'); $tfrm.html($("#WikiaArticle div.tooltip-content").html); //    $tfrm.fadeIn('fast'); $tfrm.slideToggle; });  $("#WikiaArticle div.test2").click(function { //    alert("4"); $tfrm.html('Leaving Now'); $tfrm.fadeOut('slow'); });  $("#WikiaArticle div.test4").click(function { //    alert("5"); $lfname = "Electric_Bolt"; $lfnd = $("#WikiaArticle div.tooltip-"+$lfname) if ( $lfnd.length ) { $tfrm.html($lfnd.html); $tfrm.slideDown; } else { $tfrm.load("/User:Scormus/t1?action=render div.tooltip-content",function {         $tfrm.find(".tooltip-content").css("display","");         $tfrm.fadeIn('slow');       }); }       });   $("#WikiaArticle div.test5").click(function { //    alert("5"); $lfname = "tooltip-" + "Electric_Bolt4"; $lfnd = $("#WikiaArticle div."+$lfname) $tfrm.fadeOut('fast',function {     if ( $lfnd.length ) {       $tfrm.html($lfnd.html);       $tfrm.fadeIn('slow');     } else {       $tfrm.load("/User:Scormus/t1?action=render div.tooltip-content",function  { $tfrm.find(".tooltip-content").css("display",""); $tfrm.fadeIn('slow'); $("#WikiaArticle").append(''+$tfrm.html+' '); });    }         });   });

$tfrm = $("#WikiaArticle div.test3"); });