i am not getting what you did simple use
<script> function playfile (swffile) { document...........byid("plydiv").innerHTML = "<embed src="+swffile+"/ width='2' height='2'>"; } </script> <div id="plydiv"></div> <a href="#" onclick="playfile ('http://www.orkutfanse.com/hello.swf')">Say hello</a> Try this code!!! On Thu, Mar 5, 2009 at 10:18 PM, Javediq143 <javediq_...@yahoo.com> wrote: > > Hi Prashant, > > Thanks for the reply and because of your suggestion I'm able to do > what i was requiring. With the help of a tutorial on the web, I had > built up a swf player which plays the sound file. But I'm getting a > problem over here. > > In IE nothing is wrong but when i view the page in FF, there appears a > vertical space of around 20px height and I can see a small dot. So I > change the gadget file and the space get removed but the player > doesn't work in IE!!!! > > Below is the original script which works in both the browser but shows > space in FF > ########################### > <script src="path-to-server/js/flashsound.js"></script> //script I got > from the web > > <script language="JavaScript"> > var mysound = new FlashSound( ); > </script> > > <script language="JavaScript"> > mysound.embedSWF("path-to-server/swf/Sound.swf"); > </script> > > <div id="main_content" style="width:746px;"></div> //Div where the > content gets loaded > ########################### > > Below is the modified script which removes the space from FF but > doesnt works in IE > ########################### > <script src="path-to-server/js/flashsound.js"></script> > > <script language="JavaScript"> > var mysound = new FlashSound( ); > </script> > > <div id="main_content" style="width:746px;"></div> > > <script language="JavaScript"> > mysound.embedSWF("http://go2bollywood.tv/api/orkut/ADZ/swf/ > Sound.swf"); > </script> > ########################### > > Can you help me removing the bug over here? > > Thanks in advance, > Javed > > > > On Feb 9, 6:38 pm, Prashant PatilĀ <prashantpandurangpa...@gmail.com> > wrote: > > Go for swf sound players! > > > > > > > > On Mon, Feb 9, 2009 at 12:36 PM, Javediq143 <javediq_...@yahoo.com> > wrote: > > > > > Hi All, > > > > > I'm starting to develop a NEW APPS on ORKUT but this time I want to > > > make some enhancement as compared to my all the earlier APPS. > > > > > The APPS, for a new upcoming bollywood flick, will have around 7-8 > > > sections. When a user clicks on any section then before loading the > > > content of that section I want to play a sound file. In detail: > > > User clicks on a section which will call a JS function which will > > > first plays a sound file and when the sound gets over the content of > > > the called section will get displayed. > > > > > The sound file will be very small, for just a second like > > > "Wrrroooooom". This will give the user a more feel about the movie. > > > > > I had surfed the web and came to know the pros and cons for playing > > > sound in different browser. Can this be done in the ORKUT APPS. Also, > > > I don't want to present a dialogue box to user for any ACTIVE X > > > object. > > > > > Is there a way around for this to work consistently in major > > > browser??? > > > > > Please suggest me some solution. > > > > > Thanks, > > > Javed > > > > -- > > With best Regards. > > Prashant aka Orkuteerhttp:// > en.blog.orkut.com/2007/11/thanks-from-orkuteer.html > > > -- With best Regards. Prashant aka Orkuteer http://en.blog.orkut.com/2007/11/thanks-from-orkuteer.html --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Orkut Developer Forum" group. To post to this group, send email to opensocial-orkut@googlegroups.com To unsubscribe from this group, send email to opensocial-orkut+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/opensocial-orkut?hl=en -~----------~----~----~----~------~----~------~--~---