ich habs mal so gemacht aber so ganz funzt das nicht
es wird noch text angezeigt :
Code
function RecursiveImgHide(CurrentNode) {
CurrentNode.parentNode.removeChild(CurrentNode); // ...and replace img with it.
// Want to catch and kill other formatting? Insert code here...
if (CurrentNode.childNodes.length > 0) { // If the node under inspection has children...
var ChildNodes = CurrentNode.childNodes; // ...create an array of them...
for (var i = 0 ; i < ChildNodes.length ; i++) // ...and for each of them...
RecursiveImgHide(ChildNodes[i]); // ...recurse.
}
}
Alles anzeigen