|
-
curiouser and curiouser
focussing flash movie in Opera
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!
-
Registered User
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();">
-
curiouser and curiouser
thanks for replying,
where does the function setFocus get called from though?
-
Registered User
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.
-
Senior Member
opera won't allow you to focus flash content with javascript. it has to be clicked on to get focus.
-
curiouser and curiouser
that's what I was worried about - ok thanks
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|