test
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • joley Friend
    #127096

    i have this script:

    <script language=”JavaScript”>

    function fullscreen()
    {
    self.moveTo(0,0);
    self.resizeTo(screen.width,screen.height);
    }

    </script>

    <div id=”divAdRight” style=”display: block; position: absolute; top: 62px; left: 800px;”>
    <table bgcolor=”#ffffff” border=”0″ cellpadding=”0″ cellspacing=”0″ width=”130″><tbody><tr><td><a hreft=”http://www.vietnam.url.vn” target=”_blank”><img src=”images/vietnam_logo.jpg” width=”147″ height=”96″ border=”0″></a></td>
    </tr></tbody></table>
    </div>

    <div id=”divAdLeft” style=”display: block; position: absolute; top: 62px; left: 62px;”>
    <table bgcolor=”#ffffff” border=”0″ cellpadding=”0″ cellspacing=”0″ width=”130″><tbody><tr><td><a href=”http://www.vietnam.url.vn” target=”_blank”><img src=”images/vietnam_logo.jpg” width=”127″ height=”93″ border=”0″></a></td>
    </tr></tbody></table>
    </div>
    <script language=”JavaScript”>

    window.onresize=ShowAdDiv;

    function FloatTopDiv()
    {
    var ns = (navigator.appName.indexOf(“Netscape”) != -1);
    if(!ns)
    {
    startLX = ((document.body.clientWidth -1230)/2) + 110 , startLY = 62;
    //startRX = ((document.body.clientWidth -770)/2) + 770 +2 , startRY = 62;
    startRX = ((document.body.clientWidth)/2) + 390 , startRY = 62;
    }
    else
    {
    startLX = ((document.body.clientWidth -1230)/2) + 95 , startLY = 62;
    startRX = ((document.body.clientWidth -770)/2) + 763 , startRY = 62;
    }
    var d = document;
    function ml(id)
    {
    var el=d.getElementById?d.getElementById(id):d.all?d.all:d.layers;
    el.sP=function(x,y){this.style.left=x;this.style.top=y;};
    el.x = startRX;
    el.y = startRY;
    return el;
    }
    function m2(id)
    {
    var e2=d.getElementById?d.getElementById(id):d.all?d.all:d.layers;
    e2.sP=function(x,y){this.style.left=x;this.style.top=y;};
    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 = 62;startRY = 62;};
    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 < 980)
    {
    objAdDivRight.style.display = “none”;
    objAdDivLeft.style.display = “none”;
    }
    else
    {
    objAdDivRight.style.display = “block”;
    objAdDivLeft.style.display = “block”;
    FloatTopDiv();
    }
    }

    ShowAdDiv();

    </script>

    + when i give this code in html ja_xenia
    +it work in
    IE but not work in firefox
    +help me please

    Hung Dinh Friend
    #243721

    Do you have a URL that we can have a look. JS errors normally happen when there is conflicts with other installed components.

Viewing 2 posts - 1 through 2 (of 2 total)

This topic contains 2 replies, has 2 voices, and was last updated by  Hung Dinh 16 years, 9 months ago.

We moved to new unified forum. Please post all new support queries in our New Forum