Team:AUC TURKEY
From 2013hs.igem.org
(Difference between revisions)
Line 23: | Line 23: | ||
{ | { | ||
var link=$("#links a:eq("+i+") img"); | var link=$("#links a:eq("+i+") img"); | ||
- | link.num | + | link.attr("num",i); |
link.hover( | link.hover( | ||
function () { | function () { | ||
$(this).fadeTo(400,1); | $(this).fadeTo(400,1); | ||
- | this.src=active[$(this).num]; | + | this.src=active[$(this).attr("num")]; |
- | alert($(this).num); | + | alert($(this).attr("num")); |
}, | }, | ||
function () { | function () { | ||
$(this).fadeTo(400,.75); | $(this).fadeTo(400,.75); | ||
- | this.src=normal[$(this).num]; | + | this.src=normal[$(this)..attr("num")]; |
}); | }); | ||
} | } |
Revision as of 15:49, 18 June 2013