Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
If we do not hit our goal we will be forced to close the site.

Current status: https://keepboardsalive.com/

Annual subs are best for most impact. If you are still undecided on going Ad Free - you can also donate using the Paypal Donate option. All contribution helps. Thank you.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.

DW throwing up an error I can't fix in the code... Help please?

  • 10-01-2007 05:39PM
    #1
    Registered Users, Registered Users 2 Posts: 1,795 ✭✭✭


    Guys,
    this is the first time this has cropped up, and I don't know how to resolve it. The template is the basis for www.tullamorelife.net, for reference.

    In the menu box on the left, I added a button for "Guestbook". However, when I click on 'Save' and the pop-up comes up to update the associated files, I get the following error box, relating to line 134:

    DW%20error%20msg.JPG

    Line 134 looks like this:

    <body onload="goforit()", "MM_preloadImages('../images/tmore_life_button_b1_over.gif','../images/tmore_life_button_b2_over.gif',
    '../images/tmore_life_button_b3_over.gif','../images/tmore_life_button_b4_over.gif','../images/tmore_life_button_b5_over.gif',
    '../images/tmore_life_button_b6_over.gif','../images/tmore_life_button_b7_over.gif','../images/tmore_life_button_b8_over.gif',
    '../images/tmore_life_button_b9_over.gif','../images/tmore_life_button_b10_over.gif','../images/tmore_life_button_b11_over.gif',
    '../images/tmore_life_button_b12_over.gif')"><body onload="MM_preloadImages('../images/tmore_life_button_b13_over.gif')">

    As far as I can see, all instances of what is to be preloaded are there. But, what am I overlooking?

    :(

    Seanie.

    P.S. I broke the line up for the sake of fitting into this window, otherwise it is one continuous line.


Comments

  • Closed Accounts Posts: 39 Arch-Stanton


    Change it to this

    <body onload="goforit()", "MM_preloadImages('../images/tmore_life_button_b1_over.gif','../images/tmore_life_button_b2_over.gif',
    '../images/tmore_life_button_b3_over.gif','../images/tmore_life_button_b4_over.gif','../images/tmore_life_button_b5_over.gif',
    '../images/tmore_life_button_b6_over.gif','../images/tmore_life_button_b7_over.gif','../images/tmore_life_button_b8_over.gif',
    '../images/tmore_life_button_b9_over.gif','../images/tmore_life_button_b10_over.gif','../images/tmore_life_button_b11_over.gif',
    '../images/tmore_life_button_b12_over.gif','../images/tmore_life_button_b13_over.gif')">


  • Closed Accounts Posts: 8,866 ✭✭✭Adam


    Yeah, I haven't tested this but I'm assuming Arch-Stanton is right, why did you declare the body tag again for the 13th image? You can't declare body twice.

    EDIT: Just realised if you're building in DW you probably didn't declare anything, it built the code for you. DW shouldn't make fundamental mistakes like that, disgraceful!


  • Registered Users, Registered Users 2 Posts: 1,795 ✭✭✭Seanie M


    Ah, yes, I see it now! It's great to have more pairn of eyes look at it. I was in a rush at the time, and this place was my first port of call! I haven't a notion why it added a second instance of onLoad like that. Thanks guys, I'll clean up that line to the way it should look (like Stanton showed).

    Phew!


  • Registered Users, Registered Users 2 Posts: 1,795 ✭✭✭Seanie M


    Yep, all is ordered and in perfect harmony in the cosmos now!

    Thanks guys. Though I'm a bit embaressed I didn't spot that double whammy on my own!

    :o

    Seanie.


Advertisement