Код:
<script type="text/javascript"> function cookCopy() {document.cookie="helper=not"} window.onunload=cookCopy function helpCss() {document.cookie="helper=letcopy" var alls=document.getElementsByTagName("body")[0].getElementsByTagName("*") var e=0 for (e=0; e<=(alls.length-1); e++) { var styl=new Array() var styl2=new Array(0) var k=0 styl[0]=alls[e] styl2.splice(0, 0, makingCss(styl[0])) k=1 while(k<=10) {styl[k]=styl[k-1].parentNode if (styl[k].nodeName=="BODY") {break} styl2.splice(0, 0, makingCss(styl[k])) k=k+1} alls[e].title=styl2.join(" ") }} function makingCss(to) {if (to.id) {if ((to.id.indexOf("forum")!=-1)||(to.id.indexOf("category")!=-1)) {if (to.className.indexOf(" ")!=-1) {var ret="."+to.className.substr(to.className.lastIndexOf(" ")+1)} else {var ret="."+to.className}} else {var ret="#"+to.id}} else if ((!to.id)&&(to.className)) {if (to.className.indexOf(" ")!=-1) {var ret="."+to.className.substr(to.className.lastIndexOf(" ")+1)} else {var ret="."+to.className}} else if ((!to.id)&&(!to.className)) {var ret=to.nodeName.toLowerCase()} return ret} </script> <input id="csshelper" type="button" value="Помощь в css" onclick="helpCss()" />