Team:SYSU-Software/cast designer.js
From 2013.igem.org
(Created page with " (function($) { $.fn.tips = function(options) { options = options || {}; return this.each(function() { $("#display-board img").attr("src", options.pic); $("#display-board s...")
Newer edit →
Revision as of 10:06, 27 September 2013
(function($) { $.fn.tips = function(options) { options = options || {}; return this.each(function() { $("#display-board img").attr("src", options.pic); $("#display-board span").text(options.text); $(this).bind("mouseover", function(){ console.log("iaiai"); $("#display-board img").attr("src", options.pic); $("#display-board span").text(options.text); }); }); } })(jQuery);
$(document).ready(function(){
$("#assembly").tips({pic:'https://static.igem.org/mediawiki/2013/8/8b/Cast_Assembly.png',text:'asdfasdf'});
$("#simulating").tips({pic:'https://static.igem.org/mediawiki/2013/f/f6/Cast_Simulating.png',text:'sss'});
$("#relationship").tips({pic:'https://static.igem.org/mediawiki/2013/9/9a/Cast_Relation.png',text:'ddd'});
$("#parameter").tips({pic:'https://static.igem.org/mediawiki/2013/8/89/Cast_Parameter.png',text:'aaaa'});
});