ÿþ/ / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / /  
 / * S i t e   L o g o   S c r i p t   ( G e o c i t i e s   W a t e r m a r k )  
 ©   D y n a m i c   D r i v e   ( w w w . d y n a m i c d r i v e . c o m )  
 F o r   f u l l   s o u r c e   c o d e ,   i n s t a l l a t i o n   i n s t r u c t i o n s ,  
 1 0 0 ' s   m o r e   D H T M L   s c r i p t s ,   a n d   T O S ,   v i s i t   h t t p : / / w w w . d y n a m i c d r i v e . c o m /   * /  
 / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / /  
  
 / / e d i t   t h e   b e l o w   5   s t e p s  
  
 / /   1 )   s u b s t i t u t e   1 1 6   a n d   4 2   w i t h   t h e   w i d t h   a n d   h e i g h t   o f   y o u r   l o g o   i m a g e ,   r e s p e c t i v e l y  
 v a r   l o g o w i d t h = 1 4 7  
 v a r   l o g o h e i g h t = 1 4 7  
 v a r   l o g o i m a g e = n e w   I m a g e ( l o g o w i d t h , l o g o h e i g h t )  
  
 / /   2 )   c h a n g e   t h e   i m a g e   p a t h   t o   r e f l e c t   t h e   p a t h   o f   y o u r   l o g o   i m a g e  
 l o g o i m a g e . s r c = " 0 0 0 0 0 _ f i l e s / l e x l o g o . j p g "  
  
 / /   3 )   C h a n g e   u r l   b e l o w   t o   t h e   t a r g e t   U R L   o f   t h e   l o g o  
 v a r   l o g o l i n k = " h t t p : / / l i b r a r y . o s u . e d u / s i t e s / u s e r s / g a l r o n . 1 / "  
  
 / /   4 )   c h a n g e   t h e   a l t t e x t   v a r i a b l e   t o   r e f l e c t   t h e   t e x t   u s e d   f o r   t h e   " a l t "   a t t r i b u t e   o f   t h e   i m a g e   t a g  
 v a r   a l t t e x t = " ÜÕÒÕ  ÑÐÓÙÑÕê  êÞÙè  ÜÔÑ- èÓÜÞáè"  
  
 / /   5 )   F i n a l l y ,   b e l o w   v a r i a b l e   d e t e r m i n e s   t h e   d u r a t i o n   t h e   l o g o   s h o u l d   b e   v i s i b l e   a f t e r   l o a d i n g ,   i n   s e c o n d s .   I f   y o u ' d   l i k e   t h e   l o g o   t o   a p p e a r   f o r   2 0   s e c o n d s ,   f o r   e x a m p l e ,   e n t e r   2 0 .   E n t e r i n g   a   v a l u e   o f   0   c a u s e s   t h e   l o g o   t o   b e   p e r p e c t u a l l y   v i s i b l e .    
 v a r   v i s i b l e d u r a t i o n = 0  
  
 / /   O p t i o n a l   p a r a m e t e r s  
 v a r   H o f f s e t = 2 5   / / E n t e r   l o g o ' s   o f f s e t   f r o m   l e f t   e d g e   o f   w i n d o w   ( e d i t   o n l y   i f   y o u   d o n ' t   l i k e   t h e   d e f a u l t   o f f s e t )  
 v a r   V o f f s e t = 7 5   / / E n t e r   l o g o ' s   o f f s e t   f r o m   t o p   e d g e   o f   w i n d o w   ( e d i t   o n l y   i f   y o u   d o n ' t   l i k e   t h e   d e f a u l t   o f f s e t )  
  
  
 / / / / / / / / / / / / / / / / / / / / / / / / / / / D o   n o t   e d i t   b e l o w   t h i s   l i n e / / / / / / / / / / / / / / / / / / / / / / / / /  
  
 v a r   i e = d o c u m e n t . a l l & & n a v i g a t o r . u s e r A g e n t . i n d e x O f ( " O p e r a " ) = = - 1  
  
 v a r   w a t e r m a r k _ o b j = i e ?   d o c u m e n t . a l l . w a t e r m a r k l o g o   :   d o c u m e n t . g e t E l e m e n t B y I d ?   d o c u m e n t . g e t E l e m e n t B y I d ( " w a t e r m a r k l o g o " )   :   d o c u m e n t . w a t e r m a r k l o g o  
  
 f u n c t i o n   i n s e r t i m a g e ( ) {  
 i f   ( i e | | d o c u m e n t . g e t E l e m e n t B y I d )  
 w a t e r m a r k _ o b j . i n n e r H T M L = ' < a   h r e f = " ' + l o g o l i n k + ' " > < i m g   s r c = " ' + l o g o i m a g e . s r c + ' "   w i d t h = " ' + l o g o w i d t h + ' "   h e i g h t = " ' + l o g o h e i g h t + ' "   b o r d e r = 0   a l t = " ' + a l t t e x t + ' " > < / a > '  
 e l s e   i f   ( d o c u m e n t . l a y e r s ) {  
 w a t e r m a r k _ o b j . d o c u m e n t . w r i t e ( ' < a   h r e f = " ' + l o g o l i n k + ' " > < i m g   s r c = " ' + l o g o i m a g e . s r c + ' "   w i d t h = " ' + l o g o w i d t h + ' "   h e i g h t = " ' + l o g o h e i g h t + ' "   b o r d e r = 0   a l t = " ' + a l t t e x t + ' " > < / a > ' )  
 w a t e r m a r k _ o b j . d o c u m e n t . c l o s e ( )  
 }  
 }  
  
 f u n c t i o n   p o s i t i o n i t ( ) {  
 v a r   d s o c l e f t = i e ?   d o c u m e n t . b o d y . s c r o l l L e f t   :   p a g e X O f f s e t  
 v a r   d s o c t o p = i e ?   d o c u m e n t . b o d y . s c r o l l T o p   :   p a g e Y O f f s e t  
  
 i f   ( i e | | d o c u m e n t . g e t E l e m e n t B y I d ) {  
 w a t e r m a r k _ o b j . s t y l e . l e f t = p a r s e I n t ( d s o c l e f t ) + 5 + H o f f s e t  
 w a t e r m a r k _ o b j . s t y l e . t o p = p a r s e I n t ( d s o c t o p ) + 5 + V o f f s e t  
 }  
 e l s e   i f   ( d o c u m e n t . l a y e r s ) {  
 w a t e r m a r k _ o b j . l e f t = d s o c l e f t + 5 + H o f f s e t  
 w a t e r m a r k _ o b j . t o p = d s o c t o p + 5 + V o f f s e t  
 }  
 }  
  
 f u n c t i o n   h i d e w a t e r m a r k ( ) {  
 i f   ( d o c u m e n t . l a y e r s )  
 w a t e r m a r k _ o b j . v i s i b i l i t y = " h i d e "  
 e l s e  
 w a t e r m a r k _ o b j . s t y l e . v i s i b i l i t y = " h i d d e n "  
 c l e a r I n t e r v a l ( w a t e r m a r k i n t e r v a l )  
 }  
  
 f u n c t i o n   b e i n g w a t e r m a r k ( ) {  
 w a t e r m a r k i n t e r v a l = s e t I n t e r v a l ( " p o s i t i o n i t ( ) " , 5 0 )  
 i n s e r t i m a g e ( )  
 i f   ( v i s i b l e d u r a t i o n ! = 0 )  
 s e t T i m e o u t ( " h i d e w a t e r m a r k ( ) " , v i s i b l e d u r a t i o n * 1 0 0 0 )  
 }  
  
 i f   ( i e | | d o c u m e n t . g e t E l e m e n t B y I d | | d o c u m e n t . l a y e r s )  
 w i n d o w . o n l o a d = b e i n g w a t e r m a r k  
  
 
