Created
          September 3, 2013 05:39 
        
      - 
      
- 
        Save steppefox/6420064 to your computer and use it in GitHub Desktop. 
    dinamic loading images in js
  
        
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | //ДИНАМИЧЕСКА ЗАГРУЗКА ИЗОБРАЖЕНИЙ, чаще всего применяется для ajax слайдеров | |
| var image_name = '/path_to_image/'; | |
| var new_image = new Image(); | |
| new_image.onload = function(){ | |
| } | |
| new_image.src=image_name; | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment