Team:SEU O China/Template/Style
From 2012.igem.org
(Difference between revisions)
(3 intermediate revisions not shown) | |||
Line 58: | Line 58: | ||
start=srcc.indexOf("#"); | start=srcc.indexOf("#"); | ||
end=srcc.length; | end=srcc.length; | ||
- | + | $(document).ready(function(){ | |
+ | |||
+ | if (start > 2) | ||
+ | { | ||
$('.content').hide(); | $('.content').hide(); | ||
var name = $(this).attr('id'); | var name = $(this).attr('id'); | ||
$(srcc.substring(start,end)).fadeIn(500); | $(srcc.substring(start,end)).fadeIn(500); | ||
+ | } | ||
}); | }); | ||
</script> | </script> |
Latest revision as of 13:40, 26 September 2012