/[bfilter]/trunk/hide.js
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.js

Parent Directory Parent Directory | Revision Log Revision Log


Revision 13 - (show annotations)
Sat Sep 11 19:26:41 2004 UTC (19 years, 7 months ago) by dpavlin
File MIME type: application/javascript
File size: 211 byte(s)
simpliest possible (?) show/hide implementation in JavaScript, for later re-use

1 function hide_show(name)
2 {
3 var el = eval("document.getElementById('"+name+"')");
4 if (el)
5 {
6 if (el.style.display=='none')
7 el.style.display = '';
8 else
9 el.style.display = 'none';
10 }
11
12 return false;
13 }

  ViewVC Help
Powered by ViewVC 1.1.26