Im trying to intergrate a user defined function that gets the xy positions of an anchor into a dhtml menu script. the probem is that it doesnt seem to regognise either the id of the anchor or maybe doesnt load the function script. Im not sure! here is a simpified version of what Im trying to do
<script file = getpos.js>
<script file = menu.js>
<script>
new menu(pos,height, width);
</script>
<a href="#" id="test" name="test" onmouseover="menu(menu)">
In my getpos.js Im adding the getpos function
getpos = getanchorposition(anchorid);
and it doesnt work. how do I bring in the id of the anchor? Any help appreciated!
Cheers
Fred
<script file = getpos.js>
<script file = menu.js>
<script>
new menu(pos,height, width);
</script>
<a href="#" id="test" name="test" onmouseover="menu(menu)">
In my getpos.js Im adding the getpos function
getpos = getanchorposition(anchorid);
and it doesnt work. how do I bring in the id of the anchor? Any help appreciated!
Cheers
Fred