|
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.. previewnote 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
|
|
|
|
|
Heh, fun.
|
|
|
|
|
nothing happens when i click it on my server. i have the GD enabled is there anything else you have to enable too?
|
|
|
|
|
Now that is nice. I didn't think of doing that I just manually make mine
|
|
|
|
|
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?
|
|
|
|
|
5 and i have the gd function
|
|
|
|
|
This is more of open source than a tutorial.
|
k
|
|
|
|
This is more of a 4 year old thread than an important issue
|
|
|
|
|
I bumped it for a reason But its a secret.
|
k
|
|
|
|
tellmetellmetellmetellme
|
|
|
|
|
Fredy's going through all the premades and stuff and finding dead links and making sure stuff is right.
|
|
|
|
|
no but seriously chris, move this to open source
|
k
|
|
|
|
|
Wrighty: You can just do it yourself. You don't really need a preview.
|
|
|
|
|
Wrighty: You can just do it yourself. You don't really need a preview. I know. But thats irrelevant.
|
|
|