|
|
#10 (permalink) |
|
Senior Member
Super #1
Joined in Nov 2003
Lives in New Hampshire
1,182 posts
Gave thanks: 3
Thanked 22 times
|
Cache the image. That snippet of code adds just about 1% load to the server, and gives you about 100% compatibility with all browsers that render html correctly. Javascript can gracefully bow out when you program it correctly to, but what you didn't mention is that if it DOES bow out because javascript is turned off, you also don't get the benefit of it's fruit.
Also iexplorer's rendering engine reisizes images grainily. phpcopyresampled looks niiiice
__________________
The Coding Blog - Follow along as we discover and discuss everything it takes to code an entire website, start to finish! [Latest Entry: 4/4/08 - Starting a Website] Last edited by FredFredrickson; September 7th, 2007 at 5:11 PM. |
|
|
|
|
|
#11 (permalink) | |
|
after g, before i
Resident.
Joined in Jul 2004
Hosted on Gojira
8,027 posts
Gave thanks: 48
Thanked 129 times
|
You're failing to get my main point here... The PHP version uses JavaScript too. I was merely stating that since he's using JavaScript to begin with, why bother taxing the server?
Quote:
I'm not sure what IE's resizing has to do with anything. Honestly, you've been intelligent on this forum except this thread. I don't quite understand why... |
|
|
|
|
|
|
#12 (permalink) |
|
Senior Member
Super #1
Joined in Nov 2003
Lives in New Hampshire
1,182 posts
Gave thanks: 3
Thanked 22 times
|
oh. honestly i didn't even read it. I just saw a php vs javascript option. if the php version uses javascript too, then then choice is clear.
__________________
The Coding Blog - Follow along as we discover and discuss everything it takes to code an entire website, start to finish! [Latest Entry: 4/4/08 - Starting a Website] |
|
|
|
|
|
#14 (permalink) |
|
Senior Member
Super #1
Joined in Nov 2003
Lives in New Hampshire
1,182 posts
Gave thanks: 3
Thanked 22 times
|
yeah I'm just being stupid. Because resolution information is regularly sent to php in the header information.. oh wait no it's not. crap.
__________________
The Coding Blog - Follow along as we discover and discuss everything it takes to code an entire website, start to finish! [Latest Entry: 4/4/08 - Starting a Website] |
|
|
|