Posted By


dvdrtrgn on 09/10/08

Tagged


Statistics


Viewed 123 times
Favorited by 0 user(s)

testShell_div.html


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



Copy this code and paste it in your HTML
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
  3. <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
  4. <!-- <link rel="search" type="application/opensearchdescription+xml" title="Snipplr" href="http://snipplr.com/snipplrsearch.xml" /> -->
  5. <script type="text/javascript" src="http://jqueryjs.googlecode.com/files/jquery-1.2.6.pack.js"></script>
  6. <!--[if lte IE 6]><script src="http://www.savethedevelopers.org/say.no.to.ie.6.js"></script><![endif]-->
  7. </head>
  8.  
  9. <body id="snippets">
  10. <div id="viewsource">
  11. <textarea rows="25" class="copysource">
  12. alert('hi');
  13. /*---------------------------------------------------------------------------*/
  14. /* expandable generic node object */
  15. function
  16. Branch(N){var T=this;T.P='[object Tree]';T.N=T.I=T.P;if(N){T.N=N;T.I='window[&quot;'+T.N+'&quot;]'}};
  17. Branch.prototype.grow=function(N){
  18. if(!N)return;var T=this;var Tt=T[N]=new Branch();
  19. Tt.N=N; Tt.I=''+T.I+'[&quot;'+N+'&quot;]'; Tt.P=T};
  20. Branch.prototype.toString=function(){return this.I};
  21. function /* a convenient preparation of a branch */
  22. Tree(str){return window[str]=new Branch(str)}
  23.  
  24. /*---------------------------------------------------------------------------*/
  25. </div>
  26. </body>
  27. </html>

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.