Javascript not working in FF only IE

Discussion in 'JavaScript' started by CircleOfLinks, May 18, 2008.

  1. #1
    Hey guys i need your help with something...

    Can you tell me how to fix up a script i installed on my site? basicallt whats happening is it wont work in FF but only in IE, I've used the same script on another site and its working fine in both IE and FF but not on my site

    If you go to page www.swiftproductions.com.au/recent_work.html towards the bottom is where the script it.

    thanks heaps
     
    CircleOfLinks, May 18, 2008 IP
  2. crath

    crath Well-Known Member

    Messages:
    661
    Likes Received:
    33
    Best Answers:
    0
    Trophy Points:
    100
    #2
    Line 18: Unknown Property: filter

    Line 68: Book_Div has no properties
    - You may have javascript looking for Book_Div before it is actually created by the html. Make sure the code runs after the html is already run (so, below the html)
     
    crath, May 18, 2008 IP
  3. jnwms

    jnwms Peon

    Messages:
    7
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    i've just gone on there and it doesn't seem that book_div exists. I can't find it in the html. From what crath said you might want to try window.onload remember this must be a function aa the function is copied into the event.
    do it like this.

    window.onload = ImageBook;

    Jon
     
    jnwms, May 18, 2008 IP