Results 1 to 7 of 7
  1. #1

    Default Color properties in JQuery Problems for IE6


    mga bro,

    nakasulay namo encounter anang dili mu color ang text kung ma hover? mao ni code nako ai:

    if ($.browser.msie && $.browser.version.substr(0, 1) < 7) {
    $(".allArticlesSortOption dd ul li a").hover(function() {
    $(this).css({ "background-color": "#666666", "border": "1px solid #666666", "color": "#FFFFFF" });


    }, function() {
    $(this).css({ "background-color": "#FFFFFF", "border": "1px solid #FFFFFF", "color": "#333333" });

    });
    }

    wa ko kasabot ngano di mu work ang color pero mu work man ang background-color

  2. #2

    Default Re: Color properties in JQuery Problems for IE6

    bro dili mo work kung css lang?

  3. #3

    Default Re: Color properties in JQuery Problems for IE6

    Quote Originally Posted by janmuy View Post
    mga bro,

    nakasulay namo encounter anang dili mu color ang text kung ma hover? mao ni code nako ai:

    if ($.browser.msie && $.browser.version.substr(0, 1) < 7) {
    $(".allArticlesSortOption dd ul li a").hover(function() {
    $(this).css({ "background-color": "#666666", "border": "1px solid #666666", "color": "#FFFFFF" });


    }, function() {
    $(this).css({ "background-color": "#FFFFFF", "border": "1px solid #FFFFFF", "color": "#333333" });

    });
    }

    wa ko kasabot ngano di mu work ang color pero mu work man ang background-color
    Dynamic (on-the-fly) ba ang pag-create nimo sa elements ".allArticlesSortOption dd ul li a"?

    I-try pod nga addClass/removeClass nga paagi imo gamiton, something like:
    Code:
    $(".allArticlesSortOption dd ul li a").hover(
      function () {
        $(this).addClass("hover");
      },
      function () {
        $(this).removeClass("hover");
      }
    );

  4. #4

    Default Re: Color properties in JQuery Problems for IE6

    sidenote: use [CODE] tags to denote code.Para mas sayon ibasa.

    Anyways, if ato lng i-base sa code na imo gihatag wla juy sayop na makit-an. Unfortunately, daghan kaau lain factors na dapat i-consider when debugging javascript. Best way to detect the error is use the console tab of firebug (a firefox plugin) or ang built in na equivalent sa chrome.

    Or if you want, post the rest of your code here or imo mark-up ibutang pd dri, pra ato matan-aw.

    Also, go with addClass and removeClass as the previous poster suggested. Mas sayon i-manipulate or change imo code later on if kana imo gamiton.

    Good luck.

  5. #5

    Default Re: Color properties in JQuery Problems for IE6

    @ts try using posting it in jsfiddle.com

    save it there and share the link here para makit-an

  6. #6

    Default Re: Color properties in JQuery Problems for IE6

    thanks mga bro, i try sa to nako tong add and remove technique. pero wierd siya in a way jud sa ie 6

  7. #7

    Default Re: Color properties in JQuery Problems for IE6

    custom controls siya and dynamic

  8.    Advertisement

Similar Threads

 
  1. Replies: 9
    Last Post: 06-09-2013, 07:41 PM
  2. For Sale: For sale Lot only in BF properties in Mactan!!!
    By kristinejessa in forum Real Estate
    Replies: 0
    Last Post: 07-16-2011, 10:54 AM
  3. Problem for average in array
    By public7enemy in forum Programming
    Replies: 2
    Last Post: 03-06-2011, 10:46 PM
  4. blue screen problem for windows 7 in laptop
    By andriy in forum Gizmos & Gadgets (Old)
    Replies: 3
    Last Post: 12-16-2010, 02:41 PM
  5. Replies: 3
    Last Post: 09-10-2010, 01:01 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
about us
We are the first Cebu Online Media.

iSTORYA.NET is Cebu's Biggest, Southern Philippines' Most Active, and the Philippines' Strongest Online Community!
follow us
#top