Team:IIT Madras/Team
From 2011.igem.org
(Difference between revisions)
Line 3: | Line 3: | ||
<script> | <script> | ||
jQuery(document).ready(function(){ | jQuery(document).ready(function(){ | ||
- | + | var name; | |
$(".load").mouseover(function(){ | $(".load").mouseover(function(){ | ||
$("#popup_container").fadeIn(); | $("#popup_container").fadeIn(); | ||
+ | name=$(this).attr("id")+"_content"; | ||
+ | $("#"+name).fadeIn(); | ||
}); | }); | ||
Line 11: | Line 13: | ||
$("#popup_container").click(function(){ | $("#popup_container").click(function(){ | ||
$(this).fadeOut(); | $(this).fadeOut(); | ||
+ | $("#"+name).fadeOut(); | ||
}); | }); | ||
$("#close").click(function(){ | $("#close").click(function(){ | ||
$("#popup_container").fadeOut(); | $("#popup_container").fadeOut(); | ||
+ | $("#"+name).fadeOut(); | ||
}); | }); | ||
Line 37: | Line 41: | ||
<div class="load" id="chaitra" style="left:152px; top:220px;"></div> | <div class="load" id="chaitra" style="left:152px; top:220px;"></div> | ||
- | <div id="chaitra_content"></div> | + | <div id="chaitra_content"> |
+ | <img src="https://static.igem.org/mediawiki/2011/f/fc/Chaitraedit.jpg"/> | ||
+ | </div> | ||
<div class="load" id="teja" style="left:256px; top:220px;"></div> | <div class="load" id="teja" style="left:256px; top:220px;"></div> |
Revision as of 00:23, 29 October 2011