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