Reborn Code Freaks
RCF Group
rcf-group.com
 
HeadQuarters

Download SectionHelp: Download Section

In our download section you can find 23 programs available for download, total of 80 version files. Newest update was for Sunflower to version 0.1a-42.1, uploaded on 15.04.2012. by MeanEYE.

All files are free for download and available to the public.

ShoutboxHelp: Shoutbox

Latest shout:
MeanEYE
06:33:04 15.12.2010.
IE Image size problem

If you are using image.onLoad event, you've probably realized by now that IE doesn't like to play by the rules. Well, after wasting another few hours of my life (thanks Microsoft!) I wanted to share my findings with everyone.

Let's say that following function is your onLoad event handler:
function image_OnLoad() {
var width = this.width;
var height = this.height;

// do something with image size
}

You probably noticed that this code works in every browser except IE. In IE it works only in 10% of the cases or something like that. Well, solution is simple and far from obvious.
function image_OnLoad() {
var temp = new Image();
temp.src = this.src;

var width = temp.width;
var height = temp.height;

// do something with image size
}

This will get you the right image size in onLoad event.
Other headlines:
MeanEYE Moving away...
MeanEYE New tutorials web site
MeanEYE Speeding up the development
AchillesB MIPS Big-endian Android published