Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6787929
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T17:25:28+00:00 2026-05-26T17:25:28+00:00

Im mobile optimizing a site and ive made a flyout menu. Ive disabled changing

  • 0

Im mobile optimizing a site and ive made a flyout menu. Ive disabled changing the colour of the menu button on :hover. I did this as the iPhone considers the last clicked to keep the hover pseudo-class.

However now im testing on blackberry and they have an desktop style cursor and so would benefit from the element changing colour on mouseover.

Is it possible to disable the hover color for iPhones but not for blackberrys? More generally, is there a way to have a hover color only for non-touch screen devices like blackberrys, as only they can really mouseover.
Thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T17:25:29+00:00Added an answer on May 26, 2026 at 5:25 pm

    This answers the first part of your question.
    Try using Modernizr and then adding an appleOS test.

    Modernizr.addTest('ipad', function () {
      return !!navigator.userAgent.match(/iPad/i);
    });
    
    Modernizr.addTest('iphone', function () {
      return !!navigator.userAgent.match(/iPhone/i);
    });
    
    Modernizr.addTest('ipod', function () {
      return !!navigator.userAgent.match(/iPod/i);
    });
    
    Modernizr.addTest('appleios', function () {
      return (Modernizr.ipad || Modernizr.ipod || Modernizr.iphone);
    });
    

    From there, you could add a class to the body if it’s iOS and apply the hover classes for only non-iOS devices.

    Ideally, you could just use the “notouch” body class that Modernizr adds to browser that don’t support touch, but in my experience it does not add this class to Blackberry browsers, even if the device doesn’t support touch. Let me know if you find differently!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Windows Mobile pops up a busy wheel - a rotating colour disk - when
I have a small mobile phone app that is acting strangely on the iPhone/Mobile
I want to create mobile apps for the iPhone and Android and Im wondering
I have a mobile site at m.site.org and the main site at site.org I
Mobile Safari on the iPhone allows you to specify different keyboard types for text
I am new to mobile application technologies.... We are developing applications for iPhone/android/blackberry/windows mobile.
Can mobile device bluetooth mac address be changed?? I am asking this because one
Call me crazy, but I'm optimizing a website for the Internet Explorer Mobile 7.
using mobile detection (js or php), is it possible to display top navi made
We have a special mobile version of our site that we would like to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.