View Single Post
Old 2009-08-01, 03:03 AM   #30
Bluey
A woman is like beer. They look good, they smell good, and you'd step over your own mother just to get one!
 
Bluey's Avatar
 
Join Date: Nov 2006
Location: Australia.
Posts: 53
Send a message via ICQ to Bluey
The zoo used to have something like this .js in the forum <head> for over sized images i think, to keep things tidy.

PHP Code:
<!-- Resize images-->
<
scr11111pt type="text/javascript"
    function 
resizeImages() { 
      if (
document.images) { 
        var 
mw 700
        var 
mh 8000
        for (var 
ii 0ii document.images.lengthii++) { 
          var 
document.images[ii]; 
          var 
iw i.width
          var 
ih i.height
          if (
ih iw && ih mh) { 
            
i.style.height mh 'px'
          } else if (
iw mw) { 
            
i.style.width mw 'px'
          } 
        } 
      } 
    } 
    if (
window.addEventListener) { 
      
window.addEventListener('load'resizeImagesfalse); 
    } else if (
window.attachEvent) { 
      
window.attachEvent('onload'resizeImages); 
    } else { 
      
window.onload resizeImages
    } 
//--> 
</scr1111pt>
<!--/ 
Resize images--> 
Have replace the i with 11111 in the start and end script type= and script.
__________________
Be nice to people on your way up because you meet them on your way down.
Bluey is offline   Reply With Quote