Edgewall Software

Changes between Version 24 and Version 25 of TracInterfaceCustomization


Ignore:
Timestamp:
Feb 19, 2006, 9:44:27 PM (14 years ago)
Author:
Pedro Algarvio <ufs@…>
Comment:

Corrected the floating/moving GoogleAds javascript.

Legend:

Unmodified
Added
Removed
Modified
  • TracInterfaceCustomization

    v24 v25  
    155155        YOU WOULD PASTE IT HERE
    156156
     157
    157158        <!--- End of Google Ad Code -->
    158159</div>
     
    167168        <!--- End of Google Ad Code -->
    168169</div>
    169 <script type="text/javascript" language="JavaScript">
    170 <!--
    171      *********************************************************
     170
     171<!-- *********************************************************************
    172172     * You may use this code for free on any web page provided that
    173173     * these comment lines and the following credit remain in the code.
    174      * BottomLeft Floating Div from http://www.javascript-fx.com
    175      ********************************************************
    176         Modified to be on top right by Pedro Algarvio, not that much
    177         of trouble doin't it so all credits go to:
    178         http://www.javascript-fx.com
    179 -->
     174     * From http://www.javascript-fx.com
     175     ****************************************************************  -->
     176<script type="text/javascript">
     177<!--
    180178function JSFX_FloatTopRight()
    181179{
     
    195193        {
    196194                var pY = ns ? pageYOffset : document.documentElement && document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop;
    197                 ftlObj.y += (pY + startY - ftlObj.y)/8;
     195                var dY = (pY > startY) ? pY : startY;
     196                ftlObj.y += (dY - ftlObj.y)/8;
    198197                ftlObj.sP(ftlObj.x, ftlObj.y);
    199198                setTimeout("stayTopRight()", 40);
    200199        }
    201         ftlObj = ml("ads");
     200        ftlObj = ml("right");
    202201        stayTopRight();
    203202}
    204203JSFX_FloatTopRight();
     204//-->
    205205</script>
    206206}}}