Zum Inhalt springen
View in the app

A better way to browse. Learn more.

Fachinformatiker.de

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Scrollrad

Empfohlene Antworten

Veröffentlicht

Hallo!

Hab da mal ne Frage!

Über JS kann man ja abfragen, ob und wenn ja welche Maustaste der Anwender gedrückt hat!

Geht es vielleicht auch, dass man abfängt, ob der User am Scrollrad dreht?

Bis denn...

Moin,

es gibt in JS die sogenannten CaptureEvents-Methoden.

Damit kannst Du folgende Events abfangen:

  • Event.ABORT
  • Event.BLUR
  • Event.CHANGE
  • Event.CLICK
  • Event.DBLCLICK
  • Event.DRAGDROP
  • Event.ERROR
  • Event.FOCUS
  • Event.KEYDOWN
  • Event.KEYPRESS
  • Event.KEYUP
  • Event.LOAD
  • Event.MOUSEDOWN
  • Event.MOUSEMOVE
  • Event.MOUSEOUT
  • Event.MOUSEOVER
  • Event.MOUSEUP
  • Event.MOVE
  • Event.RESET
  • Event.RESIZE
  • Event.SELECT
  • Event.SUBMIT
  • Event.UNLOAD

Die fetten dürften dürften die sein, die für dich interessant sind.

Näheres zur Anwendung und Notation:

http://selfhtml.teamone.de/javascript/objekte/window.htm#capture_events

Hoffe ich konnte helfen!

Danke!

Bei den Events war ich schon, aber Event.DRAGDROP hab ich wohl übersehen!

Bis denn...:marine

Hi!

Jetzt gibt es nur noch ein Problem:

Das ganze funktioniert nicht.

:confused:

Bis denn...:marine

Original geschrieben von AlexBossi

Bei den Events war ich schon, aber Event.DRAGDROP hab ich wohl übersehen!

Hi!

Wenn ich aus der Java-Applet Abteilung reden darf, Drag-n-Drop ist was ganz anderes als mit dem Mouserad zu klimpern. Wenn du die Mousetaste gedrückt hältst und etwas ziehst, das ist drag-n-drop.

Ich fürchte, so weit das Mouserad nicht im weitesten Sinne als Taste durchgeht, hast du mit JS leider verloren.

Ciao,

Florian

Original geschrieben von jomama

Funzt aber erst ab IE6.0.

... und nur im IE... , soviel zu Standards :rolleyes:;)

Hallo!

Vielen Dank!

Das es nur im IE geht, damit muss ich wohl im Moment erstmal leben. Ist ja nicht das einzigste, was nur da geht!

Bis denn...:uli

du könntest auch mit dem eventHandler onScroll arbeiten!!!

einfach in den body deiner seite reinmachen.

das funktioniert dann beim scrollen mit dem mouserad und beim scrollen durch anklicken der bars!

gruss

kills

Archiv

Dieses Thema wurde archiviert und kann nicht mehr beantwortet werden.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.