Author |
Topic |
|
Toasti
Novice
Germany
9 Posts |
Posted - 07 Jan 2007 : 16:36:19
|
Hello
I bought DHE a few days ago and I am yet addicted to it :) Unfortunately the help file is in english (and my english is not so good') I wanted to add to my site is a little clicksound when someone is moving the mouse over a button. Can anyone tell me how that would work? The "mouseover -> play " option does not work for me ...
this ist my site btw http://jazzsession-offenbach.info
Thanks to the author for this great software and sorry for my english
Toasti |
|
Waldorf
Super User
Belgium
284 Posts |
Posted - 07 Jan 2007 : 19:19:17
|
you can do it with a javascript insert, but (sadly /mostly) that wil only work in IE! http://www.hypergurl.com/mouseoversound.html
That is why I do such things, in Flash |
* "Happiness" is making -> The <- Choice! *
|
Edited by - Waldorf on 07 Jan 2007 19:38:00 |
|
|
Toasti
Novice
Germany
9 Posts |
Posted - 07 Jan 2007 : 20:01:37
|
Thanks for your answer.
The link that you posted instructs how to make a mouseover via javacall. I understand the first part ( how to preload the .wav files into the site) But how can I now make an object (hotspot in that case) play the soundfile? onMouseOver --> JavaCall ?? and then ?
thank you in advance for your help :)
Toasti |
Edited by - Toasti on 07 Jan 2007 20:02:24 |
|
|
Waldorf
Super User
Belgium
284 Posts |
Posted - 07 Jan 2007 : 20:29:23
|
something like this:[2 H:)]
</head>
<body text="#000000" bgcolor="#FFFFFF" link="#0000FF" alink="#FF0000" vlink="#800080">
<div id="ldheHotSpot1" style="position: absolute; left: 59px; top: 152px;" align="left">
<img src="blank.gif" onMouseOver="playSound(0)" onMouseOut="stopSound(0)" width="133" height="71" border="0" alt=""></div>
</body>
</html>
It can also be done within DHE, using the HSpot events I'll guess, but this is a nice Code exercise 4u But agian, I never use that cr** stuff [4 8-)]
btw: welcome to the DHE forum |
* "Happiness" is making -> The <- Choice! *
|
Edited by - Waldorf on 07 Jan 2007 21:35:59 |
|
|
s.dav
Site Admin
Italy
3364 Posts |
Posted - 08 Jan 2007 : 09:09:29
|
Just seen the sample; this seems to be the same script used in D.H.E. Copy the above script into the "Header Code" of your HTML page. Then create two events for the hotspot object; choose onMouseOver, JavaCall, "playSound(0)" to play the first wav, playSound(1) to play the second. Then add the stopSound(0) to the onMouseOut event ;-) |
Regards, Davide |
|
|
Toasti
Novice
Germany
9 Posts |
Posted - 10 Jan 2007 : 09:44:11
|
Hello,
many thanks for your help. A friend of mine convinced me better not to apply click sounds on the menubar, it would be kind of annoying... At least I now do know how it works :)
But I could need a little help with another thing. How can I get rid of the borders of a flash-object? I mean , is it possible to have a flashobject installed in background of a menubar( like a moving picture, bubbles etc.) I found that I always have to click on the flash object once before the buttons can be used. And then ,still, the flash object seems to be "interfering" with the menubar although it should be in the background. I would love any help about it.... Thank you in advance... :)
Toasti |
|
|
s.dav
Site Admin
Italy
3364 Posts |
Posted - 11 Jan 2007 : 09:05:24
|
I think this is a protection system of Internet Explorer. If you'll try with Firefox all will work. There are some scripts that permit you to fix this problem, there was a topic a lot of time ago on this forum ;-) |
Regards, Davide |
|
|
|
Topic |
|