Click to See Complete Forum and Search --> : Error Script (for slideshow)


Breck
10-09-2003, 01:26 PM
First, thank you for looking at this.

I want to "revive" an old slideshow I did in school for use elsewhere.

I have not as yet added pictures (the ones currently inserted are ancient and no longer on my website -- was a school project 3-4 years ago).

I get the following "Error Script" messages:

1---

Just after this (// the pattern, adding to the array below) and before the insertion of listing of pictures:

Line 44
Char 42
"Unterminated string constant"

2---

Just after the code: </head>

Line 86
Char 1
"Object expected"


If you like, you can see the full code by viewing the source of:

http://www.breckrothage.com/slideshow.htm

I hope I was clear and concise enough for you.

Sincere thanks,
Breck

AdamGundry
10-09-2003, 01:29 PM
1. On lines like this:

Pic[0] = "images/gallery/cd_eyeonyou.jpg'

you have used double quotes to start the string and single quotes to end it. This is not allowed, you need to use either one or the other at both ends.

2. The actual error is "runSlideShow is not defined", which is probably due to the above errors. Correct your quotes and this should be solved as well.

Adam

Vladdy
10-09-2003, 01:30 PM
Do not use IE for testing and debugging. Download Moz/Firebird and see what error its Javascript Console reports.

AdamGundry
10-09-2003, 01:44 PM
Well said, Vladdy! That's what I used, and it's much easier to find the errors.

Download Moz from here (http://www.mozilla.org/)

Adam

Vladdy
10-09-2003, 01:50 PM
:D :D :D You gave him a fish, I was trying to teach him how to catch... :D :D :D

Breck
10-09-2003, 02:06 PM
Thank you all.

The "single" quotation marks worked!

I will go to the suggested site for downloading "Moz" later.

Sincere appreciation!

Vladdy
10-09-2003, 02:10 PM
Off the topic comment:

<title>B r e c k &nbsp;P h o t o g r a p h y</title>

may look "cute" but certainly lowers your score with search engines...

Breck
10-09-2003, 11:18 PM
Since you are so kind to bring this to my attention, would you tell me two things?

1) Why is this so?

2) What should I do to correct this, and even more, what tips might you have to even make it better than just the correction?

Sincere thanks.

Vladdy
10-10-2003, 06:36 AM
Search engines would not see words but a bunch of letters. Word "photography" that identifies the topic of your site will not be recognized.

To correct it remove spaces:
<title> Breck Photography </title>

General Advice #1: Never sacrifice content for presentation.

General Advice #2: Search Engines pay increasingly more attention to the site content, since meta tags such as description and keywords are easily abused. Here is (http://www.delorie.com/web/lynxview.cgi?url=http://www.breckrothage.com/slideshow.htm) what your content looks like to a SE robot...

Breck
10-10-2003, 12:43 PM
I will change the spacing for that. I did put that on most every page created over the span of a couple of years. I'm not sure if it is important for "all" individual pages or just the frameset page, index page, main frame, etc. What do you think?

I looked at my site (www.breckrothage.com) briefly through the link you gave me. I backtracked to her home page. Once I checked the boxes to show tables, frames, font, background and the like, it looked ok as seen through Moz.

Since my site is 90-95% images, I'm not sure how it will get picked up by search engines, based on what you say.

Thanks for taking your time to share this with me!