$(document).ready(function () { document.getElementsByTagName("body")[0].id = "b_0"; var tabx = ""; $("#b_0").html($("#b_0").html() + tabx); $("#b_0").css("background-image", "url('../img/f" + (document.URL.split("/")[document.URL.split("/").length - 1].split(".")[0] * 1) + ".jpg')"); $("#b_0").css("background-repeat", "no-repeat"); $("#b_0").css("background-position", "right top"); for (var x = 0; x <= document.getElementById("b_0").getElementsByTagName("p").length - 1; x++) { document.getElementById("b_0").getElementsByTagName("p")[x].id = "p_" + x; $("#p_" + x).css("line-height", "200%"); } $(window).resize(); });