Template:Mexico-UNAM-CINVESTAV-HEADER

From 2010.igem.org

(Difference between revisions)
Line 3: Line 3:
<script type="text/javascript">
<script type="text/javascript">
$(document).ready(function(){
$(document).ready(function(){
 +
 +
$("body").css("display", "none");
 +
        $("body").fadeIn(3000);
 +
  $("a.transition").click(function(event){
 +
event.preventDefault();
 +
linkLocation = this.href;
 +
$("body").fadeOut(3000, redirectPage);
 +
});
 +
function redirectPage() {
 +
window.location = linkLocation;
 +
}
 +
$("ul.subnav").parent().append("<span></span>");  
$("ul.subnav").parent().append("<span></span>");  
$("ul.topnav li span").click(function() {  
$("ul.topnav li span").click(function() {  
Line 16: Line 28:
});
});
-
$("body").css("display", "none");
+
 
-
        $("body").fadeIn(3000);
+
-
  $("a.transition").click(function(event){
+
-
event.preventDefault();
+
-
linkLocation = this.href;
+
-
$("body").fadeOut(3000, redirectPage);
+
-
});
+
-
function redirectPage() {
+
-
window.location = linkLocation;
+
-
}
+
});
});

Revision as of 02:15, 3 September 2010