Ignore:
Timestamp:
May 10, 2011, 6:24:43 PM (13 years ago)
Author:
gbo
Message:

2.2.c fix js bug with FF4.01

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/LLGBO2/js/sweettitlesn1_comment.js

    r10453 r10838  
    4141        xCord : 0,                                                             
    4242        yCord : 0,                                                             
    43         tipElements : ['a','span','area'],
     43        tipElements : ['a','area'],
    4444        forbidenClasses : ['navThumb','markItUpButton'],       
    4545        obj : Object,                                                   
     
    7676                                                        el.setAttribute('tiptitle', tv);
    7777                                                        el.setAttribute('tipswt', sv );
    78                                                         el.setAttribute('title','');
    79                                                         el.removeAttribute('swttips');}
    80                                                 el.removeAttribute('alt');} }
     78                                                        el.removeAttribute('swttips');
     79                                                        el.removeAttribute('alt');
     80                                                        el.removeAttribute('title'); }
     81                                        }
     82}
    8183                }
    8284        },
     
    116118                swtT.Move;
    117119                var T = this.x.style;
     120                var scrX = Number(this.xCord);
     121                var scrY = Number(this.yCord);
     122                var tp = parseInt(scrY+8);
     123                var lt = parseInt(scrX+8);
     124                var D = document.documentElement;
     125                        if ( parseInt(D.clientWidth+D.scrollLeft) < parseInt(this.x.offsetWidth+lt) ) {
     126                        T.left = parseInt(lt-(this.x.offsetWidth+3))+'px';
     127                } else {
     128                        T.left = lt+'px';               }
     129                if ( parseInt(D.clientHeight+D.scrollTop) < parseInt(this.x.offsetHeight+tp) ) {
     130                        T.top = parseInt(tp-(this.x.offsetHeight+3))+'px';
     131                } else {T.top = tp+'px';                }
    118132                T.visibility = 'visible';
    119133                T.opacity = '.1';
Note: See TracChangeset for help on using the changeset viewer.