The catagory part, I ment genre, but yea. There are three columns in the table I made. The first one is for the Drop-down menu, the second column is for the description, and the third is for the genre. I want the genre to be like the description, change with the option that the person chooses. Here is the code so maby you can figure out what I am talking about...
Code:
<!--MC Radio V2(Shorty)-->
<div class="tableborder"> <div class='maintitle' align='left'>MC Radio V2</a></div> <table border="0" cellspacing="1" cellpadding="4"> <tr> <th align="center" width="23%" class='titlemedium'>Station</th> <th align="center" width="32%" class='titlemedium'>Description</th> <th align="center" width="20%" class='titlemedium'><center>Genre</center></th> </tr> <tr> <td class="row4" align="center">
<b>Listen to </b><form name="form1">
<select name="station" size="1" onChange="displaydesc(document.form1.station, description, genre, 'textcontainer1')">
<option selected value="http://www.1club.fm/clubfm_media/v42.aspx?station=activex" target="newwin">Active Radio X</option>
<option value="http://www.1club.fm/clubfm_media/v42.aspx?station=modernrock" target="newwin">Modern Rock</option>
<option value="http://www.1club.fm/clubfm_media/v42.aspx?station=classicrock" target="newwin">102 Rock</option>
<option value="http://www.1club.fm/clubfm_media/v42.aspx?station=hairband">Hair Band Rock</option>
<option value="http://www.1club.fm/clubfm_media/v42.aspx?station=techno" target="newwin">Techno Club</option>
</select>
<input type="button" value="Listen"
onClick="jumptolink(document.form1.station)">
</form>
</a></td> <td class="row4">
<span id="textcontainer1" align="left" style="font:italic 13px Arial">
</span>
<script type="text/javascript">
var description=new Array()
description[0]="A hard hitting Rock Channel playing the best in Heavy Metal, Alternative, and 80s Hard Rock on the planet."
description[1]="The Net's New Rock Alternative. An edgy display of Active, Modern, Today & Classic Alternative Rock Music."
description[2]="LIVE from a City that built the Classic Rock format. Take a listen to the legendary bands that started it all."
description[3]="The House of Hair Spray and Spandex. Playing your favorite sleaze Rock Anthems of the 80s & early 90s!"
description[4]="Spinning the best in Trance and Techno Club Beats. Live from Chicago, it's the net's home for the best in underground sounds!"
</script>
<br /></td> <td class="row2" align="center">
<span id="textcontainer1" align="center" style="font:italic 13px Arial">
</span>
<script type="text/javascript">
var genre=new Array()
genre[0]="Rock"
genre[1]="Rock"
genre[2]="Rock"
genre[3]="Rock"
genre[4]="Techno"
</script>
<script type="text/javascript">
function displaydesc(which, descriptionarray, genrearray, container){
if (document.getElementById)
document.getElementById(container).innerHTML=descriptionarray[which.selectedIndex]
}
function jumptolink(what){
var selectedopt=what.options[what.selectedIndex]
if (document.getElementById && selectedopt.getAttribute("target")=="newwin")
window.open(selectedopt.value, "", "width=747px, height=462px")
else
window.location=selectedopt.value
}
displaydesc(document.form1.station, description, genre, 'textcontainer1')
</script>
</td></table></div><br>
<!--End MC Radio V2(Shorty)-->
Thanks if you can help.
Bookmarks