Jump to content

Resizing Images & Stuff


yarub

Recommended Posts

Bah... it's still not working.

I'm looking for a way to make it so a link to a picture is auto-resized if it's wider than 175 pixels. At the same time, if it's smaller than 175 pixels, it will not resize at all.

Can anyone help?

[code]<img src='$row[profileimage]' onload='if(largerThan(this.width,175)) {this.width=175;this.alt=Click for a large version.;}' onmouseover='if(this.alt) this.style.cursor='pointer' onclick='if(this.alt) window.open('$row[profileimage]')' border='0' />[/code]Does not work. >_<;
Link to comment
https://forums.phpfreaks.com/topic/11684-resizing-images-stuff/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.