Grow your CSS skills. Land your dream job.

java doesn’t work

  • # July 12, 2009 at 1:17 pm

    I cant see where’s the problem here… The javascript doesn’t work at all

    I just started learning javascript and I made my first functsion.

    HTML:

    Code:
    < !DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">




    Vajuta mind!

    CSS :

    Code:
    * {
    margin: 0;
    padding: 0;
    font-family: Tahoma, Geneva, sans-serif;
    font-size: 12px;
    }

    /* Haihtuv kast */
    #kast {
    background: #000;
    height: 300px;
    width: 300px;
    }

    javascript:

    Code:
    $(function() {
    $(‘a’).click(function() {
    $(‘#kast’).fadeout(5000);
    });
    });

    The addresses are right…

    # July 12, 2009 at 1:30 pm

    Use firebug. Is jQuery loading?
    The paths don’t look right to me, but it’s your directory structure.

    # July 12, 2009 at 1:53 pm

    I rechecked the addresses. All match.

    How can I use firebug fof checking and what should I check with it? And how do i know if the jquery loads?

    Do I have to tell the js document where the jQuery is situated?

    # July 12, 2009 at 4:56 pm
    Quote:
    How can I use firebug fof checking and what should I check with it? And how do i know if the jquery loads?

    In firebug click the dropdown next to head, then click the dropdown next to the jQuery link. If jQuery is loading you will see the jQuery script there.

    It is not necessary to use absolute urls, relative will do fine.

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.

*May or may not contain any actual "CSS" or "Tricks".