"There is a syntax error on line 18."


i'm not sure why i'm getting error. i'm getting have optional, editable region.

 

can 1 else see it? here's code:

 

<!doctype html public "-//w3c//dtd xhtml 1.0 transitional//en" "http://www.w3.org/tr/xhtml1/dtd/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml"><!-- instancebegin template="/templates/screen.dwt" codeoutsidehtmlislocked="false" -->

<head>

<meta http-equiv="content-type" content="text/html; charset=utf-8" />

<!-- instancebegineditable name="doctitle" -->

<title>website</title>

<!-- instanceendeditable -->

<link href="../../css/desktop.css" rel="stylesheet" type="text/css" media="screen" />

<!-- instancebegineditable name="head" -->

<!-- instanceendeditable -->

<!-- instanceparam name="breadcrumbs" type="boolean" value="false" -->

<script type="text/javascript">

function mm_preloadimages() { //v3.0

  var d=document; if(d.images){ if(!d.mm_p) d.mm_p=new array();

    var i,j=d.mm_p.length,a=mm_preloadimages.arguments; for(i=0; i<a.length; i++)

    if (a[i].indexof("#")!=0){ d.mm_p[j]=new image; d.mm_p[j++].src=a[i];}}

}

</script> <!-- here line 18, error pops up... script error suppose? -->

</head>

 

can 1 else see error?

i don't know if use cdata thingy, code validate:

 

<!doctype html public "-//w3c//dtd xhtml 1.0 strict//en"

    "http://www.w3.org/tr/xhtml1/dtd/xhtml1-strict.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">

<!-- instancebegin template="/templates/screen.dwt" codeoutsidehtmlislocked="false" -->

<head>

<meta http-equiv="content-type" content="text/html; charset=utf-8" /><!-- instancebegineditable name="doctitle" -->

<title>website</title>

<!-- instanceendeditable -->

<link href="../../css/desktop.css" rel="stylesheet" type="text/css" media="screen" /><!-- instancebegineditable name="head" -->

<!-- instanceendeditable -->

<!-- instanceparam name="breadcrumbs" type="boolean" value="false" -->

 

<script type="text/javascript">

//<![cdata[

 

function mm_preloadimages() { //v3.0

 

  var d=document; if(d.images){ if(!d.mm_p) d.mm_p=new array();

 

    var i,j=d.mm_p.length,a=mm_preloadimages.arguments; for(i=0; i<a.length; i++)

 

    if (a[i].indexof("#")!=0){ d.mm_p[j]=new image; d.mm_p[j++].src=a[i];}}

 

}

 

//]]>

</script>

</head>

 

i think make clear browser code not xhtml , prevents being parsed.  way around put script in external file.

 

i'm not sure matters might expert give opinion.

 

martin

 

http://stackoverflow.com/questions/7092236/what-is-cdata-in-html



More discussions in Dreamweaver support forum


adobe

Comments

Popular posts from this blog

How to change text Component easybook reloaded *newbee* - Joomla! Forum - community, help and support

After Effect warning: A problem occurred when processing OpenGL commands

Preconditions Failed. - Joomla! Forum - community, help and support