Ignore:
Timestamp:
10/31/05 05:33:41 (14 years ago)
Author:
mokhet
Message:

more ; fixed (a few were missing, a lot were used with no reason) for ticket #385

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/plugins/InsertPicture/viewpicture.html

    r304 r419  
    66<!-- 
    77function imgWait() { 
    8         waiting = window.setInterval("imgIsLoaded()", 1000) 
     8        waiting = window.setInterval("imgIsLoaded()", 1000); 
    99} 
    1010function imgIsLoaded() { 
    1111        if(document.getElementById("myImg").width > 0) { 
    12           window.clearInterval(waiting) 
    13           imgShowWidth() 
     12          window.clearInterval(waiting); 
     13          imgShowWidth(); 
    1414        } 
    1515} 
    1616function imgShowWidth() { 
    17         var width    = document.getElementById("myImg").width 
    18         var height   = document.getElementById("myImg").height 
     17        var width    = document.getElementById("myImg").width; 
     18        var height   = document.getElementById("myImg").height; 
    1919        if(width > 120) { 
    2020          var dx = (120 / width); 
     
    2424          width  = width * ratio; 
    2525          height = height * ratio; 
    26           document.getElementById("myImg").width  = width 
    27           document.getElementById("myImg").height = height 
     26          document.getElementById("myImg").width  = width; 
     27          document.getElementById("myImg").height = height; 
    2828        } 
    29         document.getElementById("myImg").style.visibility = 'visible' 
     29        document.getElementById("myImg").style.visibility = 'visible'; 
    3030} 
    3131function showPreview() { 
    3232        img = document.location.toString().split("?"); 
    3333    document.getElementById("myImg").src = img[1]; 
    34         img.onLoad = imgWait() 
     34        img.onLoad = imgWait(); 
    3535} 
    3636//--> 
     
    4040<img id="myImg" src="" Style="visibility:hidden"> 
    4141<script language="JavaScript" type="text/javascript"> 
    42   showPreview() 
     42  showPreview(); 
    4343</script> 
    4444 
Note: See TracChangeset for help on using the changeset viewer.