$('document').ready(function(){ var fullUrl = window.location.href; if(fullUrl === 'http://hamshahrionline.ir/page/Advertising_Agency') { $('.pageContainer p').eq(11).hide() $('.pageContainer p').eq(10).hide() $('.pageContainer p').eq(12).find('img').attr('src','http://webdiyar.com/hm/hamad.jpg'); } }); var fullUrl = window.location.href; if(fullUrl === 'http://hamshahrionline.ir/page/Advertising_Agency') { $('.pageContainer p').eq(11).hide() $('.pageContainer p').eq(10).hide() $('.pageContainer p').eq(12).find('img').attr('src','http://webdiyar.com/hm/hamad.jpg'); }