Java script on off switch issue in IE, Please help

Hello;
I wrote this little script that is an on / off switch for a background sound on my web page. I have it working in all browsers accept all versions of IE. I have been pulling my hair out for weeks trying to get this script to work in IE and have only met failure. There has to be a way to get this thing to fire properly and I just can't figure out what I am missing.You can take this script, add your own sound and see how it works. It is very simple.
code:
<head>
<script type="text/javascript">
function stopSound(){
document.getElementById('PacSound').src='../video/silence.wav';}
function playSound() {
document.getElementById('PacSound').src='../video/RollerPop.wav'; }
</script>
</head>
<body>
<embed src="../video/RollerPop.wav" id="PacSound" autostart=true loop=true volume=100  hidden=true>
<noembed><bgsound src="../video/RollerPop.wav" loop="-1" volume="100" delay="0" id="PacSound" hidden="true"/></noembed>
<!--- the links --->
<a href="javascript:stopSound();" >Stop Sound</a><br />
<br />
<br />
<a href="javascript:playSound();" >play sound</a>
</body>
I am so frustrated with this. I have tried a number of different approaches to this code and I always meet failure. I am trying to make it work so the page does not re-load it's self, just turns it on and or off.
Can anyone please help me figure this out?
Thank You

I suggest a search on the Internet for Microsoft and Javascript. Be as specific as you can and you might turn up a page or resource that shows what Microsoft supports.
Beth

Similar Messages

  • Java script error!!!?? please help me...

    Hi eveyone,
    I'm not able to access many websites in my system. and m not able to login to some of d sites. Is this bcoz my system is displaying "java script error". how can I fix it? whether I need to download something? If s guide me in detail as I have no computer knowledge.
    Im in a hurry. pl help me...

    gayathri_bna wrote:
    Im in a hurry. As a suggestion...find someone locally and pay them to fix your computer.
    This site is for programming java not for fixing computers.

  • My Ipad 2 does not turn on when not plugged to electricity. Even when plugged to electricity, it constantly restarts/switches itself off. what is the problem, please help??

    My Ipad 2 does not turn on when not plugged to electricity. Even when plugged to electricity, it constantly restarts/switches itself off. what is the problem, please help??

    i plugged it and pressed the home button for a few seconds. the connect to itunes screen appeared and the moment i disconnect the cable from the electric plug, it switches off. when i connect the cable to the PC, nothing happens, its as if nothing has been done.

  • My iphone in the evening yesterday vibrated continuously and went off am charging is not charging the phone is not switching on again. Please help me

    My iphone in the evening yesterday vibrated continuously and went off am charging is not charging the phone is not switching on again. Please help me

    well in thatcase, i need another help .
    thanks for your instant reply.
    i have currently bought a new laptop (windows 8) and my iphone is not being recognized by itunes.
    because i have no backup on my previous laptop, i downloaded touchcopy but even touch copy is not recognizing my iphone.

  • HT1477 When i disconnect my iPod 2nd Gen from my laptop, its display turns off and working freezes. Please help me.

    When i disconnect my iPod 2nd Gen from my laptop, its display goes off and working freezes. Please help me.

    The computer freezes?  There may be something wrong with the USB port.  If the laptop has more than one port, does this happen on any port?  If you are disconnecting the shuffle cable from the computer, does it make any difference if you disconnect the shuffle at the other end of the cable first, then disconnect the cable from computer?  Or if you currently disconnect the shuffle from cable first, try it the other way.
    You may be able to work around this problem, if you get a self-powered USB hub.  Something like this one
    http://eshop.macsales.com/item/NewerTech/USB2HB7PRO/
    There are many choices, but be sure to get one that has its own power supply.  You can leave the shuffle cable connected to the hub, and connect the shuffle to the hub, instead of directly to the computer.  This may provide a "buffer" for whatever is causing your laptop to shut off when the shuffle is disconnected.  Since the hub has its own power supply, it will not rely on the computer for power to re-charge the battery.

  • My laptop won't turn on. It's been hours and all it's showing is a white screen with the apple sign and the loading circle. I've tried turning it on and off, nothing's working. Please help!

    My laptop won't turn on. It's been hours and all it's showing is a white screen with the apple sign and the loading circle. I've tried turning it on and off, nothing's working. Please help!

    Will it boot up in safe mode?
    http://support.apple.com/kb/ph11212
    or can you enter single-user mode?
    https://support.apple.com/kb/ht1492
    What version of OSX are you running?

  • I need help!!! Did my iOS 6 update today, thought it was fine!! Then my friend text me and instead of saying Siobhain it says voicemail text message!! I've tried deleting her and adding her again, turning phone off etc etc!! Please help!!

    I need help!!! Did my iOS 6 update today, thought it was fine!! Then my friend text me and instead of saying Siobhain it says voicemail text message!! I've tried deleting her and adding her again, turning phone off etc etc!! Please help!!

    I know of no way to remove encryption on iTunes backups if you've forgotton the password.  If you've used the 4 digit PIN code to lock your iPhone in the past that can sometimes default as your "password" for this encryption in iTunes.  Try that PIN or any PIN you've used in the past.  If you don't use a lock maybe you played around with that feature once when you first got your phone....try "1,2,3,4" or anything you could have possibly tried.
    As far as accessing older unencrypted backups you can try this software.  I do not have any experience using it but it seems like it's what you need and is probably the easiest route for both voicemail and texts:
    http://deciphertools.com/products.html
    If you want to try to find voicemails using Terminal, I found this link as well:
    http://mikereys.wordpress.com/2011/10/18/iphone-backup-restoring-visual-voice-ma il/
    I know with AT&T, voicemails are only stored on their servers for 30 days so any voicemail older than that you would not have been able to access again.
    Best of luck.

  • TS4085 I reboot my router updated to IOS 5, still NO on/off selection for mirroring..please help getting disappointed

    I reboot my router updated to IOS 5, still NO on/off selection for mirroring..please help getting disappointed

    What are you trying to mirror from? Mirroring from your Mac won't be available until Mountain Lion 10.8  www.apple.com/macosx/mountain-lion/
    Setting up and troubleshooting AirPlay Mirroring
    support.apple.com/kb/TS4085 

  • My iPod touch 2nd generation keeps turning the volume up and then turns off, by itself randomly. Please help!!, My iPod touch 2nd generation keeps turning the volume up and then turns off, by itself randomly. Please help!!

    my iPod touch 2nd generation keeps turning the volume up and then turns off by itself randomly. Please help!

    Try the standard fixes in order:
    - Reset:
    Reset iPod touch:  Press and hold the On/Off Sleep/Wake button and the Home
    button at the same time for at least ten seconds, until the Apple logo appears.
    - Restore the iPod from backup via iTunes
    - Restore the iPod to factory defaults/new iPod
    - Make an appointment at the Genius Bar of an Apple store.

  • Restore settings on iPhone 3G now it's turning on and off with only apple logo, please help me what do I do?

    Restore settings on iPhone 3G now it's turning on and off with only apple logo, please help me what do I do?

    Anybody there

  • Error message: "Java Script turned off, Enable Java Script" How to do this? I have gone into "Tools--then Options--Then checked Java Script--Then the "OK/Save" Button but this has not helped. What is the right course of action?

    Java Script is disabled on my HP laptop. I have done the obvious things. It still will not enable Java Script. What do I try next?

    Start Firefox in [[Safe Mode]] to check if one of the add-ons is causing the problem (switch to the DEFAULT theme: Tools > Add-ons > Themes).
    * Don't make any changes on the Safe mode start window.
    See:
    * [[Troubleshooting extensions and themes]]
    * [[Troubleshooting plugins]]
    If it does work in Safe-mode then disable all extensions and then try to find which is causing it by enabling one at a time until the problem reappears.
    * Use "Disable all add-ons" on the [[Safe mode]] start window to disable all extensions.
    * Close and restart Firefox after each change via "File > Exit" (Mac: "Firefox > Quit"; Linux: "File > Quit")

  • HS-500 - on/off switch issue?

    Hi,
    I am a new owner of the BlackBerry HS-500 headset. I have been using it over the past few days to connect up to my PS3 and Bold 9700 at the same time (as the device is advertised to be able to sync with more than 1 device at the same time), and while i can get either one or the other to work, i can't have them both running at the same time. From what i read this is to do with the functions of the headset that are being utilized and are nessasary to both my PS3 and BB, but cannot be used by both together.  I'm slightly irritated that they can't both work together, and nowhere in the tiny 1 page instruciton manual does it state that two devices wouldn't be able to have input/output together.I just wanted to point this out so anyone else looking to purchase this headset gets a chance to know the facts before they buy.
    Anyway, the main reason i'm posting here is because of an issue i have encountered with the on/off switch on the bottom of the headset. Basically, no matter which way i have the switch positioned the headset still functions EXACTLY the same! Is that normal? It's almost like the on/off switch is just there for show and wasn't meant to really do anything! I have been through the product manual, but i can't find anything relating to my problem, and to be honest it doesn't seem to give much detail about the device anyway.
    I'd be very grateful if any other owners of this device or any technical support could let me know if this is normal for this device or if this is a faulty device on my part.
    Thanks

    on the headset there are two controls :
    a button that clicks
    a switch with two positions : on / off.
    both controls work fine on my device. If your switch does not work I suggest you have the device changed.
    The search box on top-right of this page is your true friend, and the public Knowledge Base too:

  • Java Script Error while deploying a Model with Value Help

    Hi,
    I am using EP 7.0 SP 10.
    I am trying to deploy a model which includes the Value Help for an Input field, and i am trying to deploy this model.
    The model compiles successfully, but gives a Java Script Error while deploying the model,
    ! Error on Page
    When Click on this java script error, it shows that ,
    Line:14985
    Char 1: Error
    object does n't support this property or method.
    code
    URL: <serverhost>/VCRes/WebContent/VisualComposer6.0/bin/223334.htm?24102006.1712.
    The Same model works in dev server, and it fails in the production server.
    Thanks and Regards,
    Sekar

    Hi jakob,
    Thankyou for your quick response.
    I did a basic model with the help of a documentation which i got from this forums.I created a iView and from there i used Bapi "BAPI_SALESORDER ".
    I created a Input Form and a outpot form (table view).I tested model and am able to get the output.but when i try to deploy it is giving me the error.
    And i think am not paring any formulas here.
    Please guide me.
    thanks and regrads
    Pradeep.B

  • Need flash player 8 and java script enabled to play videos on ipad, need help please.

    need flash player 8 and java script enabled on my ipad in order to view videos.  please help.

    iPads do not directly support Flash.
    You can look for Flash Browsers in the App store for some options to try. Support is not 100%, but maybe one may work for you.  Browsers like Puffin, Skyfire, Photon etc...
    IPads do fully support JavaScript.  Just make sure its turned on under Settings->Safari->Advanced->JavaScript.
    If you require Java, which is completely different to JavaScript, again there are some browsers in the App store that support it.  Search for "Java browsers" in the store.

  • I cant update my Mac OS X 10.5.4.It 'configures' forever' and I often end switching off the computer in frustration.please help!

    Hello all,
    for several months I have found it impossible to update my Mac OS X 10.5.4.
    When I click on 'update',it just carries on 'configuring' forever.I often switch the computer off in frustration.
    Please help.

    The Combo updater of Leopard 10.5.8 can be found here:
    http://support.apple.com/downloads/Mac_OS_X_10_5_8_Combo_Update
    Safari 5.0.6 for Leopard can be downloaded from here:
    http://support.apple.com/kb/DL1422

Maybe you are looking for

  • Time Capsule 1st Generation vs 4th Generation

    Is there a compelling reason why I should upgrade from a Time Capsule (1st Generation) to the latest when my current TC is functioning flawlessly?  I've got a house full of Apple Devices; - Time Capsule 802.11n (1st Generation) - AirPort Express 802.

  • "The attempt to burn a disc failed. The device failed to respond properly"

    Hello everyone, I have suddenly developed a problem when trying to burn a CD. I get the "Checking playlist" and "Initializing" messages, and then Writing...(the name of the first track)", but about 20 seconds later, just when seems as if it will star

  • Java.lang.NullPointerException while invoking Weblogic10 Webservice JAX-RPC

    hello, I'm facing this Eception while invoking the Webservice 10/03/2009 01:39:19 Ú gosi.business.batch.financialaccounting.gosiSambaRets.controller.SambaClient callUploadPayment SEVERE: null java.lang.NullPointerException at com.bea.staxb.buildtime.

  • [Solved] USB 3 (uPD720200) only detects devices at boot time.

    Hello. I have an HP Probook 4530s laptop with an onboard USB 3 port. A device that is plugged into it before boot shows up in lsusb and can be used normally, but hotplugging a device will not work. Relevant outputs after booting with a drive plugged

  • Problem deplying Struts app under home orabpel hw_services

    Hi guys, I have soasuite v10.1.3.1.0 installed on my system. I am trying to deploy a STRUTS application under home>orabpel>hw_services: Application Name: gpi-mms-app (one web-module and one ejb) Parent Application: hw_services (Human Workflow Service