/[bfilter]/trunk/hide.html
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Contents of /trunk/hide.html

Parent Directory Parent Directory | Revision Log Revision Log


Revision 17 - (show annotations)
Sun Sep 12 20:30:47 2004 UTC (15 years ago) by dpavlin
File MIME type: text/html
File size: 3404 byte(s)
new function to outline and display element by id

1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
2 <html>
3 <head>
4 <script type="text/javascript" src="hide.js"></script>
5 <script type="text/javascript">
6
7 var show = ['ul1'];
8 var hide = ['b1','b2','ul2','ul3'];
9
10 </script>
11 <!--
12 <link rel="stylesheet" href="style.css" type="text/css">
13 -->
14 <title>hide entries</title>
15 </head>
16
17 <body onLoad="show_hide_display(show,hide);">
18
19 <div style="float: right; width: 10em; text-align: center; margin: 0.5m; background: #e0e0e0; border: 1px dashed #c0c0c0; z-index: 1;">
20 Folding:
21 <br/>
22 <a href="#" onClick="show_hide_display(show,hide);">reset</a>
23 <a href="#" onClick="show_display(show); show_display(hide);">all</a>
24 <a href="#" onClick="hide_display(hide); hide_display(show);">none</a>
25 <br/>
26 <a href="#" onClick="back_display();">&laquo;</a>&nbsp;<a href="#" onClick="default_display();">default</a>&nbsp;<a href="#" onClick="forward_display();">&raquo;</a>
27 <br/>
28 <a href="#" onClick="alert('show: '+show.length+', hide: '+hide.length+', changed:'+changed_display_ids.length+', positin: '+changed_display_pos);">debug</a>
29 <a href="#" onClick="outline_display('ul3');">outline</a>
30 </div>
31
32 <h1>table</h1>
33
34 <table border="0" id="table1" style="width:100%">
35 <tr><td><a href="#" onClick="toggle_display('b1');">Lorem Ipsen</a></td></tr>
36 <tr id="b1" style="display: none"><td>
37 <p>Repellat sed dignissimos eligendi vitae accusantium magni ex. Eum ut iusto dolorem eligendi architecto impedit. Veniam omnis ut reiciendis ratione numquam nam non. Dolores adipisci dolore quis hic est. Quia illo quasi ratione. Quia nobis vero quis qui.</p>
38 <p>Impedit nisi aliquam et est voluptas tenetur sit a. A porro et illum quis. Iusto quae quisquam cumque sint fugiat laboriosam nesciunt. Sapiente incidunt nulla ut voluptatum non ex ut. Et assumenda consequatur non laudantium cumque facilis.</p>
39 <p>Cupiditate quibusdam vitae quidem. Quos est nam porro animi provident. Voluptatum veritatis earum architecto ut quo ut iste aut. Similique esse debitis provident deleniti est optio. Excepturi molestias harum non sunt est asperiores sit. Fuga accusantium in fugiat ullam qui corrupti.</p>
40 </td></tr>
41
42 <tr><td><a href="#" onClick="toggle_display('b2');">Another one</a></td></tr>
43 <tr id="b2" style="display: none"><td>
44 <p>Et quisquam id nihil asperiores sunt maiores pariatur. Beatae ab quidem a quos ex accusantium autem. Voluptatibus cum deserunt recusandae labore voluptate minus. Aut et quae iure sequi. Quia illo modi accusantium velit aspernatur ut omnis.</p>
45 <p>Non odio veritatis est sed reiciendis nostrum. Odit asperiores voluptates nostrum. Impedit rerum tenetur nisi aut. Qui deleniti laudantium est voluptates harum nihil velit dolores. Excepturi quo accusamus eum necessitatibus eaque. Reprehenderit temporibus fugiat aut dolorem.</p>
46 <p>Placeat provident nam nulla ad similique consectetur. Quia esse delectus soluta. Voluptatem error placeat iure accusantium a. Qui molestiae harum voluptas illum et et ducimus. Quo tempora unde voluptatum omnis exercitationem perferendis.</p>
47 </td></tr>
48 </table>
49
50 <h1>ul</h1>
51
52 <ul>
53 <li><a href="#" onClick="toggle_display('ul1');">foo</a></li>
54 <ul id="ul1">
55 <li>bar</li>
56 </ul>
57
58 <li><a href="#" onClick="toggle_display('ul2');">nope</a></li>
59
60 <ul id="ul2" style="display: none">
61 <li>null</li>
62 <ul id="ul3" style="display: none">
63 <li>outlined</li>
64 </ul>
65 </ul>
66 </ul>
67
68 </body>
69

  ViewVC Help
Powered by ViewVC 1.1.26