The new forums will be named Coin Return (based on the most recent vote)! You can check on the status and timeline of the transition to the new forums here.
The Guiding Principles and New Rules document is now in effect.
I'm trying to create a map that will display a text box with a few lines of information whenever you mouseover a few key locations (let's say, as an example, that there are ten designated areas that each need to display their own text boxes). To elaborate, this is one base image, with multiple mouseovers. What would be the best way for me to go about this? Using Flash 8, the only way I could achieve this effect (that I can find) would be to split up my large image into many smaller images, link those to mouseover effects, and somehow stitch the whole thing back together.
You could do this pretty easily with jQuery, which is pretty simple to pick up. You'd need to wrap the specific sections in div's or span's or whatever you like, and then use the hover function to figure out when to display the text boxes.
You might be able to do this with just straight up Javascript but jQuery is the only time I meddle with that stuff.
I'll try that as a last resort, but it seems like a lot of work to solve such a simple problem. I'm already very close to solving it in Flash 8.
littwentythree on
0
Seguerof the VoidSydney, AustraliaRegistered Userregular
edited October 2008
It shouldn't really be that much trouble to do it in jQuery. Use the image as an image map and hook the events to the areas in the image map. I've never tried this myself, but it should be as simple as
You could do it in Flash by just placing transparent movie clips with rollover events over the different areas of your image. That way you don't need to chop your image up.
But really, a javascript solution would probably be substantially better. It is a simple problem. Using Flash in a real-world situation to solve it is overkill. You should only ever resort to Flash when there are absolutely no other options available to you.
Image Maps using alt tags on each region might work?
Yeah, no need to get fancy. This can be done in plain old HTML 1.0. In fact, that linked page has an example of exactly what you're trying to do, with code and everything.
Not sure if it's browser-dependent, but alt text boxes have always popped up for me in less than a second. Maybe I misunderstood what you meant by "immediate". Anyway, I'm glad you got it working.
Posts
You might be able to do this with just straight up Javascript but jQuery is the only time I meddle with that stuff.
Check out the documentation at http://docs.jquery.com/Tutorials:Getting_Started_with_jQuery
NOTE: I have no idea if that will work
But really, a javascript solution would probably be substantially better. It is a simple problem. Using Flash in a real-world situation to solve it is overkill. You should only ever resort to Flash when there are absolutely no other options available to you.
Try here
Image Maps using alt tags on each region might work?
Yeah, no need to get fancy. This can be done in plain old HTML 1.0. In fact, that linked page has an example of exactly what you're trying to do, with code and everything.
They do not exactly appeal to my desire to keep content, styling and behaviour separate, I guess.
Here's an elegant solution using CSS - http://www.frankmanno.com/ideas/css-imagemap/
When you disable CSS, the descriptions appear as a list below the image, like a diagram key. Much nicer IMO.
And I appreciate the help, but there indeed was a "need to get fancy", as I said before I needed the effect to be immediate