$(document).ready(function(){
var img = document.querySelector('#div01 img')
alert(img.src);
}); File.WriteAllText("index.html", "<h1>привет</h1>", Encoding.UTF8);StreamWriter sw = new StreamWriter(File.OpenWrite("index.html"), Encoding.UTF8);using System.Xml;var xml = @"<head>
<block1></block1>
<block2></block2>
<block3></block3>
</head>";
var doc = new XmlDocument();
doc.LoadXml(xml);
var node = doc.SelectSingleNode("/head/block3");
if (node != null)
{
Console.WriteLine("Узел существует!");
}
else
{
Console.WriteLine("Узел не найден...");
}
overflow: hidden
All animated properties should be animated to a single numeric valueanimate должен (так мне кажется) вызываться только для того элемента, на котором случилось событие, а не для всех - для этого селектор надо заменить на event.target или this.$(document).ready(function() {
$('a').mouseenter(function() {
$(this).animate({
backgroundPositionX: -200,
backgroundPositionY: 50,
}, 900);
});
});