Team:Tsinghua/header

From 2011.igem.org

(Difference between revisions)
Line 37: Line 37:
$(document).ready(function(){
$(document).ready(function(){
     $("#catlinks").remove();
     $("#catlinks").remove();
-
     $("#a-tip").hover(function(){
+
     $("span[id=a-tip]").hover(function(){
         var tip="";
         var tip="";
         try{
         try{
-
            alert(tip);
+
             tip="<div class='tipdiv'>" + $(this).find('.div-tip').text() + "</div>";
-
             tip="<div class='tipdiv'>" + $(this).find('.div-tip').innerText() + "</div>";
+
             $(this).append(tip);
             $(this).append(tip);

Revision as of 16:16, 16 September 2011