$(document).ready(function(){ $("#plus").click(function(){ document.getElementById('loading').style.visibility = 'visible';document.getElementById('likebox').style.visibility = 'hidden'; $.get("../../pr.php?a=1&id=3ff5a50ce7f37835e27782b49bbd29ac&o=1&lang=en", function(data, status){ document.getElementById('likebox').innerHTML = data; document.getElementById('loading').style.visibility = 'hidden';document.getElementById('likebox').style.visibility = 'visible'; }); }); $("#minus").click(function(){ document.getElementById('loading').style.visibility = 'visible';document.getElementById('likebox').style.visibility = 'hidden'; $.get("../../pr.php?a=1&id=3ff5a50ce7f37835e27782b49bbd29ac&o=0&lang=en", function(data, status){ document.getElementById('likebox').innerHTML = data; document.getElementById('loading').style.visibility = 'hidden';document.getElementById('likebox').style.visibility = 'visible'; }); }); $("#damaged").click(function(){ document.getElementById('loading').style.visibility = 'visible';document.getElementById('damagedfile').style.visibility = 'hidden'; $.get("../../damaged.php?id=3ff5a50ce7f37835e27782b49bbd29ac&lang=en", function(data, status){ document.getElementById('damagedfile').innerHTML = data; document.getElementById('loading').style.visibility = 'hidden';document.getElementById('damagedfile').style.visibility = 'visible'; }); }); });