|
?
Help -
<script>
function addAward()
{
$(document).ready(function()
{
$.ajax(
{
type: "POST",
url: "achievements.php",
data: { HomeCoinLocator: "Yes" }
});
var div = $("#newachievementdiv span").eq(1)
var span = $("span").get(4);
span.innerHTML = "' . $endtext . '";
$(div).fadeIn("4000");
setInterval( function() { $("#newachievementdiv").fadeOut("4000"); }, 4000);
});
}
</script>
Why doesn't this work?
|