Problem of duplicate function names: When 2 same type of JS loaded in 1 Page

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

I am stuck with strange JS issue

My product gives user to show some images(which track mouseover)  on
page by embedding script like
<script src=

Now user is embedding more than of the above and when user mouse over's
the image output of  first1 than function getting called is script
loaded in last ... thus error, as that script don't have the relevant
data for it ...
Any solution for ?
Following possible solutions look feasible to me?
1) Somehow I get a static variable and all the JS loaded from my domain
will keep data in that static variable, how to implement it, im not
sure :)
2) This is crude, but how about I dynamically give method names of
events in script such that there are no duplicate function names, but
this will again bring lot of other complexity and might need usuage of
eval which is evil and I'll look some option for not using it rather


Site Timeline