Skip to main content
Participant
Jul 13, 2012 5:53 PM UTC
Question

Syntax error?

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 is closed to new replies. Start a new post to keep the conversation going.

6 replies

Participating Frequently
Jul 13, 2012 6:12 PM UTC

You are missing line terminators in your for loop.

Translate
Bubby4jAuthor
Participant
Jul 13, 2012 6:16 PM UTC

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

Translate
Bubby4jAuthor
Participant
Jul 13, 2012 6:20 PM UTC

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.

Translate