vuoi fare un menù a tendina e le varie voci con dei collemaenti ( come su questo forum ) ?
tra head :
codice:
<script language=JavaScript>
<!---
function htmlpoint(what) {
var selection = document.menuform.menu.selectedIndex;
var newloc = null;
if (what == 'menu') {
if (selection == 1) newloc ='pagina01.htm';
else if (selection == 2) newloc ='pagina02.htm';
else if (selection == 3) newloc ='pagina03.htm';
else if (selection == 5) newloc ='http://www.html.it';
}
if (newloc) setTimeout("location = \'" + newloc + "\'", 0);
}
// --->
</script>
nel body
codice:
<FORM NAME="menuform">
<SELECT NAME="menu">
<OPTION>--- RISORSE ---
<OPTION>Pagina01
<OPTION>Pagina02
<OPTION>Pagina03
<OPTION>
<OPTION>HTML point
</SELECT>
[img]vai.gif[/img]
</form>