| Server IP : 210.245.233.93 / Your IP : 216.73.216.226 Web Server : Apache/2.2.15 (CentOS) System : Linux webserver2.onesolution.com.hk 2.6.32-754.35.1.el6.x86_64 #1 SMP Sat Nov 7 12:42:14 UTC 2020 x86_64 User : apache ( 48) PHP Version : 5.3.3 Disable Function : exec, shell_exec, system, passthru, popen, proc_open, pcntl_exec MySQL : ON | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /var/www/hkosl.com/alliancealliance/ |
Upload File : |
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=1240; initial-scale=0; maximum-scale=1.0; user-scalable=1;">
<link rel="icon" href="images/favicon.ico" type="image/x-icon">
<!-- Stylesheets
============================================= -->
<link rel="stylesheet" href="css/style.css" type="text/css" />
<!-- External JavaScripts
============================================= -->
<script type="text/javascript" src="js/jquery-1.11.3.min.js"></script>
<!-- Document Title
============================================= -->
<title><?=$site_info["companyname_".$langcode]?></title>
<meta name="keywords" content="<?=$site_info["metakeyword_".$langcode]?>">
<meta name="description" content="<?=$site_info["metadescription_".$langcode]?>">
<!-- for scroll menu -->
<script type="text/javascript">
function check_if_able_scroll_left(){
//scroll 1px to the left
$(window).scrollLeft(1);
if($(window).scrollLeft() != 0){
//alert('there is a horizontal scroll bar you must have a small screen');
$(window).scrollLeft(0);
return true;
}else{
//alert('there is NO a horizontal scroll bar');
$(window).scrollLeft(0);
return false;
}
}
var able_scroll_left = false;
$(function () {
able_scroll_left = check_if_able_scroll_left();
});
$(window).resize(function () {
able_scroll_left = check_if_able_scroll_left();
});
$(window).scroll(function() {
$("#header").scrollLeft($("body").scrollLeft());
$("#header").scrollTop($("body").scrollTop());
//1
if ($(window).scrollTop() > 0 && !able_scroll_left){
//$('#header').animate({top:$(window).scrollTop()},0,"liner");
$("#header").css("position", "fixed");
//$("#header").css("top", $(window).scrollTop()+"px");
$("#header").css("top", "0");
$("#header").css("border-bottom", "1px solid #c3c3c3");
//console.log(1);
}else{
$("#header").css("position", "absolute");
$("#header").css("top", $(window).scrollTop()+"px");
$("#header").css("border-bottom", "none");
//console.log(2);
}
});
</script>