Team:Tsinghua/header
From 2011.igem.org
(Difference between revisions)
Line 38: | Line 38: | ||
$("#catlinks").remove(); | $("#catlinks").remove(); | ||
$("#a-tip").hover(function(){ | $("#a-tip").hover(function(){ | ||
+ | var tip=""; | ||
try{ | try{ | ||
- | $(' | + | tip="<div class='tipdiv'>" + $(this).find('div-tip').innerText() + "</div>"; |
+ | $(this).append(tip); | ||
+ | $(this).find('.tipdiv').fadeIn('slow'); | ||
}catch(e){} | }catch(e){} | ||
}, function(){ | }, function(){ | ||
try{ | try{ | ||
- | $(' | + | $(this).find('.tipdiv').fadeOut('fast'); |
+ | $(this).find('.tipdiv').remove(); | ||
}catch(e){} | }catch(e){} | ||
}); | }); |
Revision as of 16:03, 16 September 2011