PDA

View Full Version : Scroll function



BiGg RiE
March 14th, 2007, 11:36 AM
OK, so I have a swf file that is 750px X 1400px embeded in an html page. My problem is that most people have a screen resolution that will not show the entire swf within their browser window, which is fine. However, when I want to scroll the window I have to click outside the swf file and use my mouse wheel to scroll down or up. this is the only way the mouse wheel will function I can't click on a button within the swf and then scroll. I would like to know if there is a way that I can place a code within either the swf file or in the html that will allow the funtionality to scroll by mouse wheel no matter where the cursor is within the browser window.

Would I use Java Script, how? Or is there something I can place in the html code for the page that will allow this?

Thanx in advance.

BiGg RiE

DangerousDan
March 14th, 2007, 07:50 PM
I think you could use javascript to set the focus on the window, which would allow scrolling.

Templarian
March 14th, 2007, 11:54 PM
Set it to full screen and actually code the scrolling into it (although if your site has high animation it will lag).

BiGg RiE
March 15th, 2007, 10:39 AM
I think you could use javascript to set the focus on the window, which would allow scrolling.

How would I do this?

DangerousDan
March 17th, 2007, 12:08 PM
something like...


<BODY OnLoad="document.focus();">