Too Cool for Internet Explorer

Doom Design Project: UAC Logo   June 7th, 2009

3 years ago, i made out of boredom (As always) a design project for Doom 3, which was realeased this time:

Read the rest of this entry »

To swap or reload a picture on the fly is easy with Javascript. Just give the img tag a unique id and execute the following command in javascript:

document.getElementById("picture").src = "/img/cool-picture.jpg";

Now comes the glitch in (guess where) Internet Explorer: If you want to reload a picture that has changed on the server (let’s say you have overwritten the picture with a php gd-lib script in the background), the Internet Explorer (i call him msie, spoken “emsy”) always keeps the cached picture instead of reloading the picture from the server like opera and firefox do.
You can fix this behaviour with a simple cache-avoiding technique: Add a random number as a parameter, as shown in the following code, that’s it.

document.getElementById("picture").src = "/img/cool-picture.jpg?r=" + Math.floor(Math.random() * 1000);

Fickmulle Meets Death   June 1st, 2009

Here is some little video project i made 2 years ago, it’s only consistent of Counter Strike Source screenshots, but it’s worth the while: