PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Autres forums > Forum Programmation & Conception > comp.info.authoring.CSS > How to set focus to a div?
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
How to set focus to a div?

Réponse
 
LinkBack Outils de la discussion
Vieux 28/02/2008, 18h40   #1
Amir Michail
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut How to set focus to a div?

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
  Réponse avec citation
Vieux 28/02/2008, 19h13   #2
Michael Fesser
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: How to set focus to a div?

..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
  Réponse avec citation
Vieux 28/02/2008, 19h21   #3
Beauregard T. Shagnasty
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: How to set focus to a div?

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

--
-bts
-Motorcycles defy gravity; cars just suck
  Réponse avec citation
Vieux 28/02/2008, 19h35   #4
Amir Michail
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: How to set focus to a div?

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
> > 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?


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
> 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
>


Yes, that works, thanks.

Amir


> --
> -bts
> -Motorcycles defy gravity; cars just suck


  Réponse avec citation
Vieux 28/02/2008, 19h59   #5
Beauregard T. Shagnasty
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: How to set focus to a div?

Amir Michail wrote:

> "Beauregard T. Shagnasty" wrote:
>> 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?

>
> 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.

--
-bts
-Friends don't let friends drive Vista
  Réponse avec citation
Vieux 28/02/2008, 20h05   #6
Beauregard T. Shagnasty
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: How to set focus to a div?

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.

--
-bts
-Friends don't let friends drive Vista
  Réponse avec citation
Vieux 28/02/2008, 20h44   #7
Amir Michail
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: How to set focus to a div?

On Feb 28, 3:05 pm, "Beauregard T. Shagnasty"
<a.nony.m...@example.invalid> wrote:
> 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.
>


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


  Réponse avec citation
Vieux 28/02/2008, 21h36   #8
Bergamot
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: How to set focus to a div?

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.

--
Berg
  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 20h54.


Édité par : vBulletin® version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,11612 seconds with 16 queries