Autor Beitrag
WeBsPaCe
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 2322
Erhaltene Danke: 1

FireFox 3, Internet Explorer 6 SP1
D1, D3Prof, D6Pers, D7Pers+Indy, VisualStudio Express
BeitragVerfasst: Fr 29.07.05 20:50 
Moin... ;)

Ich verwende in meinem CSS-Stylesheet ein input:hover { ... }, was der FireFox problemlos akzeptiert und auch alles funktioniert wie's soll. Der Internet Explorer jedoch zeigt nur die Eigenschaften aus input { ... } an und macht bei input:hover { ... } gar nichts. :gruebel:

Weiß dazu jemand was? Danke schonmal. ;)
StefanH
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 1144

Win XP
D5 Standard, D7 Pers, D2005 Pers
BeitragVerfasst: Fr 29.07.05 21:09 
der IE macht das nur bei a:hover :roll: du wirst wohl JavaScript nehmen müssen oder auf den IE pfeiffen ;)

_________________
"Als es noch keine Computer gab, war das Programmieren noch relativ einfach."(Edsger W. Dijkstra)
"Ich bin nicht von Sinnen, sondern ich rede wahre und vernünftige Worte." (Paulus)
matze.de
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 576

Win95, Win98 SE, WinXp Prof SP2
D7P, D8P, FPC2.0
BeitragVerfasst: Sa 30.07.05 08:59 
Jup, JS is die Lösung :)

mfg matze

_________________
si tacuisses, philosophus mansisses.
StefanH
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 1144

Win XP
D5 Standard, D7 Pers, D2005 Pers
BeitragVerfasst: Sa 30.07.05 09:48 
user profile iconmatze.de hat folgendes geschrieben:
Jup, JS is die Lösung :)


ich nehm meistens die Zweite :lol:

_________________
"Als es noch keine Computer gab, war das Programmieren noch relativ einfach."(Edsger W. Dijkstra)
"Ich bin nicht von Sinnen, sondern ich rede wahre und vernünftige Worte." (Paulus)
WeBsPaCe Threadstarter
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 2322
Erhaltene Danke: 1

FireFox 3, Internet Explorer 6 SP1
D1, D3Prof, D6Pers, D7Pers+Indy, VisualStudio Express
BeitragVerfasst: Sa 30.07.05 12:17 
Mhmm... Wenn ich jetzt nicht auf den Internet Explorer pfeifen möchte (was aber auch kein Problem wäre :mrgreen:), dann muss ich also JS verwenden. Vielleicht onFocus und onBlur? Damit komme ich nämlich nicht so wirklich zurecht:

ausblenden Quelltext
1:
<input type="text" style="background-color:#EEEEEE" onFocus="this.style.backgroundColor=#FFFFFF" onBlur="this.style.backgroundColor=#EEEEEE">					


Funktioniert irgendwie nicht... :gruebel: :(
alcaeus
half ontopic starofftopic starofftopic starofftopic starofftopic starofftopic starofftopic starofftopic star
Beiträge: 226



BeitragVerfasst: Sa 30.07.05 13:30 
onFocus und onBlur betreffen den Cursor. Soll das Ganze gehn sobald die Maus drueber ist? Dann musst du onMouseMove und onMouseOut verwenden ;)

AFAIR gibts die :hover-Pseudoklasse aber nur fuer Links, und nicht fuer alles andere. In dem Fall koennte ich mich auch irren, in selfHTML ist aber nur von "Pseudoklassen fuer Links" die Rede, sobald es um :hover geht.

Greetz
alcaeus
WeBsPaCe Threadstarter
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 2322
Erhaltene Danke: 1

FireFox 3, Internet Explorer 6 SP1
D1, D3Prof, D6Pers, D7Pers+Indy, VisualStudio Express
BeitragVerfasst: Sa 30.07.05 13:41 
user profile iconalcaeus hat folgendes geschrieben:
onFocus und onBlur betreffen den Cursor. Soll das Ganze gehn sobald die Maus drueber ist? Dann musst du onMouseMove und onMouseOut verwenden ;)

Ich meine auch den Cursor. ;) Ich verwende natürlich input:focus... :autsch:

user profile iconalcaeus hat folgendes geschrieben:
AFAIR gibts die :hover-Pseudoklasse aber nur fuer Links, und nicht fuer alles andere. In dem Fall koennte ich mich auch irren, in selfHTML ist aber nur von "Pseudoklassen fuer Links" die Rede, sobald es um :hover geht.

Also input:hover sowie input:focus funktionieren bei mir super im Firefox. ;)
StefanH
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 1144

Win XP
D5 Standard, D7 Pers, D2005 Pers
BeitragVerfasst: Sa 30.07.05 13:45 
user profile iconWeBsPaCe hat folgendes geschrieben:

ausblenden Quelltext
1:
<input type="text" style="background-color:#EEEEEE" onFocus="this.style.backgroundColor='#FFFFFF'" onBlur="this.style.backgroundColor='#EEEEEE'">					


wann lernst du endlich selfHTML zu benutzen? :roll: :wink:

_________________
"Als es noch keine Computer gab, war das Programmieren noch relativ einfach."(Edsger W. Dijkstra)
"Ich bin nicht von Sinnen, sondern ich rede wahre und vernünftige Worte." (Paulus)
WeBsPaCe Threadstarter
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 2322
Erhaltene Danke: 1

FireFox 3, Internet Explorer 6 SP1
D1, D3Prof, D6Pers, D7Pers+Indy, VisualStudio Express
BeitragVerfasst: Sa 30.07.05 14:11 
Oh mein Gott. :shock: Ich hatte es auch irgendwann so mal, bin ich mir 100%ig sicher. Aber... :autsch: :autsch: ...ich hab' beim IE diese Eigenschaft "Gefährliche Inhalte blocken" drin. ;) Dann funktioniert's nicht. Hab's aber jetzt gemerkt, wieder eingeschaltet und siehe da, alles funktioniert. ;)

Danke! :)
alcaeus
half ontopic starofftopic starofftopic starofftopic starofftopic starofftopic starofftopic starofftopic star
Beiträge: 226



BeitragVerfasst: So 31.07.05 01:44 
user profile iconWeBsPaCe hat folgendes geschrieben:
Ich meine auch den Cursor. ;) Ich verwende natürlich input:focus... :autsch:

Da sagt der Titel was anderes, aber egal ;)

user profile iconWeBsPaCe hat folgendes geschrieben:
Also input:hover sowie input:focus funktionieren bei mir super im Firefox. ;)

Hmm....<marquee> funktioniert bei mir super im IE ;)
Soll heissen: ich bin mir nicht sicher dass es wirklich CSS-Spezifikation ist. Nur weil etwas in einem Browser funktioniert, heisst das noch lange nicht, dass es in der Spezifikation ist ;)
Ich kann mich auch irren, ein Link zu einer Referenz (ausser selfHTML) sollte das natuerlich aufklaeren.

user profile iconWeBsPaCe hat folgendes geschrieben:
Mhmm... Wenn ich jetzt nicht auf den Internet Explorer pfeifen möchte (was aber auch kein Problem wäre :mrgreen:)

Hmm...waere wohl keine gute Idee, das wuerde bedeuten dass ich z.B. nicht auf deine Website gehn wuerde ;)
Das ist es was einen guten Webdesigner ausmacht: mach es so gut, dass es in allen Browsern funktioniert. Glaub mir, ich hatte mit dem Firefox auch schon meine schweren Zeiten, und ich haette genausogut auf die FF-Unterstuetzung pfeifen koennen (mir lag aber was dran, soviele Browser wie moeglich zu unterstuetzen). Als Delphi-Entwickler kann ich auch nicht sagen "Hmm, in Windows 2000 gabs diese API-Funktion, die ich verwende, aber in XP ist die nicht mehr drin. Naja, egal, pfeif ich eben auf die XP-Unterstuetzung". Ich werde wohl einen grossen Teil meiner Userbase verlieren, wenn ich ein weitverbreitetes OS (oder in diesem Fall einen weitverbreiteten Browser) nicht unterstuetze. Zugegeben: es gibt Sachen die ich im IE vermisse, die ich im FF vermisse, teilweise sogar sachen, die ich in der HTML-Spezifikation vermisse. Die baue ich mir eben irgendwie nach ;)

Greetz
alcaeus
Maweki
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 197

Ubuntu Linux
Lazarus
BeitragVerfasst: So 31.07.05 10:19 
In den Specs des Konsortiums steht drinne, dass diese Pseudoklassen fuer alle Elemente gelten. Also sowohl Block- als auch Inline-Elemente. Aber der IE unterstuetzt das nur fuer Inline-Elemente...
Und da Input ein Block-Element ist...

der FF macht es an dieser Stelle richtig.

Und du sperrst ja den IE nicht ganz aus. Ganz im Gegenteil. Es sieht doch sicher auch ohne dieses Focus und Hover gut aus. Und ich wuerde eher eine Seite mit IE besuchen die Gut ausschaut und in FF halt noch besser, als eine Seite die JavaScript bei mir ausfuehren will...
WeBsPaCe Threadstarter
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 2322
Erhaltene Danke: 1

FireFox 3, Internet Explorer 6 SP1
D1, D3Prof, D6Pers, D7Pers+Indy, VisualStudio Express
BeitragVerfasst: So 31.07.05 13:52 
user profile iconMaweki hat folgendes geschrieben:
Und du sperrst ja den IE nicht ganz aus. Ganz im Gegenteil. Es sieht doch sicher auch ohne dieses Focus und Hover gut aus. Und ich wuerde eher eine Seite mit IE besuchen die Gut ausschaut und in FF halt noch besser, als eine Seite die JavaScript bei mir ausfuehren will...

Eben. Genauso sehe ich das auch. Im Internet Explorer hab ich dann eben nur "ganz normale" Inputs und der Hintergrund ändert sich nicht, wenn man reinklickt. Ist dann eben ein Zusatzfeature für den FireFox... :tongue:

Danke auf jeden Fall für alle Posts... ;)