JavaScript - How To Autostart
Okay so i need help getting this video to autostart. Here is the code
Code: <script type='text/javascript' src='http://s3.amazonaws.com/mem_vid/sw4fobject.js'></script> <div id='mediaspace221'>This text will be replaced</div> <!--Where it says /player.swf is where you specify the player that you uploaded in step 2b --> <script type='text/javascript'> var so = new SWFObject('http://s3.amazonaws.com/player.swf','mpl','470','290','9'); so.addParam('autostart','true'); so.addParam('allowfullscreen','true'); so.addParam('allowscriptaccess','always'); so.addParam('wmode','opaque'); <!--This next line is where you specify your video file (uploaded in step 2c). For .flv files, you must write it as below ('e'), *without* the extension. --> so.addVariable('file','flv:intro'); <!--This next line is where you point to your streaming distribution on cloudfront (done in step 3 above). NOTE: you *MUST* add "/cfx/st/" for it to work. This specifies it is a cloudfront object (cfx) and that it is to be streamed (st). This is the URL of the streaming distribution--it ends with .cloudfront.net. In the example above, I would write: 'rtmp:// s1jng0.cloudfront.net/cfx/st/' --> so.addVariable('streamer','rtmp://s28a90vrw5net/cfx/st/intro.flv'); so.write('mediaspace221'); so.start </script> Ive tried adding the following parameter and it did not work Code: so.addParam('autostart','true'); Similar TutorialsI have music set to start playing when my website starts up...is there any way to keep it from restarting everytime I go back to the home page through clicking the home link from another page?
Hello can please help convert this real simple slide show so that is plays immediately on page load. Thank you PHP Code: var ImgNum = 0; var ImgLength = NewImg.length - 1; //Time delay between Slides in milliseconds var delay = 7000; var lock = false; var run; function chgImg(direction) { if (document.images) { ImgNum = ImgNum + direction; if (ImgNum > ImgLength) { ImgNum = 0; } if (ImgNum < 0) { ImgNum = ImgLength; } document.slideshow.src = NewImg[ImgNum]; } } function auto() { if (lock == true) { lock = false; window.clearInterval(run); } else if (lock == false) { lock = true; run = setInterval("chgImg(1)", delay); } } |