$(document).ready(function(){ $("#plus").click(function(){ document.getElementById('loading').style.visibility = 'visible';document.getElementById('likebox').style.visibility = 'hidden'; $.get("../../pr.php?a=1&id=d93c7475cb6cfaf7e6b1671e2aac955f&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=d93c7475cb6cfaf7e6b1671e2aac955f&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=d93c7475cb6cfaf7e6b1671e2aac955f&lang=en", function(data, status){ document.getElementById('damagedfile').innerHTML = data; document.getElementById('loading').style.visibility = 'hidden';document.getElementById('damagedfile').style.visibility = 'visible'; }); }); });