Results 1 to 5 of 5

Thread: Scroll function

  1. #1

    Scroll function

    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

  2. #2
    I think you could use javascript to set the focus on the window, which would allow scrolling.

  3. #3
    Set it to full screen and actually code the scrolling into it (although if your site has high animation it will lag).

    Join #kirupa | Click the under my Username | CL | Jeff

  4. #4
    Quote Originally Posted by DangerousDan View Post
    I think you could use javascript to set the focus on the window, which would allow scrolling.
    How would I do this?

  5. #5
    something like...
    PHP Code:
    <BODY OnLoad="document.focus();"

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

Home About kirupa.com Meet the Moderators Advertise

 Link to Us

 Credits

Copyright 1999 - 2012