[url=”http://testvcnkyvc.embanet.com:85/associatesdegrees.shtm”]link
When the visitor clicks on the degree type category, the list opens; but when the visitor then clicks on a specific degree, the list closes before they are taken to the specific degree’s webpage. How do I fix this?
[code]
// JavaScript Document
// expand or collapse the list by setting the correct style
// on the parent list item.
function toggle( e )
{
// apply style to hide or show list elements
if( e.className == ‘hide’ )
e.className = ‘expand’;
else
e.className = ‘hide’;
}
// prevent a click on a child list element from reaching the
// parent.
function cancel( evt )
{
// stop event from bubbling
if( window.event )
window.event.cancelBubble = true; // ie
else if (evt.stopPropagation)
evt.stopPropagation(); // firefox
}