I got a friend that's got this error with her javascript in a webpage. I haven't done any development in a LONG time, & therefore the correct syntax slips my mind.
Here's the code. It says there is a ) missing on line 23. If I'm so unaquainted with it to not see this error, mayhaps it's time I got back into development. Anyways, here's the code.
<html>
<head>
<title></title>
<meta name="generator" content="Created Using Yahoo! PageBuilder 2.61.84">
<meta name="author" content="">
<meta name="keywords" content="Christianity, weblog, journal">
<script src="<script>
function updateLock(c) {
var x = getViewXOffset() + c.xAnchor * (getViewWidth() - c.imageWidth) / 2 + c.xOffset * (c.xAnchor == 2 ? -1 : 1);
var y = getViewYOffset() + c.yAnchor * (getViewHeight() - c.imageHeight) / 2 + c.yOffset * (c.yAnchor == 2 ? -1 : 1);
moveLayer(c.prefix + 0, x, y);
setTimeout('updateLock(c' + c.uid + ')', c.updateInterval);
}
</script>
<meta http-equiv="Page-Enter" content="blendTrans(Duration=4)">
<meta http-equiv="Page-Exit" content="blendTrans(Duration=4)">
</head>
<body bgcolor="#9999CC" link="#0000FF" vlink="#000099" text="#000000"
* I believe the problem starts here*
onLoad="window.onresize=new Function('if (navigator.appVersion=='Netscape') history.go(0); else center();') center();">
<script>
if (layerSupport()) {
c694 = new config();
c694.uid = 694
c694.prefix = "y_lock694";
c694.image = "c694.imageWidth = 292;
c694.imageHeight = 256;
c694.startOnScreen = false;
c694.xAnchor = 0;
c694.yAnchor = 2;
c694.xOffset = 0;
c694.yOffset = 0;
writeImages(c694);
setTimeout('updateLock(c694)', c694.updateInterval);
}
</script>
<script>
if (layerSupport()) {
c706 = new config();
c706.uid = 706
c706.prefix = "y_lock706";
c706.image = "c706.imageWidth = 300;
c706.imageHeight = 50;
c706.startOnScreen = false;
c706.xAnchor = 2;
c706.yAnchor = 2;
c706.xOffset = 0;
c706.yOffset = 0;
writeImages(c706);
setTimeout('updateLock(c706)', c706.updateInterval);
}
</script>
<script>
if (layerSupport()) {
c713 = new config();
c713.uid = 713
c713.prefix = "y_lock713";
c713.image = "c713.imageWidth = 300;
c713.imageHeight = 50;
c713.startOnScreen = false;
c713.xAnchor = 1;
c713.yAnchor = 2;
c713.xOffset = 0;
c713.yOffset = 0;
writeImages(c713);
setTimeout('updateLock(c713)', c713.updateInterval);
}
</script>
<script>
function center() {
if (navigator.appVersion.indexOf('MSIE') != -1)
document.all['root'].style.left = Math.max((document.body.clientWidth - 780) / 2, 0);
else
document.PageElement.LAYERS['root'].left = Math.max((window.innerWidth - 780) / 2, 0);
}
</script>
Thanx for the help that anyone can offer.
Here's the code. It says there is a ) missing on line 23. If I'm so unaquainted with it to not see this error, mayhaps it's time I got back into development. Anyways, here's the code.
<html>
<head>
<title></title>
<meta name="generator" content="Created Using Yahoo! PageBuilder 2.61.84">
<meta name="author" content="">
<meta name="keywords" content="Christianity, weblog, journal">
<script src="<script>
function updateLock(c) {
var x = getViewXOffset() + c.xAnchor * (getViewWidth() - c.imageWidth) / 2 + c.xOffset * (c.xAnchor == 2 ? -1 : 1);
var y = getViewYOffset() + c.yAnchor * (getViewHeight() - c.imageHeight) / 2 + c.yOffset * (c.yAnchor == 2 ? -1 : 1);
moveLayer(c.prefix + 0, x, y);
setTimeout('updateLock(c' + c.uid + ')', c.updateInterval);
}
</script>
<meta http-equiv="Page-Enter" content="blendTrans(Duration=4)">
<meta http-equiv="Page-Exit" content="blendTrans(Duration=4)">
</head>
<body bgcolor="#9999CC" link="#0000FF" vlink="#000099" text="#000000"
* I believe the problem starts here*
onLoad="window.onresize=new Function('if (navigator.appVersion=='Netscape') history.go(0); else center();') center();">
<script>
if (layerSupport()) {
c694 = new config();
c694.uid = 694
c694.prefix = "y_lock694";
c694.image = "c694.imageWidth = 292;
c694.imageHeight = 256;
c694.startOnScreen = false;
c694.xAnchor = 0;
c694.yAnchor = 2;
c694.xOffset = 0;
c694.yOffset = 0;
writeImages(c694);
setTimeout('updateLock(c694)', c694.updateInterval);
}
</script>
<script>
if (layerSupport()) {
c706 = new config();
c706.uid = 706
c706.prefix = "y_lock706";
c706.image = "c706.imageWidth = 300;
c706.imageHeight = 50;
c706.startOnScreen = false;
c706.xAnchor = 2;
c706.yAnchor = 2;
c706.xOffset = 0;
c706.yOffset = 0;
writeImages(c706);
setTimeout('updateLock(c706)', c706.updateInterval);
}
</script>
<script>
if (layerSupport()) {
c713 = new config();
c713.uid = 713
c713.prefix = "y_lock713";
c713.image = "c713.imageWidth = 300;
c713.imageHeight = 50;
c713.startOnScreen = false;
c713.xAnchor = 1;
c713.yAnchor = 2;
c713.xOffset = 0;
c713.yOffset = 0;
writeImages(c713);
setTimeout('updateLock(c713)', c713.updateInterval);
}
</script>
<script>
function center() {
if (navigator.appVersion.indexOf('MSIE') != -1)
document.all['root'].style.left = Math.max((document.body.clientWidth - 780) / 2, 0);
else
document.PageElement.LAYERS['root'].left = Math.max((window.innerWidth - 780) / 2, 0);
}
</script>
Thanx for the help that anyone can offer.