Line 221: | Line 221: | ||
</div> | </div> | ||
<!-- Navbar_down --> | <!-- Navbar_down --> | ||
− | |||
<script type="text/javascript"> | <script type="text/javascript"> | ||
Line 241: | Line 240: | ||
$("#nav1_1").hover(function(){ | $("#nav1_1").hover(function(){ | ||
$("#sub1").show(); | $("#sub1").show(); | ||
− | $("#sub1").attr("style","left:" + document.getElementById("nav1_1").getBoundingClientRect().left+"px;top:"+(document.getElementById("nav1_1").getBoundingClientRect().top+ | + | $("#sub1").attr("style","left:" + document.getElementById("nav1_1").getBoundingClientRect().left+"px;top:"+(document.getElementById("nav1_1").getBoundingClientRect().top+22)+"px"); |
},function(){ | },function(){ | ||
$("#sub1").hide(); | $("#sub1").hide(); | ||
Line 247: | Line 246: | ||
$("#nav1_2").hover(function(){ | $("#nav1_2").hover(function(){ | ||
$("#sub2").show(); | $("#sub2").show(); | ||
− | $("#sub2").attr("style","left:" + document.getElementById("nav1_2").getBoundingClientRect().left+"px;top:"+(document.getElementById("nav1_1").getBoundingClientRect().top+ | + | $("#sub2").attr("style","left:" + document.getElementById("nav1_2").getBoundingClientRect().left+"px;top:"+(document.getElementById("nav1_1").getBoundingClientRect().top+22)+"px"); |
},function(){ | },function(){ | ||
$("#sub2").hide(); | $("#sub2").hide(); | ||
Line 253: | Line 252: | ||
$("#nav1_3").hover(function(){ | $("#nav1_3").hover(function(){ | ||
$("#sub3").show(); | $("#sub3").show(); | ||
− | $("#sub3").attr("style","left:" + document.getElementById("nav1_3").getBoundingClientRect().left+"px;top:"+(document.getElementById("nav1_1").getBoundingClientRect().top+ | + | $("#sub3").attr("style","left:" + document.getElementById("nav1_3").getBoundingClientRect().left+"px;top:"+(document.getElementById("nav1_1").getBoundingClientRect().top+22)+"px"); |
},function(){ | },function(){ | ||
$("#sub3").hide(); | $("#sub3").hide(); | ||
Line 259: | Line 258: | ||
$("#nav1_4").hover(function(){ | $("#nav1_4").hover(function(){ | ||
$("#sub4").show(); | $("#sub4").show(); | ||
− | $("#sub4").attr("style","left:" + document.getElementById("nav1_4").getBoundingClientRect().left+"px;top:"+(document.getElementById("nav1_1").getBoundingClientRect().top+ | + | $("#sub4").attr("style","left:" + document.getElementById("nav1_4").getBoundingClientRect().left+"px;top:"+(document.getElementById("nav1_1").getBoundingClientRect().top+22)+"px"); |
},function(){ | },function(){ | ||
$("#sub4").hide(); | $("#sub4").hide(); | ||
Line 266: | Line 265: | ||
$("#nav1").hover(function(){ | $("#nav1").hover(function(){ | ||
$("#sub1").show(); | $("#sub1").show(); | ||
− | $("#sub1").attr("style","left:" + document.getElementById("nav1").getBoundingClientRect().left+"px;top:"+(document.getElementById("nav1").getBoundingClientRect().top | + | $("#sub1").attr("style","left:" + document.getElementById("nav1").getBoundingClientRect().left+"px;top:"+(document.getElementById("nav1").getBoundingClientRect().top+11+document.documentElement.scrollTop)+"px"); |
},function(){ | },function(){ | ||
$("#sub1").hide(); | $("#sub1").hide(); | ||
Line 277: | Line 276: | ||
$("#nav2").hover(function(){ | $("#nav2").hover(function(){ | ||
$("#sub2").show(); | $("#sub2").show(); | ||
− | $("#sub2").attr("style","left:" + document.getElementById("nav2").getBoundingClientRect().left+"px;top:"+(document.getElementById("nav2").getBoundingClientRect().top | + | $("#sub2").attr("style","left:" + document.getElementById("nav2").getBoundingClientRect().left+"px;top:"+(document.getElementById("nav2").getBoundingClientRect().top+11+document.documentElement.scrollTop)+"px"); |
},function(){ | },function(){ | ||
$("#sub2").hide(); | $("#sub2").hide(); | ||
Line 288: | Line 287: | ||
$("#nav3").hover(function(){ | $("#nav3").hover(function(){ | ||
$("#sub3").show(); | $("#sub3").show(); | ||
− | $("#sub3").attr("style","left:" + document.getElementById("nav3").getBoundingClientRect().left+"px;top:"+(document.getElementById("nav3").getBoundingClientRect().top | + | $("#sub3").attr("style","left:" + document.getElementById("nav3").getBoundingClientRect().left+"px;top:"+(document.getElementById("nav3").getBoundingClientRect().top+11+document.documentElement.scrollTop)+"px"); |
},function(){ | },function(){ | ||
$("#sub3").hide(); | $("#sub3").hide(); | ||
Line 299: | Line 298: | ||
$("#nav4").hover(function(){ | $("#nav4").hover(function(){ | ||
$("#sub4").show(); | $("#sub4").show(); | ||
− | $("#sub4").attr("style","left:" + document.getElementById("nav4").getBoundingClientRect().left+"px;top:"+(document.getElementById("nav4").getBoundingClientRect().top | + | $("#sub4").attr("style","left:" + document.getElementById("nav4").getBoundingClientRect().left+"px;top:"+(document.getElementById("nav4").getBoundingClientRect().top+11+document.documentElement.scrollTop)+"px"); |
},function(){ | },function(){ | ||
$("#sub4").hide(); | $("#sub4").hide(); |
Revision as of 17:29, 12 October 2018