The method that pops to mind is to give each dropmsg# division a name that would be the parameter to add to the url:
Code:
<div id="dropmsg0" name="Annelida" class="dropcontent">
Annelida would be the parameter we will want to pass. We can do this in the expandone() function, like so (additions red):
Code:
function expandone(){
if (document.getElementById){
var selectedItem=document.dropmsgform.dropmsgoption.selectedIndex
var param=document.getElementById("dropmsg"+selectedItem).name
contractall()
document.getElementById("dropmsg"+selectedItem).style.display="block"
window.location.replace('grlist.html?spp='+param+'&filaindex='+selectedItem)
}
}
Using my example for dropmsg0, this would resolve the new location to:
grlist.html?spp=Annelida&filaindex=0
So, you would need something to load over there on the right that would be triggered by this being the new location of the page, similar to the way you have these type of links:
Code:
href="grlist.html?spp=Bispiravariegata&filaindex=0"
Bookmarks