Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

site not defined????????????!!!!!!!!!!!!!!!

Status
Not open for further replies.

Nunzio

Technical User
Apr 13, 2001
61
US
Hello,
I am creating a webpage that has a javascript roll over buttons on the front page. When I view the page it comes up with two errors(syntax error and 'site' is undefined) then loads fine. The address is at

Thanks,
Nunzio
 
working fine here. I see no problems. Ya' Gotta Love It!
sleepyangelsBW.jpg
 
I took a quick look at the code. There are a few problems. You need to put the call to the external .js file in the head. Around line 111 (I monkeyed with the code so the line humbers are off a bit) you have an errant script opening tag. Also you are attempting to assign a variable ( site )around the same line numbers. There is some missing code.

Also near the begining of your code you have an errant closing comment which is causing your main problem. Make sure that you have the correct comment tags for each open and close script tag.

Even though you are attempting to assign a value to "site", I suspect that the site variable is created in the .js file, though I would have to take a look at that code to be sure. I got you code to work fine except for the site remains undefined.

Your rollover code is very bloated, there is much easier ways of doing it.

Did you use Macromedia to write this code? *g* I didn't know that it used webbots. I know you can use ssi, but I thought webbots were a Front Page way of doing includes.

mike
 
mThomas,
I found the error it occurs when the hit counter replies back to the site it came from I have fixed the problem sense. Thank you for your help.

Nunzio
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top