Conflict between trafic script and milonic

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
amipro
Beginner
Beginner
Posts: 1
Joined: Mon Sep 26, 2005 8:08 am
Contact:

Conflict between trafic script and milonic

Post by amipro »

Strange stuff...
I have registered to a trafic counter (http://www.trafic.ro) but when i put the code in my page the milonic script won't work the menu bar is displayed but no submenus ....

the script is this
<!--/Start Trafic.ro/-->

<script type="text/javascript">t_rid="frv";</script>

<script type="text/javascript" =
src="http://storage.trafic.ro/js/trafic.js"

></script><noscript><a href="http://www.trafic.ro/top/?rid=frv"

target="_blank"><img border="0" alt="trafic ranking"

src="http://log.trafic.ro/cgi-bin/pl.dll?rid=frv"/></a>

</noscript>

<!--/End Trafic.ro/-->

maybe someone can help me please ?
i don't get it
dwittenb
Beginner
Beginner
Posts: 2
Joined: Sun Sep 25, 2005 11:39 am

... and here is the solution

Post by dwittenb »

Hi,

look at the file trafic.js !!
There are 3 functions in it. Two of them make a conflikt with the functions dclared in the milonic javascripts. Maybe these are "function $G" and "function $I".

If you want to use the traffic-script you have to patch the script.
Rename the two functions to e.g. function $my_G and function $my_I.
Notice to rename all of the functioncalls too !!
But first, if you want to do this, look at the license-conditions of that script, if you are allowed to do this.

good luck

didi
User avatar
Andy
Milonic
Milonic
Posts: 3308
Joined: Sun May 19, 2002 8:23 pm
Location: Menu Developer
Contact:

Post by Andy »

If I can see a URL of where the problem is, I should be able to pin down the problem and get it into the next set of releases.

Regards,
Andy
Post Reply