Topic: changing image src using dom  | 
  |
|---|---|
| Author | Thread | 
| 
       Nervous Wreck (II) Inmate From:   | 
    
       
       
  posted 10-27-2004 21:49
         
      If I have an image with the id imageLine, then is the correct way to change its source code: document.images.imageLine.src = 'new/source'; ?   | 
  
| 
       Paranoid (IV) Inmate From: France  | 
    
       
       
  posted 10-27-2004 22:25
         
      
     | 
  
| 
       Nervous Wreck (II) Inmate From:   | 
    
       
       
  posted 10-28-2004 00:51
         
      Now it doesn't work at all (when I click the button, I get a javascript error)  quote: In FireFox 1.0 with either method I get quote: If I use firefox's DOM inspector, and search for "imageLine" it finds it... code: <script type="text/javascript">  | 
  
| 
       Paranoid (IV) Inmate From: France  | 
    
       
       
  posted 10-28-2004 01:23
         
      
     |