Skip navigation
Bubby4j
Currently Being Moderated

Syntax error?

Jul 13, 2012 10:53 AM

Tags: #error #dreamweaver #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,wi dth=485");

    }

   

    //Preload

    function preload() {

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

                        images[i] = new Image()

                        images[i].src = preload.arguments[i]

              }

    }

    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.

 
Replies
  • Currently Being Moderated
    Jul 13, 2012 11:12 AM   in reply to Bubby4j

    You are missing line terminators in your for loop.

     
    |
    Mark as:
  • Currently Being Moderated
    Jul 13, 2012 11:51 AM   in reply to Bubby4j

    Sometimes the syntax checker gets a little tired.

     

    Usually, the error message goes away if you save the file, close it, and reopen it.

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points