0

I have a picture generated with GDLib. In this picture gdlib adds some gif dots in various locations, according to database data.

Now i would like to somehow identify these dots with javascript and make a simple fadein/fadeout function for these dots.

However since its being done with gdlib, i assume the images is interpreted as being just 1 image, and therefore i cannot idetify these dots with JS.

So my question is which technique i should use for this ?

Thanks

2
  • 1
    simple solution: send 2 pictures - one with dots, one without. Combining javascript (clientside!) and php (server) -> cold shivers up'n down my spine. and yes, ajax.... Commented Mar 14, 2013 at 13:21
  • I'd probably just draw everything with canvas instead. Edit: Or, like Bart suggests, "draw" everything with HTML elements (one wrapping div and a bunch of spans for the dots should do it) Commented Mar 14, 2013 at 13:25

1 Answer 1

1

Take a picture of a dot and use absolute positioning to put it over the image.

Sign up to request clarification or add additional context in comments.

1 Comment

Was hoping there was another solution, as i would have to create up to thousands of spans or divs, in order to make it work. But seems this is the way to go. Thank you

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.