Greenguy's Board


Go Back   Greenguy's Board > General Business Knowledge
Register FAQ Calendar Today's Posts

 
 
Thread Tools Search this Thread Rate Thread Display Modes
Prev Previous Post   Next Post Next
Old 2009-08-01, 03:03 AM   #21
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
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 03:54 AM.


Mark Read
Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
© Greenguy Marketing Inc