-
1. Re: Is it possible to add a click event on an specific area of a larger png?
joel_pau Dec 17, 2012 9:21 AM (in response to resdesign)Hello,
Here is my experience: i tested canvas and area tags.
Some tests: attachments.
More about area tag.
-
3. Re: Is it possible to add a click event on an specific area of a larger png?
resdesign Dec 17, 2012 11:35 AM (in response to joel_pau)Joel,
I am wondering. If you had to make this composition, would you choose your area example or would you just use the map and add transparent squares on top of it with a click event for each one?
Here I have 54 rectangles. this is a lot of code, with 54 coords (only x1,y1,x2,y2). I changed the code to shape = rect, etc as necessary.
-
4. Re: Is it possible to add a click event on an specific area of a larger png?
heathrowe Dec 17, 2012 5:59 PM (in response to resdesign)Nice sample Joel
Darrell
-
5. Re: Is it possible to add a click event on an specific area of a larger png?
joel_pau Dec 18, 2012 5:07 AM (in response to resdesign)Well, counties shape is basic: one rectangle. So, you can use text box. Text boxes will have same class: "county".
Seeing your images: Lines #1 to #4 are identicals. Lines #6, #7, #8 are identicals. Lines #9 and #10 too. So, copy and paste.
Then, only one click event as faq files ==> attachments
And json to data counties.
-
6. Re: Is it possible to add a click event on an specific area of a larger png?
joel_pau Dec 18, 2012 9:54 AM (in response to resdesign)Here is an attempt: attached files (Texas files).
Popup comes from Schrene (old forum). I lost source link.
Note : code plus simple, on ne peut pas faire. Il reste à grouper dans une div la ligne 1 et la coller 3 fois. Soit 4x5 = 20 completed areas.
-
7. Re: Is it possible to add a click event on an specific area of a larger png?
resdesign Dec 18, 2012 10:17 AM (in response to joel_pau)I will look at your file shortly. trying to finish another project. I think I did something similar here: transparent square for each element and response on mouseover and click.
Here:
http://mjpagedesign.com/testing2/
Joel I can send you the files if you want.
-
8. Re: Is it possible to add a click event on an specific area of a larger png?
resdesign Dec 18, 2012 1:20 PM (in response to resdesign)Way cleaner, Joel! Interesting how the same thing can be made so many different ways! I did not think about using the text box cover the area of each county providing the click area. I am adding some other data too - the county seat for each county and maybe a photo.
-
9. Re: Is it possible to add a click event on an specific area of a larger png?
joel_pau Dec 19, 2012 5:25 AM (in response to resdesign)I saw your code (...edgeActions.js).
You can replace your 117x2 events in 2 events (one mouseover and one click).
You can send me your file.
-
10. Re: Is it possible to add a click event on an specific area of a larger png?
resdesign Dec 19, 2012 6:14 AM (in response to joel_pau)Are you talking about the Periodic Table?
-
11. Re: Is it possible to add a click event on an specific area of a larger png?
joel_pau Dec 19, 2012 7:51 AM (in response to resdesign)yes
-
12. Re: Is it possible to add a click event on an specific area of a larger png?
resdesign Dec 19, 2012 7:55 AM (in response to joel_pau)I P.M.ed you the files.



