Bug Tracker

Ticket #4409: test1.html

File test1.html, 775 bytes (added by OBU, 11 years ago)

Html page

Line 
1<html>
2<head>
3<script src="jquery-1.3.2.min.js"></script>
4
5<script>
6$(document).ready(function(){alert(message);});
7var hidden = false;
8
9function show_hide()
10{
11        if (hidden) $(test).slideDown('slow', function(){hidden=false;$('#btn1').val("Close")});
12        else $(test).slideUp('slow', function(){hidden=true;$('#btn1').val("Open")});
13}
14</script>
15
16</head>
17
18<body>
19Test
20<form>
21<input id="btn1" type="button" value="Close" onclick="show_hide()"/>
22<div id="test" style="border-style:solid;border-width:1px;border-color:#f0f0f0">
23content<br>
24on 3<br>
25lignes
26</div>
27<hr>
28<div id="test" style="border-style:solid;border-width:1px;border-color:#f0f0f0">
29Other content
30</div>
31</form>
32<script>
33var message = "ready to process";
34</script>
35</body>
36
37</html>