Skip to content

Instantly share code, notes, and snippets.

@miku
Created September 11, 2010 10:53
Show Gist options
  • Select an option

  • Save miku/575089 to your computer and use it in GitHub Desktop.

Select an option

Save miku/575089 to your computer and use it in GitHub Desktop.
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>untitled</title>
<script type="text/javascript"
src="http://www.google.com/jsapi"></script>
<script type="text/javascript">
// You may specify partial version numbers, such as "1" or "1.3",
// with the same result. Doing so will automatically load the
// latest version matching that partial revision pattern
// (e.g. 1.3 would load 1.3.2 today and 1 would load 1.4.2).
google.load("jquery", "1.4.2");
</script>
<script type="text/javascript" charset="utf-8">
google.setOnLoadCallback(function() {
$('ul#verticalfade > li > ul').each(function(){
$(this).hide();
});
$("ul#verticalfade > li").click(function(){
$("ul", this).toggle(500);
});
});
</script>
</head>
<body>
<div id="verticalfade_container">
<ul id="verticalfade">
<li>Le Collezioni
<ul>
<li>Link 1</li>
<li>Link 2</li>
</ul>
</li>
<li>Extra Plus
<ul>
<li>Link 1</li>
<li>Link 2</li>
</ul>
</li>
</ul>
</div>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment