Skip to main content

Bug Tracker

Side navigation

Ticket #4409: test1.html
File test1.html, 0.8 KB (added by OBU, March 24, 2009 02:40PM UTC)

Html page

<html>
<head>
<script src="jquery-1.3.2.min.js"></script>

<script>
$(document).ready(function(){alert(message);});
var hidden = false;

function show_hide()
{
	if (hidden) $(test).slideDown('slow', function(){hidden=false;$('#btn1').val("Close")});
	else $(test).slideUp('slow', function(){hidden=true;$('#btn1').val("Open")});
}
</script>

</head>

<body>
Test
<form>
<input id="btn1" type="button" value="Close" onclick="show_hide()"/>
<div id="test" style="border-style:solid;border-width:1px;border-color:#f0f0f0">
content<br>
on 3<br>
lignes
</div>
<hr>
<div id="test" style="border-style:solid;border-width:1px;border-color:#f0f0f0">
Other content
</div>
</form>
<script>
var message = "ready to process";
</script>
</body>

</html>

Download in other formats:

Original Format