Team:Peking/js/home.js

From 2014.igem.org

(Difference between revisions)
(Created page with " $(document).ready(function(){ mid1size(); mid2size(); $("#mid1left").mouseover(function(){ $("#pabstract").stop().slideDown("1000"); }); $("#mid1left").mouseout(...")
Line 1: Line 1:
-
 
$(document).ready(function(){
$(document).ready(function(){
Line 11: Line 10:
  });
  });
$('#jumpup').hover(function(){
$('#jumpup').hover(function(){
-
  $("#jumpup img").attr({"src":"img/upchoose.png"});
+
  $("#jumpup img").attr({"src":"https://static.igem.org/mediawiki/2014/b/bd/Peking2014wcg_jumpupchoose.png"});
                       },function(){
                       },function(){
-
  $("#jumpup img").attr({"src":"img/up.png"});
+
  $("#jumpup img").attr({"src":"https://static.igem.org/mediawiki/2014/4/48/Peking2014wcg_jumpup.png"});
                         });
                         });
$('#jumpdown').hover(function(){
$('#jumpdown').hover(function(){
-
  $("#jumpdown img").attr({"src":"img/downchoose.png"});
+
  $("#jumpdown img").attr({"src":"https://static.igem.org/mediawiki/2014/5/5b/Peking2014wcg_jumpdownchoose.png"});
                       },function(){
                       },function(){
-
  $("#jumpdown img").attr({"src":"img/down.png"});
+
  $("#jumpdown img").attr({"src":"https://static.igem.org/mediawiki/2014/a/a9/Peking2014wcg_jumpdown.png"});
                         });
                         });
});
});

Revision as of 16:10, 13 October 2014

$(document).ready(function(){ mid1size(); mid2size(); $("#mid1left").mouseover(function(){ $("#pabstract").stop().slideDown("1000"); }); $("#mid1left").mouseout(function(){ $("#pabstract").stop().slideUp("1000"); }); $('#jumpup').hover(function(){ $("#jumpup img").attr({"src":"Peking2014wcg_jumpupchoose.png"});

                     },function(){

$("#jumpup img").attr({"src":"Peking2014wcg_jumpup.png"});

                        });

$('#jumpdown').hover(function(){ $("#jumpdown img").attr({"src":"Peking2014wcg_jumpdownchoose.png"});

                     },function(){

$("#jumpdown img").attr({"src":"Peking2014wcg_jumpdown.png"});

                        });

});



function mid1size() {

var w=$("#mid1left").width(); var h=w*480/640; $("#mid1left").css("height",h); $("#mid1right").css("height",h); // alert(height);

var w=$("#mid1right").width(); $(".SliderName_2 ").css("width",w); $(".SliderName_2 ").css("height",h); $(".SliderNamePrev_2").css("height",h); $(".SliderNameNext_2").css("height",h); };

function mid2size() {

var h=$("#mid2right").height()-100; $("#mid2center img").css("height",h); //alert(h);

};