Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsGeneralPHPASPPerlColdFusionFlashHTML, CSS, ScriptsBrowsers

Webmaster Forum / HTML, CSS, Scripts / CSS / February 2008



Tip: Looking for answers? Try searching our database.

How to set focus to a div?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Amir  Michail - 28 Feb 2008 18:40 GMT
Hi,

Under Firefox, you can't scroll using the keyboard on this links page
unless you click on the div first:

http://numbrosia.com/?cmd=links

Is there a way to automatically set focus to a div?

Amir
Michael Fesser - 28 Feb 2008 19:13 GMT
.oO(Amir Michail)

>Under Firefox, you can't scroll using the keyboard on this links page
>unless you click on the div first:
>
>http://numbrosia.com/?cmd=links
>
>Is there a way to automatically set focus to a div?

What about fixing the site? I can't scroll there at all, neither
keyboard nor mouse wheel are working. I have to turn off CSS in order to
make the site usable. Really broken.

Micha
Beauregard T. Shagnasty - 28 Feb 2008 19:21 GMT
Amir Michail wrote:

> Under Firefox, you can't scroll using the keyboard on this links page
> unless you click on the div first:
>
> http://numbrosia.com/?cmd=links

Eww.

Why - if I scroll to the right (a no-no itself) do I find an extra
scrollbar lodged inside my own vertical scrollbar?

Why:  "Please enable JavaScript."  So I can see your Google ads?
(obtrusive ads are one big reason a lot of people surf with JavaScript
disabled)

> Is there a way to automatically set focus to a div?

<div id="somename"> ... content ... </div>

and with a link of:  http://example.com/mypage.html#somename

Signature

  -bts
  -Motorcycles defy gravity; cars just suck

Amir  Michail - 28 Feb 2008 19:35 GMT
On Feb 28, 2:21 pm, "Beauregard T. Shagnasty"
<a.nony.m...@example.invalid> wrote:
> Amir Michail wrote:
> > Under Firefox, you can't scroll using the keyboard on this links page
[quoted text clipped - 6 lines]
> Why - if I scroll to the right (a no-no itself) do I find an extra
> scrollbar lodged inside my own vertical scrollbar?

This is not a problem under Firefox.  I don't know how to fix this
under IE7.

> Why:  "Please enable JavaScript."  So I can see your Google ads?
> (obtrusive ads are one big reason a lot of people surf with JavaScript
[quoted text clipped - 5 lines]
>
> and with a link of:  http://example.com/mypage.html#somename

Yes, that works, thanks.

Amir

> --
>    -bts
>    -Motorcycles defy gravity; cars just suck
Beauregard T. Shagnasty - 28 Feb 2008 19:59 GMT
Amir Michail wrote:

>> Amir Michail wrote:
>>> Under Firefox, you can't scroll using the keyboard on this links
[quoted text clipped - 9 lines]
> This is not a problem under Firefox.  I don't know how to fix this
> under IE7.

Remove the overflow:auto; ?

I would use the blue sun as a body background image, set to no-repeat,
and just place that long menu in the content.  Seems simple enough.

This would also greatly reduce the scrolling lag .. to 'none'.

Your page is not scrollable at all in Opera.

Signature

  -bts
  -Friends don't let friends drive Vista

Beauregard T. Shagnasty - 28 Feb 2008 20:05 GMT
Beauregard T. Shagnasty replied to hisself:

> I would use the blue sun as a body background image, set to no-repeat,
> and just place that long menu in the content.  Seems simple enough.
>
> This would also greatly reduce the scrolling lag .. to 'none'.

Oh wait. The blue sun image is actual size of 1024x576 but you have
1037x628 in your code. So every time someone scrolls, the image is
trying to resize itself. Change either the code to the image size, or
resize the image to what you want on the page. Exactly.

Signature

  -bts
  -Friends don't let friends drive Vista

Amir  Michail - 28 Feb 2008 20:44 GMT
On Feb 28, 3:05 pm, "Beauregard T. Shagnasty"
<a.nony.m...@example.invalid> wrote:
> Beauregard T. Shagnasty replied to hisself:
>
[quoted text clipped - 7 lines]
> trying to resize itself. Change either the code to the image size, or
> resize the image to what you want on the page. Exactly.

I wanted to resize the image to the current window size.  So I used a
hack I found on the web to do that.

Amir

> --
>    -bts
>    -Friends don't let friends drive Vista
Bergamot - 28 Feb 2008 21:36 GMT
Amir Michail wrote:

> I wanted to resize the image to the current window size.  So I used a
> hack I found on the web to do that.

Just because you can, doesn't mean you should.

Signature

Berg

Amir  Michail - 28 Feb 2008 22:04 GMT
> Amir Michail wrote:
>
> > I wanted to resize the image to the current window size.  So I used a
> > hack I found on the web to do that.
>
> Just because you can, doesn't mean you should.

Why not?  One would expect a non-repeating puzzle/game background to
scale to the window size.

Amir

> --
> Berg
Michael Fesser - 28 Feb 2008 22:31 GMT
.oO(Amir Michail)

>> Amir Michail wrote:
>>
[quoted text clipped - 5 lines]
>Why not?  One would expect a non-repeating puzzle/game background to
>scale to the window size.

Not really. Or maybe it's just me who finds such distorted images ugly?
At first it wasn't even clear to me what this blue egg was supposed to
be (my browser viewport is almost a square at the moment) ...

Micha
Gregor Kofler - 29 Feb 2008 14:54 GMT
Amir Michail meinte:
> Hi,
>
[quoted text clipped - 4 lines]
>
> Is there a way to automatically set focus to a div?

You're kiddin', right? 87 warnings on a page that accomodates a a bleak
unordered list.

Gregor

Signature

http://photo.gregorkofler.at ::: Landschafts- und Reisefotografie
http://web.gregorkofler.com  ::: meine JS-Spielwiese
http://www.image2d.com       ::: Bildagentur für den alpinen Raum

 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.