How do i set the background image using jquery?

Friday, July 4, 2014


<script type="text/javascript">
$(document).ready(function () {
$('#Lines').click(function () {
$('html').css('background-image', 'url("../Images/banner.jpg")');
});
});
</script>

<a id="Lines" href="http://ift.tt/1qu2gNw") %>" >Read Post</a>


I am using C# coding . When I click on the Read Post link it goes to the another page and the background image which i set in jquery is no longer available , It shows only 2 or 3 seconds. after that it shows default background image. how can i set the background image permanant using jquery .







http://ift.tt/1qu2gNy