Forums

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

Home Forums JavaScript Jquery working in Firefox, not in IE

  • This topic is empty.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #28602
    Kenneth
    Member

    I’m taking my first steps with jquery. Simple script I found on a website but it seems to work in Firefox but not in IE8
    I’ve compared the original site with my script but i can’t find any difference. Maybe you can find the error

    Header

    Code:

    HTML

    Code:


    CSS

    Code:
    .afbeeldingen{
    height: 240px;
    width: 240px;
    padding: 0;
    margin: 0;
    }

    .afbeeldingen img {
    padding: 15px;
    border: 1px solid #ccc;
    background-color: #eee;
    width: 200px;
    height: 200px;
    top: 0;
    left: 0
    }

    In IE8 it just shows the three images like if there was no script

    #73519
    Kenneth
    Member

    Ok, solved it. Beginners mistake and a very stupid one

    <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"</script&gt;

    <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script&gt;

    See the difference between the two lines? Forgot the closing tag :oops:

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