Yes I know that, but what I need is something like anylink CSS menu (http://www.dynamicdrive.com/dynamici...anylinkcss.htm) does (to create the links in the html code, not in the javascript):
HTML Code:
<!--1st anchor link and menu -->
<a href="http://www.dynamicdrive.com" onClick="return clickreturnvalue()" onMouseover="dropdownmenu(this, event, 'anylinkmenu1')">Anchor Link</a>
<div id="anylinkmenu1" class="anylinkcss">
<a href="http://www.dynamicdrive.com/">Dynamic Drive</a>
<a href="http://www.cssdrive.com">CSS Drive</a>
<a href="http://www.javascriptkit.com">JavaScript Kit</a>
<a href="http://www.codingforums.com">Coding Forums</a>
<a href="http://www.javascriptkit.com/jsref/">JavaScript Reference</a>
</div>
I nedd to do it that way because I have to pass some parameters along th links. Here there´s a sample code code of what I want to do with the vertical menu:
PHP Code:
while(/*some condition*/)
{
echo '<a href="#" onClick="return clickreturnvalue()" onMouseover="dropdownmenu(this, event, \''.$id_menu.'\')">'.$rowmat->nombre_reac.'</a>';
echo '<div id="uniqueID" class="anylinkcss">';
echo '
<a ref=insertar_ficha.php?codigo='.$rowmat->codigo_reactivo.'>Insertar Ficha</a>
<a href=modificar_ficha.php?codigo='.$rowmat->codigo_reactivo.'>Modificar Ficha</a>
<a href=eliminar_ficha.php?codigo='.$rowmat->codigo_reactivo.'>Eliminar Ficha</a>
<a href=ver_ficha.php?codigo='.$rowmat->codigo_reactivo.'>Ver Ficha</a>';
echo '</div>';
}
Bookmarks