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 Coder
    Join Date
    Jan 2009
    Posts
    58
    Thanks
    4
    Thanked 3 Times in 3 Posts

    Cross browser javascript issue

    ok, so i am working on a type of Option Box that is heavily formatted with CSS and animated using JS $fx()

    The $fx framework works fine on all browsers, and i have only used fairly simple code, and yet my page functions perfectly on Chrome and Safari.
    but will not work in Firefox or IE

    (Firefox does nothing, and IE has a couple of css issues and doesnt work either...)

    http://calumk.com/else/blogpoststuff...ng_Option_Box/

    if anyone could help me i would really appreciate it.

    (obviously view in Chrome or safari to see how it is meant to respond)

  • #2
    Supreme Master coder! _Aerospace_Eng_'s Avatar
    Join Date
    Dec 2004
    Location
    In a place far, far away...
    Posts
    19,291
    Thanks
    2
    Thanked 1,043 Times in 1,019 Posts
    You need to use marginLeft as opposed to margin-left. Why Chrome and Safari work I don't know. They really shouldn't I guess they treat it the same way as the DOM name. This might help you.

    http://codepunk.hardwar.org.uk/css2js.htm

    It even says it in the manual.

    Quote Originally Posted by fx
    type — type of animation effect. The type paramter is same as the CSS property name for a DOM element.
    ||||If you are getting paid to do a job, don't ask for help on it!||||

  • #3
    New Coder
    Join Date
    Jan 2009
    Posts
    58
    Thanks
    4
    Thanked 3 Times in 3 Posts
    Thanks, guess i overlooked that as it was working in the webkit browsers, sorry!


  •  

    Posting Permissions

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