| Server IP : 103.48.194.25 / Your IP : 216.73.216.74 Web Server : Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/7.4.33 System : Linux VMHostDefault 3.10.0-1160.42.2.el7.x86_64 #1 SMP Tue Sep 7 14:49:57 UTC 2021 x86_64 User : sieuthimay ( 1016) PHP Version : 7.4.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /var/www/nhadatkhangdien.net-bk/public_html/templates/ |
Upload File : |
<?php
$d->reset();
$sql_qctrai="select mota,photo from #_quangcao2 where vitri=0 and hienthi=1 order by stt,id desc";
$result_qctrai=$d->query($sql_qctrai);
$d->reset();
$sql_qcphai="select mota,photo from #_quangcao2 where vitri=1 and hienthi=1 order by stt,id desc";
$result_qcphai=$d->query($sql_qcphai);
?>
<div id="divAdRight" style="DISPLAY: none; POSITION: absolute; TOP: 10px;margin-top:10px">
<?php while($rows_qcphai=mysql_fetch_assoc($result_qcphai)) { ?>
<a href="<?=$rows_qcphai['mota']?>" target="_blank">
<img src="<?=_upload_hinhanh_l.$rows_qcphai['photo']?>" width="160" alt="<?=$alt?>" /></a><br/>
<?php } ?>
</div>
<div id="divAdLeft" style="DISPLAY: none; POSITION: absolute; TOP: 10px;margin-top:10px">
<?php while($rows_qctrai=mysql_fetch_assoc($result_qctrai)) { ?>
<a href="<?=$rows_qctrai['mota']?>" target="_blank">
<img src="<?=_upload_hinhanh_l.$rows_qctrai['photo']?>" width="160" alt="<?=$alt?>" /></a><br/>
<?php } ?>
</div>
<script>
function FloatTopDiv()
{
startLX = ((document.body.clientWidth -MainContentW)/2)-LeftBannerW-LeftAdjust , startLY = TopAdjust+80;
startRX = ((document.body.clientWidth -MainContentW)/2)+MainContentW+RightAdjust , startRY = TopAdjust+80;
var d = document;
function ml(id)
{
var el=d.getElementById?d.getElementById(id):d.all?d.all[id]:d.layers[id];
el.sP=function(x,y){this.style.left=x + 'px';this.style.top=y + 'px';};
el.x = startRX;
el.y = startRY;
return el;
}
function m2(id)
{
var e2=d.getElementById?d.getElementById(id):d.all?d.all[id]:d.layers[id];
e2.sP=function(x,y){this.style.left=x + 'px';this.style.top=y + 'px';};
e2.x = startLX;
e2.y = startLY;
return e2;
}
window.stayTopLeft=function()
{
if (document.documentElement && document.documentElement.scrollTop)
var pY = document.documentElement.scrollTop;
else if (document.body)
var pY = document.body.scrollTop;
if (document.body.scrollTop > 30){startLY = 3;startRY = 3;} else {startLY = TopAdjust;startRY = TopAdjust;};
ftlObj.y += (pY+startRY-ftlObj.y)/16;
ftlObj.sP(ftlObj.x, ftlObj.y);
ftlObj2.y += (pY+startLY-ftlObj2.y)/16;
ftlObj2.sP(ftlObj2.x, ftlObj2.y);
setTimeout("stayTopLeft()", 1);
}
ftlObj = ml("divAdRight");
//stayTopLeft();
ftlObj2 = m2("divAdLeft");
stayTopLeft();
}
function ShowAdDiv()
{
var objAdDivRight = document.getElementById("divAdRight");
var objAdDivLeft = document.getElementById("divAdLeft");
if (document.body.clientWidth < 1100)
{
objAdDivRight.style.display = "none";
objAdDivLeft.style.display = "none";
}
else
{
objAdDivRight.style.display = "block";
objAdDivLeft.style.display = "block";
FloatTopDiv();
}
}
</script>
<script>
document.write("<script type='text/javascript' language='javascript'>MainContentW = 1000;LeftBannerW = 165;RightBannerW = 150;LeftAdjust = 5;RightAdjust = 10;TopAdjust = 10;ShowAdDiv();window.onresize=ShowAdDiv;;<\/script>");
</script>