I have downloaded two javascripts, one is AJAX Navigation whereby only one webpage is used and content are loaded into a div, the other is for creating a Cascade Menu which uses div as link buttons. I have a problem implementing both of theses scripts on html.
The code snippets for the ajax navigation:
[COLOR=Red]<a href=”javascript:void(0)” onclick=”open_url(‘page-1.html’,’designatedDIV’);”>Go to page 1</a>
The html for CascadeMenu
[COLOR=Red]<div Id=”menuItem1_3″ class=”menuItem” title=”WDVL” cmd=”‘page-1.html”>WDVL</div>
My questions are:
1.
What is ‘cmd’ for?
On the CascadeMenu if I change the html to this:
[COLOR=Red] <div Id=”menuItem1_3″ class=”menuItem” title=”WDVL” cmd=”‘page-1.html”>
<a href=”javascript:void(0)” onclick=”open_url(‘page-1.html’,’designatedDIV’);”>Go to page 1</a>
</div>
will it work? or do i need to make other changes?
[COLOR=Red]<div Id=”menuItem1_3″ class=”menuItem” title=”WDVL” onclick=”open_url(‘page-1.html’,’designatedDIV’);”>
Is this code ok? It is without the javascript:void(0)
I’m barely grasping these codes , please help
Thank you