[img] percentage suggestion - Printable Version -Shoutbox (https://shoutbox.menthix.net) +-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58) +--- Forum: General (/forumdisplay.php?fid=11) +---- Forum: Forum & Website (/forumdisplay.php?fid=13) +----- Thread: [img] percentage suggestion (/showthread.php?tid=30599) [img] percentage suggestion by Mnjul on 08-28-2004 at 04:42 AM
RE: Test by WDZ on 08-28-2004 at 04:45 AM Can you use percentages in HTML? I've never tried... RE: Test by Mnjul on 08-28-2004 at 04:50 AM You can't (the percentages refers to the size of <img>'s parent element), but you should make it RE: Test by Chrono on 08-28-2004 at 04:50 AM go wdz go RE: Test by WDZ on 08-28-2004 at 04:56 AM But the script doesn't have access to the size of the image... RE: Test by Mnjul on 08-28-2004 at 05:00 AM
Parse the [img=xxx%] in PHP...get the size of the picture...calculate...output... RE: Test by WDZ on 08-28-2004 at 05:02 AM
O_o quote:How? RE: Test by Mnjul on 08-28-2004 at 05:26 AM http://www.php.net/manual/en/function.getimagesize.php RE: Test by WDZ on 08-28-2004 at 05:28 AM I don't like the idea of my script automatically connecting to unknown remote sites and downloading images from them... RE: Test by Mnjul on 08-28-2004 at 05:31 AM
True code:It's working under IE and FF for me Warning!! Too many steps for WDZ! RE: Test by Chrono on 08-28-2004 at 09:12 AM
quote:stop doing that RE: Test by WDZ on 08-28-2004 at 09:21 AM
That javascript, in its current format, would be quite difficult to implement. RE: Test by Mnjul on 08-28-2004 at 09:56 AM I'll think about this later on...since this is getting looked into, let's get it back F & W RE: [img] percentage suggestion by jren207 on 08-28-2004 at 03:23 PM
lol, i thought you could only use percentages for tables... |