Log In · Register

 
 
Closed TopicStart new topic
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
 
rnrn897
post Aug 4 2004, 08:09 PM
Post #2


^ moo...
*****

Group: Member
Posts: 962
Joined: Jun 2004
Member No: 25,212



did u use these?

http://www.createblog.com/forums/index.php...c=5317&hl=music
 
aznmech
post Aug 4 2004, 08:38 PM
Post #3


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
 
F1R3B4T
post Aug 4 2004, 08:44 PM
Post #4


Senior Member
******

Group: Member
Posts: 1,384
Joined: Aug 2004
Member No: 37,337



instead of doing EMBED da da da da, try putting the embed part within the <script> tag

also, remember to put the embed above the image map; that way, it loads the function b4 the function is called on.

try using the BGSOUND tag;; google it up as im not too sure of how to use it. its more IE friendly.
 
aznmech
post Aug 5 2004, 12:08 AM
Post #5


Senior Member
***

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



oh umm ok .. can u show me an example of doing it within the script or do one of mine for me so i can get the picture?
 
rnrn897
post Aug 5 2004, 12:36 AM
Post #6


^ moo...
*****

Group: Member
Posts: 962
Joined: Jun 2004
Member No: 25,212



..its jus not compatible with iamge mapping
 
aznmech
post Aug 5 2004, 01:15 AM
Post #7


Senior Member
***

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



ohh cry.gif well it worked for my first image link cry.gif
 
rnrn897
post Aug 5 2004, 11:47 AM
Post #8


^ moo...
*****

Group: Member
Posts: 962
Joined: Jun 2004
Member No: 25,212



JUST the first... :[ sorry
 

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