- Code:
[banner]{TEXT}[/banner]
- Code:
<div id="divTopLeft" style="position: absolute; left: 10px; top: 15px; height: 478px;">
<a href="http://kenhgiaitri.co.cc" target="_blank" title="Homepage KênhGiảiTrí.Co.Cc"><img src="http://kenhgiaitri.co.cc/images/home.png" border="0" alt="KênhGiảiTrí.Co.Cc" width="97" height="100"></a><br/>
<a href="http://kenhgiaitri.co.cc/music" target="_blank" title="KênhGiảiTrí! Music"><img src="http://kenhgiaitri.co.cc/images/music.png" border="0" alt="KênhGiảiTrí.Co.Cc" width="97" height="100"></a><br/>
<a href="http://kenhgiaitri.co.cc/tv" target="_blank" title="KênhGiảiTrí! TvOnline"><img src="http://kenhgiaitri.co.cc/images/tivi.png" border="0" alt="KênhGiảiTrí.Co.Cc" width="97" height="100"></a><br/>
<a href="http://phanmemviet.vnbb.com" target="_blank" title="KênhGiảiTrí! Forum"><img src="http://kenhgiaitri.co.cc/images/forum.png" border="0" alt="KênhGiảiTrí.Co.Cc" width="97" height="100"></a><br/>
</div>
<div id="divTopRight" style="position: absolute">
<a href="http://kenhgiaitri.co.cc" target="_blank" title="Homepage KênhGiảiTrí.Co.Cc"><img src="http://kenhgiaitri.co.cc/images/home.png" border="0" alt="KênhGiảiTrí.Co.Cc" width="97" height="100"></a><br/>
<a href="http://kenhgiaitri.co.cc/music" target="_blank" title="KênhGiảiTrí! Music"><img src="http://kenhgiaitri.co.cc/images/music.png" border="0" alt="KênhGiảiTrí.Co.Cc" width="97" height="100"></a><br/>
<a href="http://kenhgiaitri.co.cc/tv" target="_blank" title="KênhGiảiTrí! TvOnline"><img src="http://kenhgiaitri.co.cc/images/tivi.png" border="0" alt="KênhGiảiTrí.Co.Cc" width="97" height="100"></a><br/>
<a href="http://phanmemviet.vnbb.com" target="_blank" title="KênhGiảiTrí! Forum"><img src="http://kenhgiaitri.co.cc/images/forum.png" border="0" alt="KênhGiảiTrí.Co.Cc" width="97" height="100"></a><br/>
</div>
- Code:
<script type="text/javascript">
var copyright = 'kgt';
var ns = (navigator.appName.indexOf("Netscape") != -1);
var d = document;
var px = document.layers ? "" : "px";
function KGT_FloatDiv(id, sx, sy,cc)
{
var el=d.getElementById?d.getElementById(id):d.all?d.all[id]:d.layers[id];
window[id + "_obj"] = el;
if(d.layers)el.style=el;
el.cx = el.sx = sx;el.cy = el.sy = sy;
el.sP=function(x,y){this.style.left=x+px;this.style.top=y+px;};
el.init=false;
el.flt=function()
{
var pX, pY;
pX = (this.sx >= 0) ? 0 : ns ? innerWidth :
document.documentElement && document.documentElement.clientWidth ?
document.documentElement.clientWidth : document.body.clientWidth;
pY = ns ? pageYOffset : document.documentElement && document.documentElement.scrollTop ?
document.documentElement.scrollTop : document.body.scrollTop;
if(this.sy<0)
pY += ns ? innerHeight : document.documentElement && document.documentElement.clientHeight ?
document.documentElement.clientHeight : document.body.clientHeight;
this.cx += (pX + this.sx - this.cx)/8;this.cy += (pY + this.sy - this.cy)/8;
if(!this.init)
{
this.init=true;
this.cx = pX+this.sx;
this.cy = pY+this.sy;
}
this.sP(this.cx, this.cy);
setTimeout(this.id + "_obj.flt()", 40);
}
return el;
}
KGT_FloatDiv("divTopLeft", 2, 50).flt();
if (navigator.appName.indexOf("Netscape") != -1)
{
KGT_FloatDiv("divTopRight", -120, 50).flt();
}
else
{
KGT_FloatDiv("divTopRight", -102, 50).flt();
}
</script>
Nếu bạn muốn thay chỗ link file hình bằng file flash .SWF thì bạn làm như sau :
thay thẻ bằng (cụ thể )
- Code:
<embed type="application/x-shockwave-flash" src="link file *.swf" quality="high" allowscriptaccess="always" wmode="opaque" width="chiều rộng px" height="chiều cao px px"/>