Forums

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

Home Forums JavaScript java doesn’t work

  • This topic is empty.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #25421
    plipli
    Member

    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:




    jQuery


    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…

    #60504
    apostrophe
    Participant

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

    #60508
    plipli
    Member

    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?

    #60557
    apostrophe
    Participant
    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)
  • The forum ‘JavaScript’ is closed to new topics and replies.