Response title
This is preview!
<?xml version="1.0" encoding="ISO-8859-1"?>
<pics>
<pic>
<autor>rtteewt</autor>
<desc>trhtrhtreherhetrhhrh</desc>
</pic>
<pic>
<autor>tewtewt</autor>
<desc>hytjyujryukukyyu.</desc>
</pic>
<pic>
<autor>5yutru</autor>
<desc>fghgyhvehtyudyd</desc>
</pic>
<pic>
<autor>jhgjgfj</autor>
<desc>trhythtrjtikui</desc>
</pic>
</pics>
var total = 0;
function readXML(section)
var xml = $.ajax(
{
type: "GET",
url : "xmldocs/picslist.xml",
dataType: "xml",
success: function(xml)
{
total = xml.getElementsByTagName("pic").length;
}
});
alert(total);
}
<a href="#" onclick="showPics('new_car', 'h')"><img src="images/new_car.jpg" width="150" height="224" alt="My new car" title="My new car" border="0"/></a>
function showPics(target, position)
{
$('#foto_frame').show();
if(position == 'v')
{
$('#foto_frame').html("<img src='images/full/"+target+".jpg' width='286' heigth='428'>");
}
if(position == 'h')
{
$('#foto_frame').html("<img src='images/full/"+target+".jpg' width='640' heigth='428'>");
}
}
<a href="#" id="new_car" width="150" height="224" alt="My new car" title="My new car" border="0"/></a>
$('document').ready(function()
{
$("#new_car").click(function(event)
{
showPics('new_car', 'h');
});
});
$(document).ready(function()
{
$(document).pngFix();
});
var thepic = 0;
var ary = new Array();
ary[0] = new Image();
ary[0].src = "url(images/tyrtr.jpg)";
ary[1] = new Image();
ary[1].src = "url(images/ryyry.jpg)";
function doChange()
{
thepic = (thepic + 1) %2;
$('#content').css({"background-image":""+ary[thepic]+""});
}
var divHeight = $('#thediv').height();
var divHeight = $('#thediv').outerHeight();
$('#container').animate({height:576}, {duration: 1000, easing: 'easeOutBounce'});
$('#container').css('background-image', 'url(images/thepic.jpg)');
$(document).ready(function()
{
$(function ()
{
$('#content').load('aboutus.html');
});
$('#services').click(function ()
{
$('#content').load('services.html');
}
});
© 2013 jQuery Foundation
Sponsored by and others.