Can't get javascript to change movie playing in web page

I'm very new to web page development and scripting, so please bear with me. This is a test page I'm trying to get to work. Eventually there will be several images of different videos, and I want the different videos to play in one player, depending on which one is clicked on. This is the page: I have tried this on both Windows 7 Home Premium at home and Windows XP Professional SP 3 at work. All the links work except the crucial one, which is supposed to change the movie. I would appreciate any help you can give, and can supply any other information that will be helpful. Thanks!
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<!-- This page uses script written from home to test the apple-supplied javascript -->
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<script src="script/AC_QuickTime.js" language="javascript" type="text/javascript"> </script> <!-- downloaded from apple's website -->
<script language="javascript" type="text/javascript">
var movie1name='video/movie1.mp4';
var movie2name='video/mei/movie2.mp4';
function playMovie2()
document.getElementById('movie1').SetURL(movie2name);
function getMovie()
mov=document.getElementById("movie1");
s=mov.GetURL();
alert("Movie URL = " + s);
</script>
</head>
<body>
<object CLASSID="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B"
CODEBASE="http://www.apple.com/qtactivex/qtplugin.cab" WIDTH="640" HEIGHT="370" id="movie1">
<PARAM NAME="src" VALUE="video/mei/hiv-aidspreventiononhbcucampuses.mp4" />
<PARAM NAME="autoplay" VALUE="true" />
<PARAM name="CONTROLLER" value="true" />
<param name="enablejavascript" value="true" />
<param name="scale' value="aspect" />
<EMBED SRC="video/mei/hiv-aidspreventiononhbcucampuses.mp4" TYPE="image/x-macpaint"
PLUGINSPAGE="http://www.apple.com/quicktime/download" WIDTH="640" HEIGHT="370" AUTOPLAY="true" controller="true" id="movie1"></EMBED>
</object>
Play 2nd video
Get movie URL
Play movie
Stop movie
Rewind movie
<!--
<a href="javascript:document.movie1.SetURL('video/mei/howarduniversity.mp4');">How ard University</a>
-->
</body>
</html>

Steps to remove iMesh as your homepage:<BR>
# In the address bar, type '''about:config''' and press Enter.
# In the '''Filter''' textbox at the top, type: '''keyword.URL'''
# You will be presented with the entry for keyword.URL
# Double-click on it, delete the string and press OK.
# Exit from Firefox.
Next, you need to set the desired website as your homepage. Open Firefox and follow the instructions given in this article: [[How to set the home page]].

Similar Messages

  • How can I get the status bar back on my web page

    I want to get the status bar on the bottom of the web page so that I can slide from left to right if an article is too large for my monitor. I had it this morning 1-5-15. After checking out Thunderbird as an option for my email, the bar disappeared after uninstalling Thunderbird. I know about hovering over the web pages I have on my menu bar, but I would rather have the entire bar at bottom of page.
    The gray bar shows up in my email only. I would like to have it on all my websites.
    Thank you.

    Does the scroll bar appear if you maximize the window or possibly switch to full screen mode via F12?
    You can try to open the system menu via Alt+Space and see if you can resize the window in case the current window is too high and the horizontal scroll bar falls off.
    Try to open a new window in case there is a problem with the current window.
    You can check for problems caused by a corrupted xulstore.rdf file.
    Start Firefox in <u>[[Safe Mode|Safe Mode]]</u> to check if one of the extensions (Firefox/Tools > Add-ons > Extensions) or if hardware acceleration is causing the problem.
    *Switch to the DEFAULT theme: Firefox/Tools > Add-ons > Appearance
    *Do NOT click the Reset button on the Safe Mode start window
    *https://support.mozilla.org/kb/Safe+Mode
    *https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes

  • How can I get Java to fill out form on web page and submit?

    I need to write a Java program that will submit a HTML form. I tried using POST already, but the only response I got back was the source code for the page itself. Looking more closely, I realized that there is a PHP script that will actually take the data from the forms and use it. How can I get Java to enter the data on the forms automatically and then run this PHP script? I don't need code, just a pointer in the right direction should do.
    Thanks in advance,
    Hasitha D

    hasithad314 wrote:
    I need to write a Java program that will submit a HTML form. I tried using POST already, but the only response I got back was the source code for the page itself. Looking more closely, I realized that there is a PHP script that will actually take the data from the forms and use it. How can I get Java to enter the data on the forms automatically and then run this PHP script? I don't need code, just a pointer in the right direction should do.
    If you are writing a program to submit a form,how come the PHP script come out of nowhere ? At this momemnt you are just writing some Java program,isn;t it ?
    My feeling is you are trying to edit some pre-written code.
    Is it ?
    Thanks.

  • I can't get rid of the I-play start up page after doing what oberon instructions, I want the firefox Google page as defalt

    I was trying to download a reader for a windows application. Hidden in the download was the I-play junk (I am not a game person). I went to the I-play site and got their instructions and completed them, but the I-play page keeps coming up when I sign on to Firefox. I want the regular Google Firefox start up page as the default.

    If the page appears in a tab when first starting Firefox
    *Have you tried to reset your home page? Firefox allows multiple home pages separated by the "|" keyboard character
    *See --> http://support.mozilla.com/en-US/kb/How+to+set+the+home+page
    If the page appears when entering a word or two in the URL/Location/Address bar, you may need to do the following:
    #Reset your Location Bar search engine (if typing a few words in the URL/Location Bar takes you to that search page):
    #*type '''''about:config''''' in your Location Bar, like typing a web site address, and press the Enter key
    #*if you see a warning, accept it (promise to be careful)
    #*Filter = '''''keyword.URL'''''
    #*in lower part of screen, if it is '''bold''' and shows "'''user set'''", right-click keyword.URL and choose "Reset"
    #*Filter = '''''i-play'''''
    #*any items in lower part of screen in '''bold''' and showing "'''user set'''", right-click and choose "Reset"
    #*repeat the two prior steps for "oberon"
    #*close about:config tab
    #*See:
    #**http://kb.mozillazine.org/About:config
    #**http://kb.mozillazine.org/Location_Bar_search#Location_Bar_search_.28external_-_search_engine.29
    #**http://kb.mozillazine.org/Keyword.url
    #**http://www.techrena.net/computers/address-bar-search-provider-firefox/

  • Can't get add printer button to open on web page

    hp officejet pro 8500 a910 all- in -one
    windows 7 64 bit
    I had switched from verizon fios to cablevision and did change e-mail address but i have gone back to fios and now have the same e-mail address as before

    See this page for info...
    http://www.iwebformusicians.com/Search-Engine-Optimization/google-plus-1.html

  • I just purchased a movie and I can't get the iTunes extras to play, the unrated version plays but I want to watch the special features . Am I just stupid or is there something simple I am not seeing?

    I just purchased a movie and I can't get the iTunes extras to play, the unrated version plays but I want to watch the special features . Am I just stupid or is there something simple I am not seeing?

    Hello there, NighHawk420.
    The following Knowledge Base article provides some practical information on where to locate the iTunes Extras when purchased with a movie from iTunes:
    About iTunes LP and iTunes Extras
    http://support.apple.com/kb/HT3823
    When you purchase a movie with iTunes Extras, the primary movie along with the iTunes Extras will download to your iTunes Movie folder. Mouseover the cover art and click the icon on the album to open the main menu to play the movie or view other features.
    Thanks for reaching out to Apple Support Communities.
    Cheers,
    Pedro.

  • How can i get magic voice changer on my nokia c6?

    hi just wondering how can i get magic voice changer on my nokia c6? please if anyone can help thanks!

    Make sure your own music files are saved in the proper folder (Digital sounds) whether in your memory card or the phone memory, the location should still be:
    Sound Clips > Digital Sounds.
    If your songs/mp3s are saved anywhere else, it will not show up as a selectable ringing tone.
    You can move your songs through File Manager on your phone if they are in the wrong location (Options > Move to folder).
    Hope that clarifies it for you.
    "Try not. Do or do not, there is no try."
    If you found someone's comments helpful or like what that person has to say, please give some Kudos to the post!

  • I downloaded an album on itunes using my new itouch; but it's only allowing me to put three songs at any one time into the music app...how can i get it to just move them all in there?

    i downloaded an album on itunes using my new itouch; but it's only allowing me to put three songs at any one time into the music app...how can i get it to just move them all in there?

    hi philly, thanks for getting back to me, especially on such a busy day.
    I don't think that's quite the issue though. I bought an album and it appears in 'my purchases' within the itunes app. Yet, in order to listen to the music, i must use the 'music' app and in this application, there are only three tracks displayed at any one time from my downloaded album.
    I can 'download all' from the 'my purchases' section but that still doesn't help, it just keeps the last three tracks downloaded in the music app.
    I have the 'icloud' enabled and wondered if it had anything to do with that.
    i have successfully downloaded another full album totally into the music app, but this first album is causing me problems.

  • I have multiple devices in my family. Each of us has an iPhone and an iPad. Is there a way for each of us to have our own Apple ID but one account so we can all get the same music, movies, books, etc. I can't see paying twice for something in the same fam

    I have multiple devices in my family. Each of us has an iPhone and an iPad. Is there a way for each of us to have our own Apple ID but one account so we can all get the same music, movies, books, etc. I can't see paying twice for something in the same family.

    Welcome to the world of digital media. Your can't really transfer it. I don't know what the rules are about transferring to your spouse but I do know that in some cases when you die, your heirs cannot inherit your digital media. This is why there is still an advantage to buying the CD since the usage rights belong to whomever holds the physical media.
    A possible workaround is to burn the songs to a music CD with yout account (tracks only without song titles) and then having your wife upload it as a regular music CD onto her account. It's been a while since i've done this so I'm not sure if it would work now.
    Please note that I'm not advocating copyright and/or TOS violations. I'm only suggesting ways to copy music for your own personal use which has traditonally been permitted. I only did this because I wanted to convert iTunes songs to mp3 files so I could burn them onto a data CD for use in my car. It would make sense that since married couples are a joint entity, this would be personal use.
    Also, I'm not a lawyer so don't take this as legal advice.

  • How can I get my ES2 loops to play correctly? I keep getting the message that the audio is not found when I drag the loops from my audio browser even though they play fine in the preview.

    How can I get my ES2 loops to play correctly? I keep getting the message that the audio is not found when I drag the loops from my audio browser even though they play fine in the preview.

    It's exactly as I stated. Whenever I try to drag these kinds of loops (ESX24 / software instrument loops? the ones marked in green with the white music note next to them) from the loop browser into the timeline a message comes up saying Audio Not Found for that loop.  And a new track is created automatically when loops are dragged into the timeline, so I'm not creating some other random / synth instrument track so I'm not sure  what the deal is... But perhaps I'll try creating a software instrument track first and then drag the loop into that track and see what happens - maybe there's something with the default settings that automatically creates audio tracks whenever loops are imported?

  • All the CD's I have imported will not play. The only music that will play is cd's I have purchased from itunes. How can I get all my albums to play, please??

    All the CD's I have imported will not play. The only music that will play is cd's I have purchased from itunes. How can I get all my albums to play, please??

    iTunes Store- Transferring purchases from iOS device or iPod to a computer
    Downloading past purchases from the App Store, iBookstore, and iTunes Store
    How to dowload purchased music

  • Just replaced my iphone 4 with new 4.  restore from icloud is hung on an app I no longer use (password probably expired) how can i get the restore to move on to the next app

    just replaced my iphone 4 with new 4.  restore from icloud is hung on an app I no longer use (password probably expired) how can i get the restore to move on to the next app

    Read another post in the forum about this and it appears this app also installs a profile with a proxy service that you will have to try and delete as well. Check that out.

  • HT204053 Can't get into old account, I think I have 2 accounts and the APP Store is under an old one and somisnItunes and I can't get in to change the password

    Can't get into old account, I think I have 2 accounts and the APP Store is under an old one and somisnItunes and I can't get in to change the password

    How to find your Apple ID:
    http://support.apple.com/kb/HE34

  • When I try using Airplay to stream from Amazon Prime it tries to use Apple TV music.  How can I get it it stream movies from Amazon Prime?

    When I try using Airplay to stream from Amazon Prime it tries to use Apple TV music.  How can I get it it stream movies from Amazon Prime?

    Welcome to the Apple Community.
    Try the following steps, check whether things are working after each step where appropriate, before trying the next.
    Restart the Apple TV (Settings > General > Restart).
    Restart the Apple TV by removing ALL the cables for 30 seconds.
    Restart your router.
    Reset the Apple TV (Settings > General > Reset > Reset all settings)
    Restore the Apple TV (Settings > General > Reset > Restore)

  • How can I get my itunes purchases to play on any mp3 player?

    I can't get my itunes purchases to play on my other mp3 players.  I don't want to download these programs people suggest on the internet.
    And really, I shouldn't have to. If I've already paid for the music, why can't I put it on the device I choose?  There must be a way. Any help? BTW, I'm using Windows Vista, (yuk)

    You can put the music on any device you choose, as long as the device can play the format. Purchases from the iTunes Store are in industry-standard AAC format. If you want to use them on a player that can only handle MP3, you need to convert the tracks. See:
    http://support.apple.com/kb/HT1550
    Regards.

Maybe you are looking for