Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: Collapsible comments

by Anonymous Monk
on Jan 09, 2013 at 15:57 UTC ( #1012515=note: print w/replies, xml ) Need Help??


in reply to Collapsible comments

unfinished :) https://developer.mozilla.org/en-US/docs/DOM/Node.nextSibling toggleDisplay

javascript:(function(){ var d = document; var InsertToggler = function(tr){ var newa = d.createElement('a'); newa.appendChild( document.createTextNode("*hide*") ); newa.onclick = 'toggle(this.parentElement.parentElement.nextEl +ementSibling)'; tr.firstElementChild.appendChild( newa ); }; var e = d.getElementById('replies_table').getElementsByTagName('tr +'); var a, p; for(var i = 0; i < e.length; i++){ a = e[i]; if( a.className.match(/\breply-body/) ){ InsertToggler( e[i-1] ); } } })();

update: ?node_id=3989;BIT=toggle;D
expRAT
Free Nodelet Hack: Toggle bodies of Old Replies

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1012515]
help
Chatterbox?
[choroba]: That still doesn't make it offensive
[LanX]: of course not
[LanX]: it's pretty ironic if you know the character
choroba likes the movie
[choroba]: Lady_Aleena Do you really need to say "WorldBuilder" after having said "WorldBuilding"?
[LanX]: have to watch it again :)

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (12)
As of 2017-05-24 22:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?