After working for a prolonged time on a programming problem, I start to get coding tunnel vision. It makes it harder to draw back and look at the problem from farther away.
Hence my question: I am using a Drupal 6 site. When a menu option is clicked, the page opens and a Flash SWF file needs to played in a ThickBox. After 8 seconds, that Thickbox closes.
Opening the SWF file in the Thickbox when a link is clicked is no problem, just like closing the Thickbox afterwards; that's basic javascript. For that I use these:
document.getElementById("identifyvideo").style.display="none"; var tim = window.setTimeout("hideMessage()", 5000); //hide that layer after 5 seconds
But opening the Thickbox on load? I can add a link for the user to click, but it should open automatically. I figured out the PHP to have it only open on one specific page. From the Thickbox manual, I learned to open links to images - but not how to open it when the page loads.