Aaron1 |
01-19-2004 01:11 PM |
I was just thinking, if you can automatically add this onload function below in the IMG tag, the resizing of the imageswill crossbrowser friendly.
Quote:
<img src="http://www.vbulletin.org/layout/header.gif" OnLoad='if(this.width > 580 || this.height > 435) if((this.width / this.height) > (580/435)) {this.width=580} else {this.height=435}'>
|
Where 580 is the maximum width the picture will appear, the only thing it lacks is the link to the pop-up with the original picture..
Can somebody try to get this working properly pehaps? I am not a script wizard :(
|