What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » General » Forum & Website » [img] percentage suggestion

Pages: (2): « First [ 1 ] 2 » Last »
[img] percentage suggestion
Author: Message:
Mnjul
forum super mod
******

Avatar
plz wub me

Posts: 5396
Reputation: 58
– / Other / Flag
Joined: Nov 2002
Status: Away
O.P. [img] percentage suggestion
UUDizzy is lazy.

[Image: attachment.php?pid=298528]


Well, DZ, would you add "percentage" to [img] so that we can use [img=40%]?

.png File Attachment: MsgPlus_WDZGivingRep.png (2.18 KB)
This file has been downloaded 152 time(s).

This post was edited on 08-28-2004 at 09:57 AM by Mnjul.
08-28-2004 04:42 AM
Profile PM Web Find Quote Report
WDZ
Former Admin
*****

Avatar

Posts: 7106
Reputation: 107
– / Male / Flag
Joined: Mar 2002
RE: Test
Can you use percentages in HTML? :-/ I've never tried...
08-28-2004 04:45 AM
Profile PM Web Find Quote Report
Mnjul
forum super mod
******

Avatar
plz wub me

Posts: 5396
Reputation: 58
– / Other / Flag
Joined: Nov 2002
Status: Away
O.P. RE: Test
You can't (the percentages refers to the size of <img>'s parent element), but you should make it :refuck:

This post was edited on 08-28-2004 at 04:52 AM by Mnjul.
08-28-2004 04:50 AM
Profile PM Web Find Quote Report
Chrono
forum admin
*******

Avatar
;o

Posts: 6022
Reputation: 116
39 / Male / Flag
Joined: Apr 2002
Status: Away
RE: Test
go wdz go :banana:
[Image: wdz_discrate.png]
08-28-2004 04:50 AM
Profile PM Web Find Quote Report
WDZ
Former Admin
*****

Avatar

Posts: 7106
Reputation: 107
– / Male / Flag
Joined: Mar 2002
RE: Test
But the script doesn't have access to the size of the image... :p
08-28-2004 04:56 AM
Profile PM Web Find Quote Report
Mnjul
forum super mod
******

Avatar
plz wub me

Posts: 5396
Reputation: 58
– / Other / Flag
Joined: Nov 2002
Status: Away
O.P. RE: Test
Parse the [img=xxx%] in PHP...get the size of the picture...calculate...output... :p

Warning! Too many steps for WDZ!

This post was edited on 08-28-2004 at 05:01 AM by Mnjul.
08-28-2004 05:00 AM
Profile PM Web Find Quote Report
WDZ
Former Admin
*****

Avatar

Posts: 7106
Reputation: 107
– / Male / Flag
Joined: Mar 2002
RE: Test
O_o

quote:
Originally posted by Mnjul
get the size of the picture
How? :refuck:
08-28-2004 05:02 AM
Profile PM Web Find Quote Report
Mnjul
forum super mod
******

Avatar
plz wub me

Posts: 5396
Reputation: 58
– / Other / Flag
Joined: Nov 2002
Status: Away
O.P. RE: Test
http://www.php.net/manual/en/function.getimagesize.php

This post was edited on 08-28-2004 at 05:26 AM by Mnjul.
08-28-2004 05:26 AM
Profile PM Web Find Quote Report
WDZ
Former Admin
*****

Avatar

Posts: 7106
Reputation: 107
– / Male / Flag
Joined: Mar 2002
RE: Test
I don't like the idea of my script automatically connecting to unknown remote sites and downloading images from them... :dodgy:
08-28-2004 05:28 AM
Profile PM Web Find Quote Report
Mnjul
forum super mod
******

Avatar
plz wub me

Posts: 5396
Reputation: 58
– / Other / Flag
Joined: Nov 2002
Status: Away
O.P. RE: Test
True :chrongue:


Well, you can load the image, and then use javascript to get the size, and then resize it :chrongue:
code:
<script language="javascript">
var iper=0.2;
var iwidth=document.getElementById("blah").width;
document.getElementById("blah").width=iwidth*iper;
</script>

It's working under IE and FF for me :chrongue:
Warning!! Too many steps for WDZ!

This post was edited on 08-28-2004 at 05:45 AM by Mnjul.
08-28-2004 05:31 AM
Profile PM Web Find Quote Report
Pages: (2): « First [ 1 ] 2 » Last »
« Next Oldest Return to Top Next Newest »


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On