does anyone have any idea how to set the flash movie in an html page to have focus in Opera?
document.getElementById["moviename"].focus(); works in IE, but not in Opera.
thanks for any help - this is holding up the entire project!
Printable View
does anyone have any idea how to set the flash movie in an html page to have focus in Opera?
document.getElementById["moviename"].focus(); works in IE, but not in Opera.
thanks for any help - this is holding up the entire project!
Try this;
<script language = "JavaScript">
function setFocus()
{
document.getElementById("slideshow1").focus();
}
</script>
</head>
<BODY bgcolor="#121212" MARGINWIDTH="0" MARGINHEIGHT="0" LEFTMARGIN="0" RIGHTMARGIN="0" TOPMARGIN="0" BOTTOMMARGIN="0" scroll= "no" onLoad="document.all.slideshow1.focus();">
thanks for replying,
where does the function setFocus get called from though?
The first lines of java script are in the head tags, then the onLoad function to focus it is in the Body tag itself. I've never tested this in Opera, but it's worked in everything else. When the page loads, the flash movie is focused right away, rather than having to click inside it to focus it.
In my example, slideshow1 is the name of the swf on the page. Use whatever name you used for your movie.
opera won't allow you to focus flash content with javascript. it has to be clicked on to get focus.
that's what I was worried about - ok thanks