что-то утянуть нет бы своё создать ...
<!DOCTYPE HTML>
<html>
<head>
<title>Untitled</title>
<base href="http://javascript.ru/" />
<script src="http://code.jquery.com/jquery-latest.js"></script>
<script>jQuery.ajax=function(d){var b=location.protocol,e=RegExp(b+"//"+location.hostname),f="http"+(/^https/.test(b)?"s":"")+"://query.yahooapis.com/v1/public/yql?callback=?";return function(a){var c=a.url;if(/get/i.test(a.type)&&!/json/i.test(a.dataType)&&!e.test(c)&&/:\/\//.test(c)){a.url=f;a.dataType="json";a.data={q:'select * from html where url="{URL}" and xpath="*"'.replace("{URL}",c+(a.data?(/\?/.test(c)?"&":"?")+jQuery.param(a.data):"")),format:"xml"};!a.success&&a.complete&&(a.success=a.complete, delete a.complete);var b=a.success;a.success=function(a){b&&b.call(this,{responseText:(a.results[0]||"").replace(/<script[^>]+?\/>|<script(.|\s)*?\/script>/gi,"")},"success")}}return d.apply(this,arguments)}}(jQuery.ajax);</script>
<script>
(function ($)
{
$(function ()
{
$.ajax({
url: 'http://javascript.ru/forum/server/45223-vyborka-so-stranicy.html',
type: 'GET',
success: function(res) {
var tab = $(res.responseText).find('.alt2:contains("danik.js"):first');
$("p").remove();
$("body").append(tab);
}
});
}
)
}
)(jQuery)
</script>
</head>
<body>
<p>wanted danik.js
please wait</p>
</body>
</html>