I was wondering if anybody knew about making pictures mousehover sensitive in areas, and display small windows with text or smaller images when hovered over.
I got a request from a guy at work, who wants to do some roleplay-games with the kids in the institutions nearby. For this he needs a map (which he has already drawn) to be mousesensitive in certai areas, so music or speech is played and some text is displayed whenever you hover the mouse or click the mouse on certain areas. Any ideas as to how to do this? And can I make a simple red dot that does the job when clicked?
If anyone has any sites or just ideas (or feedback about what would be cool to add) then please let me know.
Currently testing Life version 2.9 (With added second child)
(Beta testing in progress)
Chroelle wrote:I was wondering if anybody knew about making pictures mousehover sensitive in areas, and display small windows with text or smaller images when hovered over.
I got a request from a guy at work, who wants to do some roleplay-games with the kids in the institutions nearby. For this he needs a map (which he has already drawn) to be mousesensitive in certai areas, so music or speech is played and some text is displayed whenever you hover the mouse or click the mouse on certain areas. Any ideas as to how to do this? And can I make a simple red dot that does the job when clicked?
If anyone has any sites or just ideas (or feedback about what would be cool to add) then please let me know.
I guess this needs to be done in Flash(*)
(*) Not necessarily, though. You can also the the map, split it into smaller images and assign some javascript-events to different tiles. However, this is rather difficult and cumbersome approach.
Do you has what it takes to join the Homestarmy? The guts? The determination? The five bucks? Join today!
The *-part was a bit weird because it seems you left out the most important word.
I will try to do it in pure HTML with links for starter, and then I can go and play some more with it later on. Dont know a word of Flash, so I might be pretty screwed there.
Currently testing Life version 2.9 (With added second child)
(Beta testing in progress)
As it will not allow me to upload either a txt file of the code (Upload was rejected because the uploaded file was identified as a possible attack vector) , and because I cannot upload HTML files, I offer the code below here:
I have tried out some stuff, but I need to know the code for adding an image in this script. I am not at all at home with javascript.
Other than that it seems simple - just have to lock down the position of the code so I can assign it to specific points on the map without having to create new points that would mess with the look and feel of the map.
Currently testing Life version 2.9 (With added second child)
(Beta testing in progress)
And if I wanted to create a popup of say - a texted window with an image in it, would I be able to do that? And perhaps even something that could activate a soundsequence?
Like when I move over a point on the map a somewhat small pop-up appears, that has some text in it, and a picture (could of course be created by making the whole thing one picture - text and all), and a small playbutton that will start a soundsequence reading the text out loud.
Currently testing Life version 2.9 (With added second child)
(Beta testing in progress)
Between those carats, is what will display when you hover the mouse. It can be text, image, and it should be possible to code through HTML, a sound to play at load of the popup window. At least, I cannot fathom a reason why that would not work.
Without trains America Stops- Support Amtrak
Old trains never die. They just sit in ruin and wait until the day they are taken in by a skilled craftsman and rebuilt to their former glory.
Hmmmm...Ok something for me to apply myself too. Thanks a lot Raillo. This is really giving me some opportunities to do some cool stuff. Will propably return with more questions.
Currently testing Life version 2.9 (With added second child)
(Beta testing in progress)
Oh sorry, I didn't add the header, because I do alot of my coding in Frontpage to cut some shortcuts. I am going to replace Frontpage soon though with a more updated program.
Could there be an issue with the new pic being a .png and not a .jpg?
Oh and can you help me with adding musicfiles, and perhaps making it fetch a text-file (preferably .doc or .odd (open Office file format))? I would be really grateful. Even more so if you could tell me how you do, and why you do...oh and where you do. I would love to learn this but I am very visual. My life is a bit of a mess at the moment so trying to think straight without seeing is really hard.
Currently testing Life version 2.9 (With added second child)
(Beta testing in progress)