...

View Full Version : Drop Down List??



l337godd3ss
04-10-2005, 12:12 AM
Hi, I am wondering how the drop down lists on this site: http://www.anime-kraze.org/index.php?page=releases (used for the anime series) are done. I have seen these types of menus several places, but I haven't been able to find a site that explains how to make them.

Thanks!

l337godd3ss
04-10-2005, 03:22 AM
Oh, I have the answer now, thanks to Charles over at webdeveloper.com:



<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="Content-Script-Type" content="text/javascript">
<meta name="Content-Style-Type" content="text/css">
<title>Example</title>

<script type="text/javascript">
<!--
if (document.getElementById) onload = function () {
document.getElementById ('toggled').className = 'inactive';
document.getElementById ('toggler').onclick = function () {
this.firstChild.data = this.firstChild.data == '+' ? '-' : '+';
document.getElementById ('toggled').className = this.firstChild.data == '-' ? '' : 'inactive';
}
}
// -->
</script>

<style type="text/css">
<!--
.inactive {display:none}
-->
</style>

</head>
<body>
<h4><span id="toggler">+</span> Giant Says</h4>
<ul id="toggled">
<li>Fee</li>
<li>Fie</li>
<li>Foe</li>
<li>Fum</li>
</ul>
</body>
</html>



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum