Raised This Month: $ Target: $400
 0% 

HTML Image question


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Lee
AlliedModders Donor
Join Date: Feb 2006
Old 03-23-2008 , 14:46   Re: HTML Image question
Reply With Quote #9

I'm don't know if you have a relevant medical condition (if that's the right term), but you really should be able to divide by two in your head. I can't imagine how this would be faster for you to write, it wastes bandwidth and is dependent on Javascript being enabled. It's just not a good idea.

Anyway..

PHP Code:
<script type="text/javascript">
<!--
function 
halfImageSize()
{
    var 
images document.getElementsByTagName("img");
    
    for (
0images.lengthi++)
    {
        
images[i].width /= 2;
        
images[i].height /= 2;
    }
}
// -->
</script>

<body onLoad="halfImageSize();"> 

Last edited by Lee; 03-23-2008 at 17:57.
Lee is offline
 



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 01:04.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode