|
| |
|
|
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
|
|
|
|
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
|
|
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
|
|
|