All pastes #244465 Raw Edit

Miscellany

public html v1 · immutable
#244465 ·published 2006-11-09 21:15 UTC
rendered paste body
<!--Copyright (C) 2006 pluknet. All rights reserved.Redistribution and use in source and binary forms, with or withoutmodification, are permitted provided that the following conditionsare met:1. Redistributions of source code must retain the above copyright   notice, this list of conditions and the following disclaimer.2. Redistributions in binary form must reproduce the above copyright   notice, this list of conditions and the following disclaimer in the   documentation and/or other materials provided with the distribution.THIS SOFTWARE IS PROVIDED BY AUTHOR AND CONTRIBUTORS ``AS IS'' ANDANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THEIMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSEARE DISCLAIMED.  IN NO EVENT SHALL AUTHOR OR CONTRIBUTORS BE LIABLEFOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIALDAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODSOR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICTLIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAYOUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OFSUCH DAMAGE.--><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"   "http://www.w3.org/TR/html4/loose.dtd"><htML><head><title>t1</title><SCRIPT language="JavaScript">function mydunk(){	var anchorTags = document.getElementsByTagName("*");	var re = /h\d/i;	document.getElementById("oScratch").innerHTML = "<table width=300 border=1><tbody id='tabel'></tbody></table>";	for (var i = 0; i < anchorTags.length ; i++)	{		if (re.test(anchorTags[i].tagName)) {			var TR = document.createElement("TR");			var TD = document.createElement("TD");			var TX = document.createTextNode("Content of " + i + "-th element " +	anchorTags[i].tagName + " is: ");			TD.appendChild(TX);			TR.appendChild(TD);			var TD2 = document.createElement("TD");			var TX2 = document.createTextNode(anchorTags[i].innerHTML);			TD2.appendChild(TX2);			TR.appendChild(TD2);			document.getElementById("tabel").appendChild(TR);		}	}}</SCRIPT></head><body onload = "mydunk()"><UL><LI><H1>&#1090;&#1077;&#1089;&#1090;1</H1><LI><H2>&#1090;&#1077;&#1089;&#1090;2</H2><LI><B>Bold &#1090;&#1077;&#1082;&#1089;&#1090;</B><LI><I>Italic &#1090;&#1077;&#1082;&#1089;&#1090;</I><LI><U>Underlined &#1090;&#1077;&#1082;&#1089;&#1090;</U><LI><STRIKE>Strikeout &#1090;&#1077;&#1082;&#1089;&#1090;</STRIKE></UL><DIV ID = "oScratch" ></DIV></body></htML>