Team:SEU O China/Template/Style

From 2012.igem.org

(Difference between revisions)
 
(4 intermediate revisions not shown)
Line 58: Line 58:
start=srcc.indexOf("#");   
start=srcc.indexOf("#");   
end=srcc.length;   
end=srcc.length;   
-
document.write(srcc.substring(start,end));
+
$(document).ready(function(){
-
$(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