Skip to main content

Bug Tracker

Side navigation

Ticket #3385: test.html
File test.html, 1.1 KB (added by raheem, September 20, 2008 10:00AM UTC)
<html>
<head>
	<script src="jquery-1.2.6.min.js" type="text/javascript"></script>
	<script>
		$("document").ready(function()
			{	
				$("pre").hide();
				$("a#ssid").click(function()
					{
						$("pre").slideDown("slow");
					}
				
				)
				$("a#hhid").click(function()
					{
						$("pre").slideUp("slow");
					}
				
				)			
				$("a#sid").click(function()
					{
						$("pre").show("slow");
					}
				
				)
				$("a#hid").click(function()
					{
						$("pre").hide("slow");
					}
				
				)			
			}
		);
	</script>
</head>
<body>

<h1>Using Show/Hide Method</h1>
<a id="sid" href="##">Show</a> &nbsp;  <a id="hid" href="##">Hide</a>
<br />
<h1>Using SlideUp/SlideDown Method</h1>
<a id="ssid" href="##">Slide Down</a> &nbsp;  <a id="hhid" href="##">Slide Up</a>

<pre style="border:1px solid black">
asdfasdfasd
asdf
asdfkljhdsal  kfjha 
asdfasdfasd
f
asdf
asdfkljhdsal  kfjha 
asdfasdfasd
f
asdf
asdfkljhdsal  kfjha sdlkjfhlaksdf hlkasjdhf lkajdshflkajsdhf lka
hflkadjshflkajdsf hlkahdflkajsdhf lkahdf lkjahdflkjahdfslk jasdhf
lkjasdhflkjasdhflkasjdhfkjdsaf
</pre>

</body>	
</html>

Download in other formats:

Original Format