Javascript conflicts
-
Hi there community! I'm having a little problem with two scripts that seem to be conflicting with each other inside a web page. whicever one I load first will work but the second wont - I skimmed through then to see if there were any conflicting var or function names but couldn't find anything... any suggestions? This is an analog clock script inside an absolute positioned div:
-
Hi there community! I'm having a little problem with two scripts that seem to be conflicting with each other inside a web page. whicever one I load first will work but the second wont - I skimmed through then to see if there were any conflicting var or function names but couldn't find anything... any suggestions? This is an analog clock script inside an absolute positioned div:
These two scripts each define window.onload so because of that they cant be in the same web page together.One solution would be to combine the two functions so that each have the same code.
-
Hi there community! I'm having a little problem with two scripts that seem to be conflicting with each other inside a web page. whicever one I load first will work but the second wont - I skimmed through then to see if there were any conflicting var or function names but couldn't find anything... any suggestions? This is an analog clock script inside an absolute positioned div: