Team:SEU O China/Template/Style

From 2012.igem.org

(Difference between revisions)
 
(6 intermediate revisions not shown)
Line 24: Line 24:
-
 
-
<script type="text/javascript">
 
-
function message()
 
-
{
 
-
alert("该提示框是通过 onload 事件调用的。")
 
-
}
 
-
</script>
 
Line 58: Line 51:
  });
  });
</script>
</script>
 +
 +
 +
<script type="text/javascript">
 +
var srcc=window.location;     
 +
srcc=srcc.toString() 
 +
start=srcc.indexOf("#"); 
 +
end=srcc.length; 
 +
$(document).ready(function(){
 +
 +
if (start > 2)
 +
{
 +
    $('.content').hide();
 +
    var name = $(this).attr('id');
 +
    $(srcc.substring(start,end)).fadeIn(500);
 +
}
 +
    });
 +
</script>
 +
</head>
</head>
</html>
</html>

Latest revision as of 13:40, 26 September 2012