User:Scormus/wikia.js

var $tfrm; $(document).ready(function {   alert("3");   $("#WikiaArticle div.test").click(function { //    alert("3"); //    $tfrm.html('Back Again'); $tfrm.html($("#WikiaArticle div.tooltip-content").html); $tfrm.fadeIn('fast'); });  $("#WikiaArticle div.test2").click(function { //    alert("4"); $tfrm.html('Leaving Now'); $tfrm.fadeOut('slow'); });  $("#WikiaArticle div.test4").click(function { //    alert("5"); $lfname = "contentx"; $lfnd = $("#WikiaArticle div.tooltip-"+$lfname) 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');       }); }       });

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