PDA

View Full Version : Slashdot's Menu to open new page and category tree at the same time.



Dracov
10-20-2008, 03:41 PM
1) Script Title: Slashdot's Menu

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex1/slashdot.htm

3) Describe problem:

When the main category is clicked, for example "Online Tools" or Support (like in the demo) I would like it to jump to the other page as well as open the navigation, or open the navigation first and then jump to the other page.

How would I do it?

I tired putting <a href=""> on it but sometimes the nav doesnt open.

Thanks,
Dracov

Nile
10-21-2008, 03:54 PM
Here:


<span onClick='setTimeout("window.location.href=\"page here\"",1000);'>

Change the <span> for the Support Us section to that.

Dracov
10-27-2008, 03:49 PM
I was successfuly able to get this code to work outside the navigation:



<SCRIPT language="JavaScript">
<!--
function getgoing()
{
window.location="index.cfm?page=page-index.cfm&TEMPLATE_CODE=About";
}
//-->
</SCRIPT>

<span onClick="setTimeout('getgoing()', 1000);">
test
</span>



But as soon as I put it inside the navigation it stops working.
Any help would be appreciated.

Thanks,
Dracov

Dracov
10-31-2008, 04:19 PM
Anyone?