tags:

views:

106

answers:

3

The navigation on the left menu in the below site uses CSS for mouseover links.
PVH

When I take the code of the navigation and make it separate page. Then the mouseover links are not working. What could be the reason? Please let me know.
Test

+2  A: 

Probably...

<script src="menu_1b.js" type="text/javascript">
</script>
<script src="menu_com.js" type="text/javascript">

have something to say on the matter. EDIT: A function called function CreateMenuStructureAgain() kind of gives it away.

philistyne
+1  A: 

You need to "borrow" the scripts found at

http://www.pvh.com/menu_1b.js
http://www.pvh.com/menu_com.js

and then link to them using

<script src="menu_1b.js" type="text/javascript"></script>
<script src="menu_com.js" type="text/javascript"></script>

You could probably try

<script src="http://www.pvh.com/menu_1b.js" type="text/javascript"></script>
<script src="http://www.pvh.com/menu_com.js" type="text/javascript"></script>

and it will work (provided that you have an internet connection, and they don't modify the scripts :D)

DrG
I have added the Js files. In IE it is not working. In firefox it works but improperly. Please check below screenshot"http://shivanand.in/tmp/mouseover-links.gif"
Shivanand
link is broken....
DrG
A: 

As mentioned, you needed to take the scripts too. I was going to take a look at a solution for you but then I opened the JS code you were attempting to use. You could do a lot better with a lot less code. Try looking at this menu example and the accompanying code. You should be able to do exactly what you need without the need for vast amounts of Javascript.

Lee Theobald