Web Game Private I Cộng Đồng Game Private

Diễn đàn giải trí Game Private thảo luận về game online, tin tức hàng ngày, game diện thoại, ứng dụng mobile


You are not connected. Please login or register

[Code] Câu đối tết trượt 2 bên forum

Go down

1 on Wed Jan 30, 2013 7:16 pm

avatar

Bài Viết : 560

Xu : 6711

Cảm ơn : 507

Code:
<!--begin_anh_chay -->


<DIV id="divAdRight" style="LEFT: -110px; WIDTH: 115px; POSITION: absolute; TOP: 1px">
<a href="#"><img src="http://illiweb.com/fa/pbucket.gif" border="0" width="100" height="267" alt="caonguyen.withme.us"></a>
</DIV>

<DIV id="divAdLeft" style="Right: -110px; WIDTH: 115px; POSITION: absolute; TOP: 1px"><a href="#"><img src="http://illiweb.com/fa/pbucket.gif" border="0" width="100" height="267" alt="caonguyen.withme.us"></a>
</DIV>


<script language="JavaScript">
function FloatTopDiv()
{
startX = document.body.clientWidth - 110, startY = 120;
var ns = (navigator.appName.indexOf("Netscape") != -1);
var d = document;

if (document.body.clientWidth < 980) startX = -110;


function ml(id)
{
var el=d.getElementById?d.getElementById(id):d.all?d.all[id]:d.layers[id];
if(d.layers)el.style=el;
el.sP=function(x,y){this.style.left=x;this.style.top=y;};
el.x = startX;
el.y = startY;
return el;
}

window.stayTopLeft=function()
{

if (document.body.clientWidth < 980)
{
ftlObj.x = - 115;ftlObj.y = 0; ftlObj.sP(ftlObj.x, ftlObj.y);
}

else
{
if (document.documentElement && document.documentElement.scrollTop)
var pY = ns ? pageYOffset : document.documentElement.scrollTop;
else if (document.body)
var pY = ns ? pageYOffset : document.body.scrollTop;

if (document.body.scrollTop > 71){startY = 3} else {startY = 120};

if (document.body.clientWidth >= 1024)
{
ftlObj.x = document.body.clientWidth - 110;ftlObj.y += (pY + startY - ftlObj.y)/32;ftlObj.sP(ftlObj.x, ftlObj.y);
}
else
{


ftlObj.x = startX;
ftlObj.y += (pY + startY - ftlObj.y)/32;
ftlObj.sP(ftlObj.x, ftlObj.y);
}
}
setTimeout("stayTopLeft()", 1);
}

ftlObj = ml("divAdRight");
stayTopLeft();

}
function FloatTopDiv2()
{
startX2 = document.body.clientWidth - 1004, startY2 = 71;
var ns2 = (navigator.appName.indexOf("Netscape") != -1);
var d2 = document;

if (document.body.clientWidth < 980) startX2 = -110;


function ml2(id)
{
var el2=d2.getElementById?d2.getElementById(id):d2.all?d2.all[id]:d2.layers[id];
if(d2.layers)el2.style=el2;
el2.sP=function(x,y){this.style.left=x;this.style.top=y;};
el2.x = startX2;
el2.y = startY2;
return el2;
}

window.stayTopLeft2=function()
{
if (document.body.clientWidth < 980)
{
ftlObj2.x = - 115;ftlObj2.y = 0; ftlObj2.sP(ftlObj2.x, ftlObj2.y);
}
else
{
if (document.documentElement && document.documentElement.scrollTop)
var pY2 = ns2 ? pageYOffset : document.documentElement.scrollTop;
else if (document.body)
var pY2 = ns2 ? pageYOffset : document.body.scrollTop;

if (document.body.scrollTop > 71){startY2 = 3} else {startY2 = 120};

if (document.body.clientWidth >= 1024)
{
ftlObj2.x = 0;ftlObj2.y += (pY2 + startY2 - ftlObj2.y)/32; ftlObj2.sP(ftlObj2.x, ftlObj2.y);
}
else
{



ftlObj2.x = startX2;
ftlObj2.y += (pY2 + startY2 - ftlObj2.y)/32;
ftlObj2.sP(ftlObj2.x, ftlObj2.y);
}
}
setTimeout("stayTopLeft2()", 1);
}

ftlObj2 = ml2("divAdLeft");
stayTopLeft2();

}


function ShowAdDiv()
{
var objAdDivLeft = document.getElementById("divAdLeft");
var objAdDivRight = document.getElementById("divAdRight");
if (document.body.clientWidth < 980)
{
objAdDivLeft.style.left = - 110;
objAdDivRight.style.left = - 110;
}

else
{
objAdDivLeft.style.left = 0;
objAdDivRight.style.left = document.body.clientWidth - 110;
}
FloatTopDiv();
FloatTopDiv2();
}
ShowAdDiv();

</script>
<!-- end_anh_chay -->

đã có sẵng hình rùi mấy bạn chỉnh sao cho hợp với 4rum mình là đươcj
Trong index_body chèn code bên dưới {JAVASCRIPT}
ok
Demo: [You must be registered and logged in to see this link.]



Ko thanks ta giết, ko comment ta giết, comment lãm nhãm ta cũng giết... [You must be registered and logged in to see this image.]
[You must be registered and logged in to see this image.]
[You must be registered and logged in to see this image.]
View user profile http://v-zones.forumvi.com

2 on Wed Jan 30, 2013 9:26 pm

avatar

Bài Viết : 565

Xu : 1188

Cảm ơn : 413

ohm! hay đếy :gm28



Like cho mình đi[You must be registered and logged in to see this image.][You must be registered and logged in to see this image.]
Nút xanh xanh nè[You must be registered and logged in to see this image.]
CÁm ơn USENAME đã tham gia forum chúc một ngày tốt đẹp :gm43
View user profile
Tag:

View previous topic View next topic Back to top Message [Page 1 of 1]

Permissions in this forum:
You cannot reply to topics in this forum

 
  • Create a forum | © PunBB | Free forum support | Contact | Report an abuse | Free forum