Hi, at at http://www.detik.com its works with [removed]
<div style=“visibility: visible;” id=“floaterkiri”> ...</div>
function ieTest(){
return (document.compatMode && document.compatMode!=“BackCompat”) ? document.documentElement : document.body
}
if (window.innerWidth || window.opera){
tmpPageW=window.innerWidth;
}else if (document.body){
tmpPageW=ieTest().offsetWidth + 20;
}
var floater,floaterkiri;
var winWidth = tmpPageW;
var detikContentWidth = 680; //get main detik content width
var winCenter = winWidth / 2; //get window center
var halfDetikContentWidth = detikContentWidth / 2 ; //get main half detik content width
var scrollWidth = 35; //get scroll width
var scrollHeight = 300;
var firstScrollY = 80;
function pagestart(){
//me new
// xx = scroll postion, must be relative to window screen…
var firstScrollPosX1;
var firstScrollPosX2;
if (window.innerWidth || window.opera){
firstScrollPosX1 = winCenter + halfDetikContentWidth + 5;
firstScrollPosX2 = winCenter - halfDetikContentWidth - scrollWidth - 120;
}else if (document.body){
firstScrollPosX1 = winCenter + halfDetikContentWidth;
firstScrollPosX2 = winCenter - halfDetikContentWidth - scrollWidth - 120;
}
//Chip(chipname,width,height,xx,yy)
floater=new Chip(“floater”,scrollWidth,scrollHeight,firstScrollPosX1,firstScrollY);
movechip(“floater”);
//floaterkiri=new Chip(“floaterkiri”,scrollWidth,200,85,12);
floaterkiri=new Chip(“floaterkiri”,scrollWidth,scrollHeight,firstScrollPosX2,firstScrollY);
movechip(“floaterkiri”);
}
if (window.addEventListener) {
window.addEventListener(“load”, pagestart, false);
}else if (window.attachEvent){
window.attachEvent(“onload”, pagestart);
}else if (document.getElementById){
window.onload=pagestart;
}