Created
November 1, 2013 16:29
-
-
Save brycelambert/7267965 to your computer and use it in GitHub Desktop.
record label javascript
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Merge Records</title> | |
</head> | |
<body> | |
<script type="text/javascript"> | |
function showdiv(a_name) { | |
var div_name = a_name + '_desc' | |
var div_array = document.getElementsByTagName('div'); | |
var a_array = document.getElementsByTagName('a'); | |
var i = 0; for(; i < div_array.length; i++) { | |
div_array[i].id === div_name ? div_array[i].style.display = 'block' : div_array[i].style.display = 'none'; | |
a_array[i].id == a_name ? a_array[i].style.fontWeight = 'bold' : a_array[i].style.fontWeight = 'normal' | |
} | |
} | |
</script> | |
<h1>Merge Records</h1> | |
<ul> | |
<li><a id='magnetic-fields' href='#' onclick="showdiv(this.id);" >Magnetic Fields</a></li> | |
<li><a id='future-bible-heroes' href='#' onclick="showdiv(this.id)">Future Bible Heroes</a></li> | |
<li><a id='spoon' href='#' onclick="showdiv(this.id)">Spoon</a></li> | |
<li><a id='neutral-milk-hotel' href='#' onclick="showdiv(id)">Neutral Milk Hotel</a></li> | |
</ul> | |
<div id='magnetic-fields_desc' style="display:block; background-color: red;"> | |
An American indie pop group founded and led by Stephin Merritt. He is the group's primary songwriter, producer and vocalist, as well as frequent multi-instrumentalist. The Magnetic Fields is essentially a vehicle for Merritt's songwriting. | |
</div> | |
<div id='future-bible-heroes_desc' style="display:none; background-color: red;"> | |
One of several musical groups led by Stephin Merritt, best known for his work with The Magnetic Fields. He shares vocal duties with Claudia Gonson, who sings on the entirety of 2002's Eternal Youth. | |
</div> | |
<div id='spoon_desc' style="display:none; background-color: red;"> | |
An American rock band formed in Austin, Texas. The band is composed of Britt Daniel (vocals, guitar); Jim Eno (drums); Rob Pope (bass guitar, guitar, keyboards, backing vocals) and Eric Harvey (keyboard, guitar, percussion, backing vocals). | |
</div> | |
<div id='neutral-milk-hotel_desc' style="display:none; background-color: red;"> | |
An American indie rock band formed by singer, guitarist and songwriter Jeff Mangum in the late 1980s.[1] The band is noted for its experimental sound, obscure lyrics and eclectic instrumentation. | |
</div> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment