The code is way too long to post here so I'll just explain... I have a bunch of different scripts running and depending on where those scripts are placed either none of the scripts end up working or only some of them.
__________________
Chris. ->> Please login or register to view this content. Registration is FREE <<-
A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
put anonymous functional enclosures around the seperate scripts, if they don't need each other. This is a convenient way that JavaScript supplies to namespace your variables:
Code:
(function() {
//code goes here, only its variables won't have an affect on other namespaces
})()
I do this a lot in my code, in addition to placing functions inside of objects, if things are really large.
__________________
I build web things. I work for the startup Please login or register to view this content. Registration is FREE .