Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS JQuery browser issue

  • This topic is empty.
Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #35555
    downbylaw
    Member

    Hi guys,

    a couple of days ago I started learning JQuery. For my new website I’m trying to use JQuery to fade a splash in on the homepage; and on the references page slide a picture down.

    I use the lastest version of Firefox (+ MAMP) to run the website locally in development. Yesterday I’ve added some JQuery code to the site… It worked perfectly on Firefox but when I decided to test it out on Safari, Chrome (and even Opera) the effects didn’t work… none of them!

    It’s a very simple script but I can’t figure out what I’m doing wrong. I used all possibilities that I can imagine…

    This is the code for the splash image on the homepage:

    // CSS

    #splash {
    width: 930px;
    height: 250px;
    padding-top: 10px;
    margin-left: 10px;
    margin-right: 10px;
    }

    #splash img {
    background-image: url('images/splash/splash_1.jpg');
    -moz-border-radius: 15px; /* Firefox */
    -webkit-border-radius: 15px; /* Safari, Chrome */
    border-radius: 15px; /* CSS3 */
    behavior: url(includes/border-radius.htc);
    }

    // PHP







    Hope somebody can help!

    #92320
    downbylaw
    Member

    Some of the PHP script did load correctly: (I’ve removed the first ‘<‘)



    #92328
    jamygolden
    Member

    I don’t understand your second comment. Is this working correctly now?

    #92333
    Mottie
    Member

    I cleaned up his code in the post… so the second post was to say the first one didn’t look right

    #92339
    downbylaw
    Member

    Thx for cleaning up the post. It’s my first one… It’s still doesn’t work correctly.

    #92609
    downbylaw
    Member

    Please?

    #92616
    Senff
    Participant

    Try replacing the script with this (no function around it and such):


    #92628
    jamygolden
    Member

    Oh, I think I see the problem. You’re not using curly braces, you’re just using parenthesis.

    Try this:

            $ (function(){
    $('#splash').hide().fadeIn(1000)
    });
    #92731
    downbylaw
    Member

    Great! It works. Thanks a lot!

Viewing 9 posts - 1 through 9 (of 9 total)
  • The forum ‘CSS’ is closed to new topics and replies.