ÿþf u n c t i o n   s t a r t ( )   {  
       n e w   m q ( ' m 1 ' ) ;  
       n e w   m q ( ' m 2 ' ) ;  
       m q R o t a t e ( m q r ) ;   / /   m u s t   c o m e   l a s t  
 }  
 w i n d o w . o n l o a d   =   s t a r t ;  
  
 / /   C o n t i n u o u s   T e x t   M a r q u e e  
 / /   c o p y r i g h t   3 0 t h   S e p t e m b e r   2 0 0 9 b y   S t e p h e n   C h a p m a n  
 / /   h t t p : / / j a v a s c r i p t . a b o u t . c o m  
 / /   p e r m i s s i o n   t o   u s e   t h i s   J a v a s c r i p t   o n   y o u r   w e b   p a g e   i s   g r a n t e d  
 / /   p r o v i d e d   t h a t   a l l   o f   t h e   c o d e   b e l o w   i n   t h i s   s c r i p t   ( i n c l u d i n g   t h e s e  
 / /   c o m m e n t s )   i s   u s e d   w i t h o u t   a n y   a l t e r a t i o n  
 f u n c t i o n   o b j W i d t h ( o b j )   { i f ( o b j . o f f s e t W i d t h )   r e t u r n     o b j . o f f s e t W i d t h ;   i f   ( o b j . c l i p )   r e t u r n   o b j . c l i p . w i d t h ;   r e t u r n   0 ; }   v a r   m q r   =   [ ] ;   f u n c t i o n   m q ( i d ) { t h i s . m q o = d o c u m e n t . g e t E l e m e n t B y I d ( i d ) ;   v a r   w i d   =   o b j W i d t h ( t h i s . m q o . g e t E l e m e n t s B y T a g N a m e ( ' s p a n ' ) [ 0 ] ) +   5 ;   v a r   f u l w i d   =   o b j W i d t h ( t h i s . m q o ) ;   v a r   t x t   =   t h i s . m q o . g e t E l e m e n t s B y T a g N a m e ( ' s p a n ' ) [ 0 ] . i n n e r H T M L ;   t h i s . m q o . i n n e r H T M L   =   ' ' ;   v a r   h e i t   =   t h i s . m q o . s t y l e . h e i g h t ;   t h i s . m q o . o n m o u s e o u t = f u n c t i o n ( )   { m q R o t a t e ( m q r ) ; } ;   t h i s . m q o . o n m o u s e o v e r = f u n c t i o n ( )   { c l e a r T i m e o u t ( m q r [ 0 ] . T O ) ; } ;   t h i s . m q o . a r y = [ ] ;   v a r   m a x w   =   M a t h . c e i l ( f u l w i d / w i d ) + 1 ;   f o r   ( v a r   i = 0 ; i   <   m a x w ; i + + ) { t h i s . m q o . a r y [ i ] = d o c u m e n t . c r e a t e E l e m e n t ( ' d i v ' ) ;   t h i s . m q o . a r y [ i ] . i n n e r H T M L   =   t x t ;   t h i s . m q o . a r y [ i ] . s t y l e . p o s i t i o n   =   ' a b s o l u t e ' ;   t h i s . m q o . a r y [ i ] . s t y l e . l e f t   =   ( w i d * i ) + ' p x ' ;   t h i s . m q o . a r y [ i ] . s t y l e . w i d t h   =   w i d + ' p x ' ;   t h i s . m q o . a r y [ i ] . s t y l e . h e i g h t   =   h e i t ;   t h i s . m q o . a p p e n d C h i l d ( t h i s . m q o . a r y [ i ] ) ; }   m q r . p u s h ( t h i s . m q o ) ; }   f u n c t i o n   m q R o t a t e ( m q r ) { i f   ( ! m q r )   r e t u r n ;   f o r   ( v a r   j = m q r . l e n g t h   -   1 ;   j   >   - 1 ;   j - - )   { m a x a   =   m q r [ j ] . a r y . l e n g t h ;   f o r   ( v a r   i = 0 ; i < m a x a ; i + + ) { v a r   x   =   m q r [ j ] . a r y [ i ] . s t y l e ;     x . l e f t = ( p a r s e I n t ( x . l e f t , 1 0 ) - 1 ) + ' p x ' ; }   v a r   y   =   m q r [ j ] . a r y [ 0 ] . s t y l e ;   i f   ( p a r s e I n t ( y . l e f t , 1 0 ) + p a r s e I n t ( y . w i d t h , 1 0 ) < 0 )   { v a r   z   =   m q r [ j ] . a r y . s h i f t ( ) ;   z . s t y l e . l e f t   =   ( p a r s e I n t ( z . s t y l e . l e f t )   +   p a r s e I n t ( z . s t y l e . w i d t h ) * m a x a )   +   ' p x ' ;   m q r [ j ] . a r y . p u s h ( z ) ; } }   m q r [ 0 ] . T O = s e t T i m e o u t ( ' m q R o t a t e ( m q r ) ' , 1 0 ) ; } 
