Team:SEU O China/Template/Style
From 2012.igem.org
(Difference between revisions)
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> |
Revision as of 12:37, 25 September 2012