PDA

View Full Version : Error messages in IE



GodLovesDemeter
08-14-2007, 05:53 PM
Please help me everytime I open my site in Internet Explorer it has a little sign in the bottom left and when I click it it tells me the following:
Error!! Unterminated string constant.
Code 0
Line 5
Char 30

On Clicking on the next button the same message is displayed but further numbers.....There are 2 alltogether.....Can anyone tell me what it means I'm pretty new to coding and totally confused....Thanking you in advance....Ian

Twey
08-14-2007, 06:14 PM
Can anyone tell me what it meansNope. IE's default error messages are completely nonsensical -- you're better off just knowing that there is a problem and looking through the code yourself. It doesn't even pin the code down to the right line in most cases. Better debugging is offered by Visual Studio, but the chances are that if you were to post your code we'd be able to see the flaws without a debugger.

GodLovesDemeter
08-14-2007, 06:21 PM
Thanx butwould it be ok to post my full code on here or might it be to long??

Twey
08-14-2007, 06:24 PM
The forum post character limit is 10,000 characters. If it's longer than that, you can attach it up to a maximum size of 19.5KB. If it's bigger than that you can link to it.

GodLovesDemeter
08-14-2007, 06:30 PM
<html>
<head>
<script type="text/javascript">
function muchoframes(){
parent.aframe.location='x.htm
parent.index.location='y.htm
parent.topbox.location='z.htm

}
</script>


<script type="text/javascript">

/*****************************************
* Dissolving Image Rollover- By Roy Whittle (http://www.javascript-fx.com/)
* Featured on/available at http://www.dynamicdrive.com/
* This notice must stay intact for use
*****************************************/

//Generate transition CSS (transition=0 to 23)
document.write('<STYLE TYPE="text/css">.imgTrans{ filter:revealTrans(duration=0.4,transition=12) }</STYLE>');

//Uncomment the next line for fading rollovers instead of dissolving:
//document.write('<STYLE TYPE="text/css">.imgTrans{ filter:blendTrans(duration=0.4) }</STYLE>');

var onImages=new Array();
function Rollover(imgName, imgSrc)
{
onImages[imgName] = new Image();
onImages[imgName].src = imgSrc;
}

function turnOn(imgName){
if(document.images[imgName].filters != null)
document.images[imgName].filters[0].apply();
document.images[imgName].offSrc = document.images[imgName].src;
document.images[imgName].src = onImages[imgName].src;
if(document.images[imgName].filters != null)
document.images[imgName].filters[0].play();
}

function turnOff(imgName){
if(document.images[imgName].filters != null)
document.images[imgName].filters[0].stop();
document.images[imgName].src = document.images[imgName].offSrc;
}

//Specify name of participating images, plus paths to their onMouseover replacements:

Rollover("home", "http://i102.piczo.com/view/1/2/a/c/8/y/n/2/0/y/k/p/img/i267100163_34151_5.jpg");
Rollover("video", "http://i102.piczo.com/view/1/2/a/c/8/y/n/2/0/y/k/p/img/i267061314_96276_5.jpg");
Rollover("music", "http://i102.piczo.com/view/1/2/a/c/8/y/n/2/0/y/k/p/img/i267069709_48895_5.jpg");
Rollover("jokes", "http://i102.piczo.com/view/1/2/a/c/8/y/n/2/0/y/k/p/img/i267072529_92762_5.jpg");
Rollover("quotes", "http://i102.piczo.com/view/1/2/a/c/8/y/n/2/0/y/k/p/img/i267075113_8423_5.jpg");
Rollover("flash", "http://i102.piczo.com/view/1/2/a/c/8/y/n/2/0/y/k/p/img/i267075024_94812_5.jpg");
Rollover("love", "http://i102.piczo.com/view/1/2/a/c/8/y/n/2/0/y/k/p/img/i267086014_79266_5.jpg");
Rollover("funpics", "http://i102.piczo.com/view/1/2/a/c/8/y/n/2/0/y/k/p/img/i267171996_4119_5.jpg");


</script>



</head>

<body bgcolor="blue">

<div id="homebox" style="position:absolute;top:0px;left:0px;width:80px;height:20px;border:0px;z-index:1;">
<a href = "http://funframes.fileave.com/today.htm "target="index"
onClick="parent.aframe.location='http://funframes.fileave.com/home.htm';
parent.topbox.location='http://funframes.fileave.com/TopBox/topboxa.htm'"

onMouseOver="turnOn('home');"
onMouseOut="turnOff('home');"><img name="home" class="imgTrans"
src="http://i102.piczo.com/view/1/2/a/c/8/y/n/2/0/y/k/p/img/i267098757_96236_5.jpg"title="Todays Fun Stuff" border="0"></a></div>

<div id="videobox" style="position:absolute;top:0px;left:80px;width:80px;height:20px;border:0px;z-index:1;">
<a href = "http://funframes.fileave.com/Video/VideoList.htm "target="index"
onMouseOver="turnOn('video');"
onMouseOut="turnOff('video');"><img name="video" class="imgTrans"
src="http://i102.piczo.com/view/1/2/a/c/8/y/n/2/0/y/k/p/img/i267061266_40976_5.jpg" title="Video Room"border="0"></a></div>

<div id="musicbox" style="position:absolute;top:0px;left:160px;width:80px;height:20px;border:0px;z-index:1;">
<a href="http://funframes.fileave.com/Music/MainBox.htm"target="index"
onMouseOver="turnOn('music');"
onMouseOut="turnOff('music');"><img name="music" class="imgTrans"
src="http://i102.piczo.com/view/1/2/a/c/8/y/n/2/0/y/k/p/img/i267069666_72756_5.jpg"title="Music Room" border="0"></a></div>

<div id="jokesbox" style="position:absolute;top:0px;left:240px;width:80px;height:20px;border:0px;z-index:1;">
<a href = "http://h1.ripway.com/ianramsbottom/ScrollTrial.htm "target="aframe"
onMouseOver="turnOn('jokes');"
onMouseOut="turnOff('jokes');"><img name="jokes" class="imgTrans"
src="http://i102.piczo.com/view/1/2/a/c/8/y/n/2/0/y/k/p/img/i267072487_43700_5.jpg" title="Jokes Room"border="0"></a></div>

<div id="quotesbox" style="position:absolute;top:0px;left:320px;width:80px;height:20px;border:0px;z-index:1;">
<a href = "http://funframes.fileave.com/Quotes/QuotesBox.htm "target="aframe"
onMouseOver="turnOn('quotes');"
onMouseOut="turnOff('quotes');"><img name="quotes" class="imgTrans"
src="http://i102.piczo.com/view/1/2/a/c/8/y/n/2/0/y/k/p/img/i267075071_72245_5.jpg" title="Quotes Room"border="0"></a></div>

<div id="flashbox" style="position:absolute;top:0px;left:400px;width:80px;height:20px;border:0px;z-index:1;">
<a href = "http://funframes.fileave.com/Flash//FlashList.htm "target="index"
onMouseOver="turnOn('flash');"
onMouseOut="turnOff('flash');"><img name="flash" class="imgTrans"
src="http://i102.piczo.com/view/1/2/a/c/8/y/n/2/0/y/k/p/img/i267074976_98089_5.jpg" title="Flash Stuff"border="0"></a></div>

<div id="lovebox" style="position:absolute;top:0px;left:480px;width:80px;height:20px;border:0px;z-index:1;">
<a href = "http://funframes.fileave.com/Love/Love.htm "target="aframe"
onMouseOver="turnOn('love');"
onMouseOut="turnOff('love');"><img name="love" class="imgTrans"
src="http://i102.piczo.com/view/1/2/a/c/8/y/n/2/0/y/k/p/img/i267086056_7162_5.jpg" title="Love Stuff"border="0"></a></div>

<div id="funpicsbox" style="position:absolute;top:0px;left:560px;width:110px;height:20px;border:0px;z-index:1;">
<a href = ""target="aframe"
onMouseOver="turnOn('funpics');"
onMouseOut="turnOff('funpics');"><img name="funpics" class="imgTrans"
src="http://i102.piczo.com/view/1/2/a/c/8/y/n/2/0/y/k/p/img/i267171938_88245_5.jpg" title="Fun Pics"border="0"></a></div>







</html>

Twey
08-14-2007, 08:21 PM
Wow -- for once it means exactly what it says.
parent.aframe.location='x.htm
parent.index.location='y.htm
parent.topbox.location='z.htmYou've forgotten to terminate the strings:
parent.aframe.location='x.htm';
parent.index.location='y.htm';
parent.topbox.location='z.htm';

GodLovesDemeter
08-15-2007, 06:09 AM
Excellent Twey......I thank you for that.....Ian