Log In · Register

 
sounds on mouseover, using image mapping
aznmech
post Aug 4 2004, 07:56 PM
Post #1


Senior Member
***

Group: Member
Posts: 63
Joined: Aug 2004
Member No: 36,605



anybody know a script for sound on mouseover over an image map? .. like for instance, you hover over a link that is made by image mapping and it plays a sound .. i know theres a script for image mapping and script for sound on mouseover, but none put together .. i tried to do it myself but i was only successful when i did it with one image map .. after 2 or more it failed .. any help?

thnx
 
 
Start new topic
Replies
aznmech
post Aug 4 2004, 08:38 PM
Post #2


Senior Member
***

Group: Member
Posts: 63
Joined: Aug 2004
Member No: 36,605



yes thats the one i was using, trying to put that with an image map .. heres what i did:

i put this along with the image map:

<IMG SRC='http://www.boomspeed.com/m41carbiner/xanga_badtzmaru.PNG' border=0 width=692 height=495

USEMAP='#imgmap'>
<MAP NAME='imgmap'>
<a href="http://www.xanga.com" onMouseover="playXanga()"><AREA SHAPE='rect' COORDS='292, 58, 332, 45' HREF='http://www.xanga.com'
ALT='Xanga Home'></A>
<a href="http://xanga.com/claf" onMouseover="playClaf()"><AREA SHAPE='rect' COORDS='370, 58, 401, 45' HREF='http://xanga.com/claf'
ALT='Look and Feel'></A>
<a href="http://www.xanga.com/Private/SubscribeTo
.aspx?user=aznpnoywrd" onMouseover="playAddme()">
<AREA SHAPE='rect' COORDS='431, 58, 478, 45' HREF='http://www.xanga.com/Private/SubscribeTo
.aspx?user=aznpnoywrd' ALT='Add Me'></A>
<a href="http://xanga.com/private/home.aspx" onMouseover="playYours()"><AREA SHAPE='rect' COORDS='517, 59, 560, 45' HREF='http://xanga.com/private/home.aspx'
ALT='your xanga'></A>
<a href="http://www.xanga.com/logout.aspx" onMouseover="playLeave()"><AREA SHAPE='rect' COORDS='600, 58, 639, 45' HREF='http://www.xanga.com/logout.aspx' ALT=
'Log Out'></A>
</MAP>

and then this at the end of the customize header:


<EMBED SRC="http://www.freehomepages.com/aznmech/voice_xanga.wav" autostart="false" hidden="true">
<script language="JavaScript">
<!--
function playXanga()
{
if (document.all)
{
document.all.sound.src = "http://www.freehomepages.com/aznmech/voice_xanga.wav";
}
}
//-->
</script>
<bgsound id="sound">

<EMBED SRC="http://www.freehomepages.com/aznmech/voice_claf.wav" autostart="false" hidden="true">
<script language="JavaScript">
<!--
function playClaf()
{
if (document.all)
{
document.all.sound.src = "http://www.freehomepages.com/aznmech/voice_claf.wav";
}
}
//-->
</script>
<bgsound id="sound">

<EMBED SRC="http://www.freehomepages.com/aznmech/voice_addme.wav" hidden="true">
<script language="JavaScript">
<!--
function playAddme()
{
if (document.all)
{
document.all.sound.src = "http://www.freehomepages.com/aznmech/voice_addme.wav";
}
}
//-->
</script>
<bgsound id="sound">

<EMBED SRC="http://www.freehomepages.com/aznmech/voice_yourxanga.wav" hidden="true">
<script language="JavaScript">
<!--
function playYours()
{
if (document.all)
{
document.all.sound.src = "http://www.freehomepages.com/aznmech/voice_yourxanga.wav";
}
}
//-->
</script>
<bgsound id="sound">

<EMBED SRC="http://www.freehomepages.com/aznmech/voice_leave.wav" autostart="false" hidden="true">
<script language="JavaScript">
<!--
function playLeave()
{
if (document.all)
{
document.all.sound.src = "http://www.freehomepages.com/aznmech/voice_leave.wav";
}
}
//-->
</script>
<bgsound id="sound">



and then everythjng messes after the 2nd image map, they just dont work at all .. i tried the best of my script/html knowledge to do it myself but i dunno
 

Posts in this topic


Closed TopicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members: