Okay, unfortunately, I wrote too soon on the success of Sam's solution. Here's the issue. Remember: this is all in IE6.
When the page with the flash SWFObject div initially loads I get the notorious "Press OK to continue..." message. After clicking okay the page loads fine. Here's the problem now: The div holding the actual YouTube-linked player (flashHGTVvid) displays on the page in two cases: 1) if the page is just refreshed, or 2) if the player is used (by clicking on the image-link that initially shows the jQuery dialog - code for that is in my OP). So, I can't say I've really solved anything at this point. What about using JavaScript or even jQuery in some way to hide the "flashHGTVvid" div and only display it when the image-link is clicked. Could that work? Or is there some setting/property/param for SWFObject I can use to remedy this? Thanks again! On Jun 18, 10:11 am, Mark <[email protected]> wrote: > By the way, I ACCIDENTALLY clicked the "Report messages as spam" link > at the top. SORRY 'BOUT THAT! :( > > - mark > > On Jun 17, 1:08 pm, Sam Sherlock <[email protected]> wrote: > > > createswf takes 3 args - I have amended your code inline > > > - S > > > On 17 June 2010 18:50, Mark <[email protected]> wrote: > > > > I tried working with the createSWF method. The new error went away, > > > but I'm still getting a blank dialog box. Here's my new js code: > > > > var fn = function() { > > > var att = { data:"http://www.youtube-nocookie.com/v/ > > > cKqTadKzdwQ&hl=en_US&fs=1&color1=0xe1600f&color2=0xfebd01&border=1", > > > width:"500", height:"405"}; > > > var par = {play:"false"}; > > > > var id = "flashHGTVvid"; > > > var myObject = swfobject.createSWF(att, par, id); > > > }; > > > swfobject.addDomLoadEvent(fn); > > > > On Jun 17, 12:24 pm, Sam Sherlock <[email protected]> wrote: > > > > I think this is because you're using swfobject 1.x and firing it with > > > > jQuery > > > > > I have done much the same as you without issue but using 2.2 and > > > createSWF > > > > >http://code.google.com/p/swfobject/wiki/api#swfobject.createSWF(attOb.. > > > .) > > > > > < > > >http://code.google.com/p/swfobject/wiki/api#swfobject.createSWF(attOb...) > > > >- > > > > S > > > > -- > > > You received this message because you are subscribed to the Google Groups > > > "SWFObject" group. > > > To post to this group, send email to [email protected]. > > > To unsubscribe from this group, send email to > > > [email protected]<swfobject%[email protected]> > > > . > > > For more options, visit this group at > > >http://groups.google.com/group/swfobject?hl=en. -- You received this message because you are subscribed to the Google Groups "SWFObject" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/swfobject?hl=en.
