I'm using a Thickbox iframe to display HTML pages containing Flash movies. 

The thickbox appears on top of other Flash elements (buttons) contained in
another iframe. I find that on some computers, the Flash underneath shows
through the Flash in the thickbox (I'm guessing this is because the
computer's video card isn't up to the job). 

So, I thought it would be a good idea to make the button swfs in the iframe
invisible after thickbox is called. This works fine:

function playSwf(myURL, W, H, title){ //this script is in the iframe that
contains flash buttons
   
//make thickbox play in parent window from iframe
   var myW = W || 730;
   var myH =   H || 480;
   var myTitle = title || null;
   var myQS = '?TB_iframe=true&width=' + myW + '&height='+ myH;;
   myURL += myQS;
   parent.TB_show(myTitle, myURL)   

// make Flash elements  in this iframe invisible   
   var myLinkSwfs=$('.replaceSwf'); 
   myLinkSwfs.css({visibility:'hidden'});

}

But I can't figure out how to make those swfs visible again when the user
closes the thickbox iframe.  Presumably, I need to add some lines to the
thickbox TB_remove function, but I can't come up with the syntax by which to
address those elements from outside the iframe. :-(

Thx.

Bruce




-- 
View this message in context: 
http://www.nabble.com/Help-make-Thickbox-talk-to-an-iframe-tf2586801.html#a7212656
Sent from the JQuery mailing list archive at Nabble.com.


_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/

Reply via email to