Forum Moderators: open

Message Too Old, No Replies

Opera onload focus for overflow div?

         

JAB Creations

8:37 pm on Sep 21, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I'm still working on the clientside design of the new version of my site so this is why you'll see references to multiple Opera versions (due to the nature of it's UA).

Anyway I want to make this div focus (it has overflow) and will not scroll unless you first click anywhere within the div. I want to force Opera to focus so it will scroll without first having to click. The bug is still present in Opera 8.5 (yay no more ads!). Also I know I throw off some people without clarifying things sometimes so in order to achieve my goals in total I need to do this inside the script itself (IE not using the body tag).

if ((navigator.userAgent.indexOf("Opera 6")!=-1)¦¦(navigator.userAgent.indexOf("Opera/6")!=-1)¦¦(navigator.userAgent.indexOf("Opera 5")!=-1)¦¦(navigator.userAgent.indexOf("Opera/5")!=-1)¦¦(navigator.userAgent.indexOf("Opera 4")!=-1)¦¦(navigator.userAgent.indexOf("Opera/4")!=-1))
{
document.writeln('<div class="bodyopera456" id="DivBody">'); changeStyle();
}

Suggestions?

JAB Creations

3:10 pm on Sep 25, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Bump ... anyone?