navigation
a webmaster learning community
     Home    Register     Search      Help      Login    
FrontPage Alternative
Sponsors

Shopping Cart Software
Ecommerce software integrated into Frontpage, Dreamweaver and Golive templates. No monthly fees and available in ASP and PHP versions.

Website Templates
We also have a wide selection of Dreamweaver, Expression Web and Frontpage templates as well as webmaster tools and CSS layouts.

Frontpage website templates
Creative Website Templates for FrontPage, Dreamweaver, Flash, SwishMax

Search Forums
 

Advanced search
Recent Posts

 Todays Posts
 Most Active posts
 Posts since last visit
 My Recent Posts
 Mark posts read

 

JavaScript Error...?

 
View related threads: (in this forum | in all forums)

Logged in as: Guest
Users viewing this topic: none
Printable Version 

All Forums >> Web Development >> General Web Development >> JavaScript Error...?
Page: [1]
 
Peppergal

 

Posts: 2207
Joined: 9/20/2002
Status: offline

 
JavaScript Error...? - 6/7/2003 12:04:18   
I am running an image preloader for rollovers, as well as an image slide show on a page. When I try to preview it, I get a script error. (Expected Identifier, Line 25, Char 24, Code 0 ....line 25 is the line with the " commercial6ol.gif" image.)

Sorry, I don' t have the page published yet... here is the html...I don' t see what I did wrong. I have the scripts in the head, after everything else... is this a serious error?

PS...I published it, and I guess it is pretty serious...it shows up fine in IE but in Mozilla I get a blank page. Ach!!!
http://www.design-a-website.com/liveinthepoconos.htm

<script>

/*
Preload images script
By JavaScript Kit (http://javascriptkit.com)
Over 400+ free scripts here!
*/

var myimages=new Array()
function preloadimages(" http://www.liveinthepoconos.com/images/.gif" ,
" http://www.liveinthepoconos.com/images/commercial6.gif" ,
" http://www.liveinthepoconos.com/images/commercial6ol.gif" ,
" http://www.liveinthepoconos.com/images/consumer4.gif" ,
" http://www.liveinthepoconos.com/images/consumer4ol.gif" ,
" http://www.liveinthepoconos.com/images/search5.gif" ,
" http://www.liveinthepoconos.com/images/search5ol.gif" ,
" http://www.liveinthepoconos.com/images/directions2.gif" ,
" http://www.liveinthepoconos.com/images/directions2ol.gif" ,
" http://www.liveinthepoconos.com/images/emaillee2.gif" ,
" http://www.liveinthepoconos.com/images/emaillee2ol.gif" ,
" http://www.liveinthepoconos.com/images/lots5.gif" ,
" http://www.liveinthepoconos.com/images/lots5ol.gif" ,){
for (i=0;i<preloadimages.arguments.length;i++){
myimages=new Image()
myimages.src=preloadimages.arguments
}
}
</script>

<script language=" JavaScript1.1" >
<!--

/*
JavaScript Image slideshow:
By JavaScript Kit (www.javascriptkit.com)
Over 200+ free JavaScript here!
*/

var slideimages=new Array()
var slidelinks=new Array()
function slideshowimages(){
for (i=0;i<slideshowimages.arguments.length;i++){
slideimages=new Image()
slideimages.src=slideshowimages.arguments
}
}

function slideshowlinks(){
for (i=0;i<slideshowlinks.arguments.length;i++)
slidelinks=slideshowlinks.arguments
}

function gotoshow(){
if (!window.winslide||winslide.closed)
winslide=window.open(slidelinks[whichlink])
else
winslide.location=slidelinks[whichlink]
winslide.focus()
}

//-->
</script>


</head>

< Message edited by peppergal -- 6/7/2003 12:15:44 PM >


_____________________________

Northeast PA / Poconos/ Lake Wallenpaupack Real Estate
wallenpaupacklakeproperty.com
Karen's Real Estate Blog
Gil

 

Posts: 7533
From: North Carolina, USA
Status: offline

 
RE: JavaScript Error...? - 6/7/2003 12:45:15   
Look at the very bottom of the page - you have an extra set of tags. Delete the ones in red and it should be fine

</body>

</html>

</head>

<body text=" #4D3E68" bgcolor=" #CAB9D4" topmargin=" 5" leftmargin=" 5" rightmargin=" 10" >
</body>


</html>


_____________________________

Gil Harvey, 1947-2004

(in reply to Peppergal)
Peppergal

 

Posts: 2207
Joined: 9/20/2002
Status: offline

 
RE: JavaScript Error...? - 6/7/2003 13:03:31   
Thanks Gil....duh, how did those tags get there???? Another FP Mystery....

But in FP, when I click Preview, it still gets an error and it asks me if I still want to continue running scripts on the page.

It appears fine, to me, now in both Mozilla and IE...haven' t tried netscape yet. Should I just ignore that error message?

_____________________________

Northeast PA / Poconos/ Lake Wallenpaupack Real Estate
wallenpaupacklakeproperty.com
Karen's Real Estate Blog

(in reply to Gil)
Gil

 

Posts: 7533
From: North Carolina, USA
Status: offline

 
RE: JavaScript Error...? - 6/7/2003 13:30:21   
quote:

Thanks Gil....duh, how did those tags get there???? Another FP Mystery....


Happens a lot when inserting Javascript code - the code sometimes has the body tags and FP inserts the body tags - it' s easy to get a duplicate. Just something you learn to look for after a while:)

quote:

Should I just ignore that error message?


I hate to ignore error messages - but, if it' s working I' d move on with the site and come back to look for the error later............ in all the free time you have:)

_____________________________

Gil Harvey, 1947-2004

(in reply to Peppergal)
Peppergal

 

Posts: 2207
Joined: 9/20/2002
Status: offline

 
RE: JavaScript Error...? - 6/7/2003 13:48:19   
quote:

in all the free time you have:)



Yeah, Right!!!:) Now that school is almost over I might actually have time to figger it out...

LOL, my husband is still waiting for HIS website. ROTFL...his was the first one I started...and it still isn' t done. Hee hee...just like my closet isn' t done...so when he builds my closet, I' ll build his site. :)

_____________________________

Northeast PA / Poconos/ Lake Wallenpaupack Real Estate
wallenpaupacklakeproperty.com
Karen's Real Estate Blog

(in reply to Gil)
Page:   [1]

All Forums >> Web Development >> General Web Development >> JavaScript Error...?
Page: [1]
Jump to: 1





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts