Advertisement
Similar Games
Play Now!
Ball Challenge
Advertisement
Ball Challenge
Move between the top and bottom of the screen as you attempt to avoid obstacles, collect points, and smash helpful power-ups. Try to survive as long as you can!
Advertisement
&description_url=" + encodeURIComponent(descriptionURL) + "&correlator=1732447080";
function getcookie(name) {
var cookie_start = document.cookie.indexOf(name);
var cookie_end = document.cookie.indexOf(";", cookie_start);
return cookie_start == -1 ? '' : unescape(document.cookie.substring(cookie_start + name.length + 1, (cookie_end > cookie_start ? cookie_end : document.cookie.length)));
}
function setcookie(cookieName, cookieValue, seconds, path, domain, secure) {
var expires = new Date();
expires.setTime(expires.getTime() + seconds);
document.cookie = escape(cookieName) + '=' + escape(cookieValue) +
(expires ? '; expires=' + expires.toGMTString() : '') +
(path ? '; path=' + path : '/') +
(domain ? '; domain=' + domain : '') +
(secure ? '; secure' : '');
}
function ClearPlayedGames() {
setcookie("lastplayedgames", "", -360000, "/");
return false;
}
function PlayedGames(game_id) {
var playedgames = getcookie("playedgames");
if (playedgames.indexOf("," + game_id + ",") > -1) {
playedgames = playedgames.replace("," + game_id + ",", '');
} else {
if (playedgames == "" || playedgames == ",") {
playedgames = "," + game_id + ",";
} else {
playedgames = "," + game_id + "," + playedgames;
}
}
setcookie("playedgames", playedgames, 25920000000, "/");
}
$(document).ready(function() {
PlayedGames(1433);
});
window.setTimeout(function() {
__upGame_rx8(1433)
}, 2000);
var descriptionURL = "http://www.avodarta.com/game/ball-challenge";
var iframe = '
';
$(document).ready(function() {
$('.gamePlay-icon, .gamePlay-button, #gamePlay-content').click(function(e) {
SkipAdAndShowGame();
// $('#adsContainer').show();
$("#gamePlay-content").hide();
// $("#adsContainer").hide();
$("#game-box").html(iframe);
// $("#game-preloading").show();
// setTimeout(
// function()
// {
// $("#game-preloading").hide();
// PreRollAd.start();
// }, 550);
});
});
function SkipAdAndShowGame() {
$("#adsContainer").hide();
$("#game-box").html(iframe);
}
$(function() {
$('.ad300').eq(0).show();
if ($('.ad300').size() > 1) {
setInterval(function() {
var first = $('.ad300').eq(0);
first.hide();
$('.ad300').last().after(first);
$('.ad300').eq(0).fadeIn();
}, 3000);
}
$('.adsmall').eq(0).show();
if ($('.adsmall').size() > 1) {
setInterval(function() {
var first = $('.adsmall').eq(0);
first.hide();
$('.adsmall').last().after(first);
$('.adsmall').eq(0).fadeIn();
}, 3000);
}
})