Skip to content Skip to sidebar Skip to footer

How To Set Cursor Off Screen?

I'm creating a website for a kiosk. I've got 3 divs on one page, everytime when a div is clicked, next div shows up using a photoslide, and the previous div hides away. My problem

Solution 1:

I'd suggest that if you're using JavaScript for this, that you don't need ANCHOR tags because you've already negated the need for them.

I'd suggest changing to adding click events to the div tags and storing additional application data on "data-" attributes and reading those with JavaScript instead.

This workaround eliminates a few problems like the one above.

Solution 2:

you could make the first element a div only (without the a tag) catch the onclick event and then redirect via javascript (or do whatever action the a tag has)?

Post a Comment for "How To Set Cursor Off Screen?"