Skip to main content
Participant
July 13, 2012
Question

Syntax error?

  • July 13, 2012
  • 1 reply
  • 1307 views

Dreamweaver is telling me there's a syntax error, and yet I see no errors around the line.

This is the part of the page

<script type="text/javascript">

    function logout(){

    document.forms["logoutform"].submit();

    }

   

    function openMail(){

        window.open("/mail.php","mailer","menubar=no,toolbar=no,height=360,width=485");

    }

   

    //Preload

    function preload() {

              for (i = 0; i < preload.arguments.length; i++) {

                        images = new Image()

                        images.src = preload.arguments

              }

    }

    preload("/tabHover.png");

    </script>

-->DREAMWEAVER SHOWS ERROR IS ON THIS BLANK LINE<--

    <style type="text/css">

Why does it say there is a error there? If I take the > off of </script> it says there's no error.

This topic has been closed for replies.

1 reply

Participating Frequently
July 13, 2012

You are missing line terminators in your for loop.

Bubby4jAuthor
Participant
July 13, 2012

Ah, good find, however I fixed that and it still says syntax error.

Bubby4jAuthor
Participant
July 13, 2012

I fixed one other error (images was not defined) and it runs fine in the browser, but dreamweaver still says there's a syntax error.