<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>blank</title>
<script type="text/javascript">
var TextNode = {
each: function(callback, parent) {
for (var childNodes = (parent || document.body).childNodes, i = 0, length = childNodes.length; i < length; i++) {
var I = childNodes[i];
/*if (I) */I.nodeType == 1
? arguments.callee(callback, I)
: I.nodeType == 3 && callback(I, i);
}
}
};
window.onload = function() {
/*TextNode.each(function(noda) {
var div = document.createElement('div');
div.innerHTML = noda.nodeValue.replace(/(http\:\/\/www\.youtube\.com\/watch\?v\=[0-9a-z]{11})/gi, '<a href="$1">$1</a>');
if (div.firstChild && div.innerHTML != noda.nodeValue) {
var n = noda.nextSibling, p = noda.parentNode;
do p.insertBefore(div.firstChild, n);
while (div.firstChild);
p.removeChild(noda);
}
});
*/
TextNode.each(function(noda) {
var div = document.createElement( 'div' );
div.innerHTML = noda.nodeValue.replace(/(http\:\/\/www\.youtube\.com\/watch\?v\=[0-9a-z]{11})/gi, '<a href="$1">$1</a>');
var f = document.createDocumentFragment();
while( div.childNodes.length )
f.appendChild( div.childNodes[0] );
noda.parentNode.replaceChild( f, noda );
});
/*TextNode.each(function(noda) {
var div = document.createElement('div');
div.innerHTML = noda.nodeValue.replace(/(http\:\/\/www\.youtube\.com\/watch\?v\=[0-9a-z]{11})/gi, '<a href="$1">$1</a>');
if (div.firstChild && div.innerHTML != noda.nodeValue) {
var f = document.createDocumentFragment();
do f.appendChild(div.firstChild);
while (div.firstChild);
noda.parentNode.replaceChild(f, noda);
}
});*/
};
</script>
</head>
<body>
<div class="authForm">
<form action="/Default.aspx" method="post" onsubmit="return $(this).validate();">
<input type="hidden" name="auth" value="auth" />
<br />
<div id="ctl00_Authorization1_messages">
<br />
</div>
имя<br />
<input type="text" name="username" value="" maxlength="20" class="v-required v-name v-minlength2" />
<br />
пароль<br />
<input type="password" name="password" maxlength="40" class="v-required" />
<br />
<br />
<input type="submit" value=" Войти " />
<br />
<br />
</form>
<a href="Registration.aspx">регистрация</a>
<br />
<br />
</div>
<table class="list">
<tr>
<td>
mmm
</td>
<td>
dsfssssssss
</td>
<td>
fdgfdgd f 111 http://www.youtube.com/watch?v=iuOcLoqo5e0 23423 rgfd
</td>
<td>
01.04.2009 1:32:11
</td>
</tr>
<tr>
<td>
sawewq
</td>
<td>
django
</td>
<td>
</td>
<td>
http://www.youtube.com/watch?v=iuOcLoqo5e0
</td>
</tr>
<tr>
<td>
asddddd
</td>
<td>
django
</td>
<td>
</td>
<td>
30.03.2009 2:47:18
</td>
</tr>
</table>
http://www.youtube.com/watch?v=iuOcLoqo5e0
</body>
</html>