Help - messed up!

This is a discussion on "Help - messed up!" within the JavaScript Forum section. This forum, and the thread "Help - messed up! are both part of the Program Your Website category.



Go Back   Webforumz.com > Main Forums > Program Your Website > JavaScript Forum

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old Feb 20th, 2006, 18:13
Junior Member
Join Date: Dec 2005
Location: Leeds
Age: 35
Posts: 25
Thanks: 0
Thanked 0 Times in 0 Posts
Help - messed up!

Hello

Ref: www.mugginsmugs.com

Have just gone in and changed a page of my website but for some reason the following message keeps appearing:

Code: Select all
Warning 5004 function name "MM_openBrWindow" already defined in global scope
The name of the function was already used as a global variable or the function was previously defined.
This is happening with about 8 different functions. Now I know NOTHING about Javascript, am new to website design and am really not sure what I'm doing! arrgghhh!

I externalised the script, and I have checked the file, deleted various bits that were duplicated, but still this appears.

Can anybody help?

Thanks very much
Reply With Quote

  #2 (permalink)  
Old Feb 21st, 2006, 11:58
masonbarge's Avatar
Highly Reputable Member
Join Date: Jan 2006
Location: Atlanta GA
Posts: 631
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Help - messed up!

This is indeed a mess. Post the javascript please. I imagine that, since you link more than one .js file, they are using the same name for different things (either two functions or a variable and a function).

You can't have two functions with the same name. If you tell the program to run a function with the name gimmeMoney(), and there are two different functions with that name, it won't know what to do.

Maybe some of the more experienced guys can comment, but linking more than one .js file to a page sounds like a bad idea to me.
Reply With Quote
Reply

Tags
help, messed

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
My mouse over is all messed up now charlie019 Starting Out 5 Oct 5th, 2007 12:25
Layout messed up in IE7.Please help! mistersean Web Page Design 2 Sep 17th, 2007 15:53
Please Help I have messed up! Teejay Databases 1 Nov 5th, 2006 14:37
Messed up Web Site Clorinde Web Page Design 4 Aug 15th, 2006 14:57
Something messed up... Jdinh04 Web Page Design 2 May 18th, 2005 23:33


All times are GMT. The time now is 05:37.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43