Posted By


dvdrtrgn on 09/10/08

Tagged


Statistics


Viewed 65 times
Favorited by 0 user(s)

testShell_div.js


/ Published in: JavaScript
Save to your folder(s)



Copy this code and paste it in your HTML
  1. alert('hi');
  2. return false;
  3. /*---------------------------------------------------------------------------*/
  4. /* expandable generic node object */
  5. function
  6. Branch(N){var T=this;T.P='[object Tree]';T.N=T.I=T.P;if(N){T.N=N;T.I='window["'+T.N+'"]'}};
  7. Branch.prototype.grow=function(N){
  8. if(!N)return;var T=this;var Tt=T[N]=new Branch();
  9. Tt.N=N; Tt.I=''+T.I+'["'+N+'"]'; Tt.P=T};
  10. Branch.prototype.toString=function(){return this.I};
  11. function /* a convenient preparation of a branch */
  12. Tree(str){return window[str]=new Branch(str)}

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.