HTML - Iframe Designmode On, Embedded Swf Not Playing In Ie8
Hello,
Do you guys know any workaround or have any solution for my problem: I'm trying to embed a swf object into an IFrame element which has the designMode turned on. I successfully did that in Firefox, Safari, Opera, Chrome, but for IE8 and IE7 the swf is not autoplaying. To play it I have to double-click it and then if editing the IFrame the swf stops playing when losing focus. My code looks as follows: HTML Code: <html> <head> <script type="text/javascript"> function populateIframe() { var ifrm = document.getElementById('myIframe'); ifrm = (ifrm.contentWindow) ? ifrm.contentWindow : (ifrm.contentDocument.document) ? ifrm.contentDocument.document : ifrm.contentDocument; ifrm.document.open(); ifrm.document.write('sdasdasdasd <object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" width=\"40\" height=\"40\"><param name=\"movie\" value=\"flash_heart01.swf\" /><param name=\"play\" value=\"true\" /><param name=\"loop\" value=\"true\" /><param name=\"flashvars\" value=\"playerMode=embedded\" /></object> asdasdasd'); ifrm.document.close(); ifrm.document.designMode = 'On'; } </script> </head> <body onload="populateIframe();" width="1000px" height="700px"> <iframe id="myIframe" width="1000" height="700"></iframe> </body> </html> You can try it with any swf. My swf is a simple flash with 3 frames in the main scene, nothing special. You can try that code with any swf in IE8 and shall see my problem. Please notice that current code(which I displayed above) doest work at all with FF, Opera, or others since it only targets the IE browser and its problem just to show the issue. Please advise or help Thanks Similar TutorialsI am very new to writing HTML and a friend wrote this code for me to upload videos to a webpage I am making. Unfortunately the videos load and play automatically when the page is opened. I cannot figure out what is going wrong and I cannot get in touch with the friend who wrote the code in the first place. Does anyone have any suggestions on how I can edit the code below so that the videos will only load when a person clicks the "play" button? <TABLE BORDER="0" CELLSPACING="15"> <TR> <TD> <object width="360" height="270"> <param id="video-param" name="movie" value="movies/ell.mp4"> <param name="controller" value="true"> <embed id="video-embed" src="movies/ell.mp4" controller="true" type="video/mp4" width="360" height="270"></embed> </object> </TD> <TD> <object width="360" height="270"> <param id="video-param" name="movie" value="movies/esl.mp4"> <param name="controller" value="true"> <embed id="video-embed" src="movies/esl.mp4" controller="true" type="video/mp4" width="360" height="270"></embed> </object> </TD> </TR> <TR> <TD><i><div style="text-align: center;"><big>Long</big></i></TD> <TD><i><div style="text-align: center;"><big>Short</big></i></TD> </TR> </TABLE> Thanks in advance for any advice you can offer! Hello all. I have been trying to figure out this problem for the past few days, and can't seem to find a solution anywhere. I have an iframe that embeds a transparent document to view on my webpage. All the text, images, etc. work great in every single browser, EXCEPT IE9. Does anyone have any ideas as to why this may be happening? Because I am at a loss here. Here is the page in question: http://jdp.pr.erau.edu/HTML/projects...s_project1.htm Thanks what is the best way to play videos in an html page?? i need to play videos in my site... what is the fastest way to play videos in a normal speed (not slowly) I've created a layout in css and it works in Safari, Chrome and IE but not Firefox. I thought IE was the odd one out. Anyway I seem to have narrowed it down. It's the logo in the top left, if it has a link on it it seems to move the margin a lot to the right. Try it out. Code: body { margin: 0; padding: 0; text-align:left; color: black; font: medium Arial, Helvetica, Verdana,sans-serif; } ul, li { list-style-type: none; } #header { margin-right: 10px; margin-left: 10px; border: 2px solid black; position: relative; filter:alpha(opacity=80); opacity: 0.80; height: 62px; background-color: white; } #sidebarleft { float: left; margin-left: 10px; margin-top: 10px; height: 600px; border: 2px solid black; position: relative; filter:alpha(opacity=80); opacity: 0.80; width: 170px; background-color: white; } #sidebarleft b { position: absolute; left: 0px; right: 0px; background: #d9eaff; } #sidebarleft a:link { color: black; text-decoration: none; } #sidebarleft a:visited { color: black; text-decoration: none; } #sidebarleft a:hover { color: black; text-decoration: underline; } #sidebarleft a:active { color: black; text-decoration: underline; } #sidebarleft ul { margin: 0; padding: 0; border: 2px solid white; } HTML Code: <html> <link rel="stylesheet" type="text/css" href="style.css"> <!-- header start --> <div id = "header"> <a href="index.htm"><img src="images/logo.png" align="left" height="61" width="262"></a> </div> <!-- header end --> <!-- sidebarleft start --> <div id="sidebarleft"> <center><b><u>Navigation</b></u></center> <br/> <ul> <li><a href="index.htm">Home</a></li> <li><a href="link1.htm">link1</a></li> <li><a href="link2.htm">link2</a></li> <li><a href="/link3/">link3</a></li> <li><a href="link4.htm">link4</a></li> </ul> </div> <!-- sidebarleft end --> </html> How can I make it work in Firefox? I have problem with playing wav file in mozilla. but working fine with internet explorer. I am using <embed> and <bgsound> . is there any way to play sound in mozilla urgent. please help Hello, stuck again!!! Right well i have an swf file and it's playing fine in safari but not in firefox - the place where it's supposed to be is just blank. Any ideas? http://www.absolute-websites.com/portfolio#animation Here is the code: HTML Code: <object id="peepShow" type="application/x-shockwave-flash" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0" data="video/peep_show.swf" width="550" height="400"> <param name="movie" value="video/peep_show.swf" /> <param name="quality" value="high"/> </object> hi. on my site i want to play a uploaded movie file. i'm searching a suitable player but not win media player. is any there? how i place that on my site. thanks in advance chel-1 Hi, I am a newbie to HTML. I am making this web page. I wan to place a link where people can click on it and listen to my music. So in the <body> I type in this : <a href="music/music_1.mp3" target="_blank">Song 1.</a>. It does play the music when the link was click, but it pops up a blank page with on the QT control bar in the middle. How can I make it not to pop up another page? or if it has to pop up something perhaps just a QT player rather the blank page. Thanks in advance. MacPC Hi, I'd really like to put an MP3 player on my website to play music mixes, but I'd like it so that even if someone goes to another part of the site, the music keeps on playing, Like Reverbnation have... http://www.reverbnation.com/ Can I take the code from their site or do I need to start from scratch? Given that Reverbnation supply the widget to put your music in, I'd just need the ability to have it keep playing even when someone links to another part of the site. Thanks! I ahe to play a wav file. I am using <embed> and <bgsound> tag to play the wav file. it works fine in internet explore. But showing missing plug-in problem in mozilla. is there any ways to play sound in mozilla similar to <embed> tag works I ahe to play a wav file. I am using <embed> and <bgsound> tag to play the wav file. it works fine in internet explore. But showing missing plug-in problem in mozilla. is there any ways to play sound in mozilla similar to <embed> tag works I have made a site for someone and now they want the music player to play throughout the site, it's s fully fledged turn off etc. one so that's not the problem. The problem is, I have no idea how to get it to work. I have never used frames and I am not sure if what I want it right for frames, and then there is the pop up idea, what happenes if they have a pop up blocker? I want to get it so that only the player is in a frame, like an insert or something...this is the link http://www.chrisjenningsmusic.com I have tried using an Iframe too, but then I realised that the whole site would have to be in one leaving the player outside and I really don't want to do that. This is how I wanted to frames to work... Greetings. I have a basic html page, and want to embed audio. I am using: <BGSOUND SRC=myfile.mp3 LOOP=1> So that when my main index.html page loads, that file plays. Two things I want to do: 1) Let it continue playing when I click on another page within my site (it currently stops when I navigate away from index.html) 2) Assuming I can do #1, make it stop playing when I navigate to one page in particular. This possible? Doing a google search, and that's actually how I came up with that code, but cant seem to find anything in regards to making 1 & 2 work. I do not want to do frames, and definitely do not want to do a flash site, which I undertand may be the only way. Any ideas on how to make this work with html? Thanks in advance! Hi there, well, the title basically says it all. I have a site that consists of like, 8 .php pages... and I need to play this ambient sound at the background. ( I know, but well.. orders from above) So I was wondering if there is a way to manage this, without having to hear the song all over again when you click on a link. Thanks I want to play streaming songs on my website. can anybody give me the html code so that I can play the songs randomly automatically.My two URL of asx files are http://www.playlist.com/playlist/17180213515/asx and http://www.playlist.com/playlist/17174690571/asx Each link is a playlist contains more than 200 mp3 songs. I want to play them such that songs in each link as well as links can shuffle automatically.please reply as soon as possible. Hello! I've got a form called 'register_form1' on my website and, at first, the submit button is disabled (whether with disabled="true" or with a short javascript mybutton.disabled='true'). After inputing text in a few input areas, I would like the button to enable. And that is done by a short javascript. But, when submiting, the POST array is empty... $name, $username, $date are null strings (I suppose). the php file ....: PHP Code: <?php $name = $_POST['inputname']; echo($name); .................. and so on ?> On the other hand, if the button is enabled and never disabled, the POST method works. I've also tried the following: I changed the type of the button to 'button', not to 'submit', and then, when it was enabled, at a given moment (onClick event), I called myForm.submit(). Same results, nothing happened. Any help is welcome. Thank you in advance. Andrei I want to keep home page music playing as linked images are viewed. When I post family photos on our site, I like to add background music. My posts consist of a home page containing a table of thumbnails, each linked to its larger image on a separate page. (You can then scroll directly from one larger image to another.) I can EMBED music into the home page, but it stops playing when a linked page/image is opened. I get around this be inserting the table of thumbnails as an OBJECT into a separate home page that contains the music. That works; the music then continues to play as I scroll through the table's links. But there are two problems. First, when the thumbnails table is larger than a single screen, the table develops its own vertical scroll bar, so there are now two scroll bars showing, which is confusing. Worse, the larger images from thumbnails lower in the table are no longer properly positioned when seen on their own pages; you have to scroll each one to get it back into view. Is there a better way to keep the home page music playing as linked images are viewed? I have a Mac Laptop with OSX 10.4, and use Netscape Composer to make my sites. (OK, I'm a dinosaur, but I fear I'm too ancient to be able to learn a different app.) Here is my website for starters: http://divinedragons.tk If you navigate to my Schedules page, you can see there is an embedded calendar. At the bottom of this calendar, there is a line of text saying: "Want to add an event to this schedule? Contact us by clicking on the link above, and we will post it as soon as possible." I view this website on the current computer I'm using on Firefox, and the line of text can be viewed just perfectly. On my other networked computer, however, in MSN Explorer, i view the same page, but the same line of text seems to be too large, and it cuts off half the phrase. I was thinking the screen resolution was different, and that caused the text to be cut off in the browser. Yet i think there is a way for this line of text to be viewable on any computer, regardless of any screen resolution. I put the embedded code in a table format, as it is currently. The embedded code is with between the tags <TABLE><TD> and </TD></TABLE>. I remember looking somewhere that putting code in a table would cause it to appropriately "resize" itself in any monitor/screen resolution/browser size. Apparently it does not. So, I came here to ask an HTML expert if there is any way for my embedded calendar's footer text to be fully viewed, in any screen resolution or browser. Thanks for your time, and thanks so much in advance. I am using wordpress blog. I have a simple site that is hosted by my school. I was wondering if it where possible to embed the blog within my blog page on my website? problem now fixed thanks very much for the help |