HomeHelpTrac

Changeset 13123


Ignore:
Timestamp:
11/01/09 07:37:49 (2 years ago)
Author:
Alexander Ermashev
Message:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/modules/boonex/poll/js/profile_poll.js

    r11964 r13123  
    206206        { 
    207207            var newtext = document.createTextNode( answers[loopIndex].firstChild.data );             
    208  
    209             var newdiv = $("<div></div>"); 
    210             $(newdiv).css({'top':'0px', 'position':'absolute', 'whiteSpace':'nowrap'}); 
    211             $(newdiv).attr("id", 'q_' + ID + '_' + loopIndex); 
    212  
    213             $(newdiv).bind("onmouseover", function(){ scroll_start(this,'horizontal'); } ); 
    214             $(newdiv).bind("onmouseout", function(){ scroll_stop(); } ); 
    215             $(newdiv).append(newtext); 
     208             
     209            // new 
     210            var newdiv = document.createElement( "div" ); 
     211            newdiv.style.position = "absolute"; 
     212            newdiv.style.top = "0px"; 
     213            newdiv.style.whiteSpace = "nowrap"; 
     214            newdiv.setAttribute("id", 'q_' + ID + "_" + loopIndex ); 
     215 
     216            newdiv.onmouseover = function(){ scroll_start(this,'horizontal'); }; 
     217            newdiv.onmouseout = function(){ scroll_stop(); }; 
     218            newdiv.appendChild( newtext ); 
    216219 
    217220            var newdiv2 = $("<div></div>"); 
Note: See TracChangeset for help on using the changeset viewer.