Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New to the CF scene
    Join Date
    Oct 2013
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Alternative mouse cursor

    Hi,
    Is it to possible make alternative mouse cursor? Div tag as mouse pointer - navigate with four buttons and left click also button. I need this for Smart TV there no mouse!

  • #2
    Senior Coder jmrker's Avatar
    Join Date
    Aug 2006
    Location
    FL
    Posts
    3,026
    Thanks
    36
    Thanked 494 Times in 488 Posts

    Question

    Quote Originally Posted by Einars View Post
    Hi,
    Is it to possible make alternative mouse cursor? Div tag as mouse pointer - navigate with four buttons and left click also button. I need this for Smart TV there no mouse!
    Can you expand upon your request?
    What does your current HTML, CSS and JS look like for this particular problem?
    Are you asking for a :hover effect on a non-mouse device?

  • #3
    Senior Coder rnd me's Avatar
    Join Date
    Jun 2007
    Location
    Urbana
    Posts
    4,184
    Thanks
    10
    Thanked 569 Times in 550 Posts
    you can certainly move a fixed position arrow image around the screen.
    you can look 1px to the left and above that img to find the element it's "over" using document.elementFromPoint().

    once you know the element, you can call .click() on it to fire any onclick()s you have added to the element.
    my site (updated 13/9/26)
    BROWSER STATS [% share] (2014/1/19) IE7:0.2, IE8:6.7, IE11:7.4, IE9:3.8, IE10:4.4, FF:18.3, CH:43.6, SF:7.8, MOBILE:27.5


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •