Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
If we do not hit our goal we will be forced to close the site.

Current status: https://keepboardsalive.com/

Annual subs are best for most impact. If you are still undecided on going Ad Free - you can also donate using the Paypal Donate option. All contribution helps. Thank you.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.

new challenge

  • 08-11-2011 12:01AM
    #1
    Registered Users, Registered Users 2 Posts: 53 ✭✭


    hi guys, i'm looking for a bit of advice.

    How complicated is it to write something up which would take an image such as the following:

    Target_image.gif

    and allow me to click on any part of it with the following results:

    1) a 'score' is generated from where I clicked; and
    2) a 'mark' is recorded at the location where I clicked.

    Is this very hard to do in a web based environment? I'm looking for a new challenge and thought this might be interesting to do.


Comments

  • Registered Users, Registered Users 2 Posts: 12,025 ✭✭✭✭Giblet


    selana wrote: »
    hi guys, i'm looking for a bit of advice.

    How complicated is it to write something up which would take an image such as the following:

    Target_image.gif

    and allow me to click on any part of it with the following results:

    1) a 'score' is generated from where I clicked; and
    2) a 'mark' is recorded at the location where I clicked.

    Is this very hard to do in a web based environment? I'm looking for a new challenge and thought this might be interesting to do.

    Doing simple distance calculations on a vector, and also placing a marker on a absolute (or relative depending on the context) point is quite trivial, but do you need to do this in HTML? A desktop app?


  • Registered Users, Registered Users 2 Posts: 53 ✭✭selana


    something nested in a php page would be ideal.


  • Registered Users, Registered Users 2 Posts: 12,025 ✭✭✭✭Giblet


    selana wrote: »
    something nested in a php page would be ideal.

    I have a nice html solution for this, but will post it tomorrow.


  • Registered Users, Registered Users 2 Posts: 53 ✭✭selana


    Thanks Giblet.

    I presume its straightforward enough then to pick up the 'score' and 'mark' into a php variable?


  • Registered Users, Registered Users 2 Posts: 12,025 ✭✭✭✭Giblet


    http://www.mediafire.com/?iaj44194c7gwlmm

    Draw a circle around the area you want to target. Could make it draw a shape on click too if you wanted.
    Some javascript hooks there to get your values. (Could be posted or whatever)

    Works on Iphone too ;)


  • Advertisement
  • Registered Users, Registered Users 2 Posts: 53 ✭✭selana


    thanks!!


Advertisement