facebook

Mouseover text to change background color CLOSED

  1. MobiOne Archive
  2.  > 
  3. Getting Help – General
Viewing 1 post (of 1 total)
  • Author
    Posts
  • #337657 Reply

    WaylandDavis
    Member

    **** After more checking, I found a workaround that handles the hover/highlight as an initial touch, then you have to touch it again to activate your function. Messy and not a really good situation *****

    I have an app with a text field on it. (Not an input field, just text.) I use the following code to highlight the text when my mouse passes over the text. It works just fine in the test center, but when I build an app for iOS 6.1.3 it no longer works, yet it used to work on my iPhone 4s.

    Here is the code:

    $(“#m1-a1test-text1”).mouseover(function(event)
    {
    $(“#m1-a1test-text1”).css(“backgroundColor” , “yellow”);

    }, function (event)
    {
    $(“#m1-a1test-text1”).css(“backgroundColor”, “transparent”);
    });

    It also works if I used .hover rather than .mouseover.
    It also works if I use “background-color” rather than “backgroundColor”

    Did something change in iOS to cause this or did something change in MobiOne?

Viewing 1 post (of 1 total)
Reply To: Mouseover text to change background color CLOSED

You must be logged in to post in the forum log in