Hi!
I've made an event-list, by months. And I've put a drop-down-navigation on the top of it.
Page here.
It navigates with ID's and a little javascript.
However it doesn't work in ie7 (works nice in Firefox and Safari).
Are there any ie-solutions other than making the page reload on selected navigation-item (adding a baseurl)?
Javascript
:
Code:
<script type="text/javascript" language="javascript">
<!--
function menu_goto( menuform )
{
selecteditem = menuform.newurl.selectedIndex ;
newurl = menuform.newurl.options[ selecteditem ].value ;
if (newurl.length != 0) {
location.href = newurl ;
scroll(0,0) ;
}
}
//-->
</script>
html:
Code:
<form action="" name="newurl" id="newurl">
<label>Gå til: </label>
<select onchange="menu_goto(this.form)" name="newurl">
<option value="#2009Januar">2009 Januar</option>
<option selected="selected" value="#2009Februar">2009 Februar</option>
<option value="#2009Mars">2009 Mars</option>
<option value="#2009April">2009 April</option>
<option value="#2009Mai">2009 Mai</option>
<option value="#2009Juni">2009 Juni</option>
<option value="#2009Juli">2009 Juli</option>
<option value="#2009August">2009 August</option>
<option value="#2009September">2009 </option>
...