Please login or register. Welcome to the Studio, guest!


Quick Links:


newBookmarkLockedFalling

Llanilek

Llanilek Avatar
Former Elite Mod

****
Dedicated Studio Member

931


October 2005
i was making a random quote signature last night, and it took me ages to work out the coordinates of the picture for where i wanted the quote's to appear... so... i made a little code to help me..


<?
echo "X=$foo_x, Y=$foo_y";
?>

<form action='' method=post>
<input type="image" alt=' Finding coordinates of an image' src="image.gif" name="foo" style=cursor:crosshair;/>
</form>


all you have to do is change the src of the image and save it as a .php file then just open the file up and click anywhere on the image and it echo's the X and Y position of the cursor.. :)

preview

note the preview is a transparent gif so if you hold your mouse just under the X= Y= you will see the cursor change


Last Edit: Oct 28, 2005 7:20:07 GMT by Llanilek

Chris

Chris Avatar

******
Head Coder

19,519


June 2005
Heh, fun. :P

Russell

Russell Avatar

*
New Member

15


November 2006
nothing happens when i click it on my server.
i have the GD enabled is there anything else you have to enable too?

Simie

Simie Avatar

******
ProScripter

1,052


May 2006
Now that is nice. I didn't think of doing that :P I just manually make mine :P

Chris

Chris Avatar

******
Head Coder

19,519


June 2005
spectrum said:
nothing happens when i click it on my server.
i have the GD enabled is there anything else you have to enable too?


What version of PHP are you using?

Russell

Russell Avatar

*
New Member

15


November 2006
5 and i have the gd function

Andrew McGivery

Andrew McGivery Avatar
Formerly Fredy

******
Legendary Studio Member

Male
5,742


September 2005
This is more of open source than a tutorial.
k

Simie

Simie Avatar

******
ProScripter

1,052


May 2006
This is more of a 4 year old thread than an important issue


:-X

Andrew McGivery

Andrew McGivery Avatar
Formerly Fredy

******
Legendary Studio Member

Male
5,742


September 2005
I bumped it for a reason :P

But its a secret.
k

Simie

Simie Avatar

******
ProScripter

1,052


May 2006

:o



tellmetellmetellmetellme


Chris

Chris Avatar

******
Head Coder

19,519


June 2005
:P Fredy's going through all the premades and stuff and finding dead links and making sure stuff is right.

Andrew McGivery

Andrew McGivery Avatar
Formerly Fredy

******
Legendary Studio Member

Male
5,742


September 2005
no but seriously chris, move this to open source :P
k

Michael

Michael Avatar
*Has a custom title*



1,462


October 2007
Also, fix the demo! <3

Chris

Chris Avatar

******
Head Coder

19,519


June 2005
Wrighty: You can just do it yourself. :P You don't really need a preview.

Michael

Michael Avatar
*Has a custom title*



1,462


October 2007
Chris Avatar
Wrighty: You can just do it yourself. :P You don't really need a preview.


I know. But thats irrelevant. :P

newBookmarkLockedFalling