15-01-2010 10:14 PM
code error zynga poker...??
rizalufikri Murid Akademi II
Posts: 24
Joined: 08.11.09
pas lagi masuk aplikasinya zynga ga sengaja muncul pesen error :
function LadderGifts() { var _categories = []; var _categories_ui_created = false; var _selected_cat = null; var _current_chips = 7600; var _sn = 1; var _uid = 0; var _rec_21 = true; var _buy_button_disabled = false; this.getChipCount = function() { return _current_chips; } this.setCurrGiftSN = function(sn) { _sn = sn; } this.getCurrGiftSN = function() { return _sn; } this.setCurrGiftUid = function(uid) { _uid = uid; } this.getCurrGiftUid = function() { return _uid; } this.setRecipient21 = function(bool) { _rec_21 = bool; } this.isRecipient21 = function() { return _rec_21; } this.getCategory = function(index) { return _categories[index]; } this.setCategories = function() { _categories = []; if (!(!this.is21() && 4 == 1)) { var cat = new Category(); cat.setName("Entertainment" ; cat.setStringName("entertainment" ; cat.setId(4); var g = new Gift(); g.setName("Tissues" ; g.setPrice("10" ; g.setId("111" ; g.setImage("http://statics.poker.static.zynga.com/poker/dynamic_assets/60/gift111_1.png" ; g.setCategoryId(4); cat.addGift(g); var g = new Gift(); g.setName("Sun Flower" ; g.setPrice("30" ; g.setId("155" ; g.setImage("http://statics.poker.static.zynga.com/poker/dynamic_assets/60/gift155_1.png" ; g.setCategoryId(4); cat.addGift(g); var g = new Gift(); g.setName("Elvis Doll" ; g.setPrice("200" ; g.setId("62" ; g.setImage("http://statics.poker.static.zynga.com/poker/img/giftshop/60/entertainment_elvis.png" ; g.setCategoryId(4); cat.addGift(g); var g = new Gift(); g.setName("Angel" ; g.setPrice("600" ; g.setId("162" ; g.setImage("http://statics.poker.static.zynga.com/poker/dynamic_assets/60/gift162_1.png" ; g.setCategoryId(4); cat.addGift(g); var g = new Gift(); g.setName("Devil" ; g.setPrice("700" ; g.setId("161" ; g.setImage("http://statics.poker.static.zynga.com/poker/dynamic_assets/60/gift161_1.png" ; g.setCategoryId(4); cat.addGift(g); var g = new Gift(); g.setName("GoGoDancer" ; g.setPrice("1000" ; g.setId("67" ; g.setImage("http://statics.poker.static.zynga.com/poker/img/giftshop/60/entertainment_GoGoDancer.png" ; g.setCategoryId(4); cat.addGift(g); var g = new Gift(); g.setName("Rose" ; g.setPrice("2000" ; g.setId("68" ; g.setImage("http://statics.poker.static.zynga.com/poker/dynamic_assets/60/gift68_1.png" ; g.setCategoryId(4); cat.addGift(g); var g = new Gift(); g.setName("Cupid" ; g.setPrice("3000" ; g.setId("156" ; g.setImage("http://statics.poker.static.zynga.com/poker/dynamic_assets/60/gift156_1.png" ; g.setCategoryId(4); cat.addGift(g); var g = new Gift(); g.setName("Smooch" ; g.setPrice("5000" ; g.setId("76" ; g.setImage("http://statics.poker.static.zynga.com/poker/dynamic_assets/60/gift76_6.png" ; g.setCategoryId(4); cat.addGift(g); var g = new Gift(); g.setName("Diamond Ring" ; g.setPrice("10000" ; g.setId("80" ; g.setImage("http://statics.poker.static.zynga.com/poker/dynamic_assets/60/gift_10.png" ; g.setCategoryId(4); cat.addGift(g); _categories[4] = cat; } if (!(!this.is21() && 1 == 1)) { var cat = new Category(); cat.setName("Drinks" ; cat.setStringName("drinks" ; cat.setId(1); var g = new Gift(); g.setName("Beer" ; g.setPrice("5" ; g.setId("1" ; g.setImage("http://statics.poker.static.zynga.com/poker/img/giftshop/60/drinks_beer.png" ; g.setCategoryId(1); cat.addGift(g); var g = new Gift(); g.setName("Coffee" ; g.setPrice("6" ; g.setId("87" ; g.setImage("http://statics.poker.static.zynga.com/poker/dynamic_assets/60/gift87_1.png" ; g.setCategoryId(1); cat.addGift(g); var g = new Gift(); g.setName("Energy Drink" ; g.setPrice("10" ; g.setId("148" ; g.setImage("http://statics.poker.static.zynga.com/poker/dynamic_assets/60/gift148_3.png" ; g.setCategoryId(1); cat.addGift(g); var g = new Gift(); g.setName("Tequila" ; g.setPrice("20" ; g.setId("5" ; g.setImage("http://statics.poker.static.zynga.com/poker/img/giftshop/60/drinks_tequila.png" ; g.setCategoryId(1); cat.addGift(g); var g = new Gift(); g.setName("Fruit Smoothie" ; g.setPrice("20" ; g.setId("120" ; g.setImage("http://statics.poker.static.zynga.com/poker/dynamic_assets/60/gift120_1.png" ; g.setCategoryId(1); cat.addGift(g); var g = new Gift(); g.setName("Bacon Vodka" ; g.setPrice("25" ; g.setId("147" ; g.setImage("http://statics.poker.static.zynga.com/poker/dynamic_assets/60/gift147_2.png" ; g.setCategoryId(1); cat.addGift(g); var g = new Gift(); g.setName("Margarita" ; g.setPrice("30" ; g.setId("2" ; g.setImage("http://statics.poker.static.zynga.com/poker/dynamic_assets/60/gift2_1.png" ; g.setCategoryId(1); cat.addGift(g); var g = new Gift(); g.setName("Pina Colada" ; g.setPrice("40" ; g.setId("39" ; g.setImage("http://statics.poker.static.zynga.com/poker/img/giftshop/60/drinks_colada.png" ; g.setCategoryId(1); cat.addGift(g); var g = new Gift(); g.setName("Cosmopolitan" ; g.setPrice("50" ; g.setId("8" ; g.setImage("http://statics.poker.static.zynga.com/poker/img/giftshop/60/drinks_cosmo.png" ; g.setCategoryId(1); cat.addGift(g); var g = new Gift(); g.setName("Mojito" ; g.setPrice("60" ; g.setId("4" ; g.setImage("http://statics.poker.static.zynga.com/poker/img/giftshop/60/drinks_mojito.png" ; g.setCategoryId(1); cat.addGift(g); var g = new Gift(); g.setName("Poison" ; g.setPrice("80" ; g.setId("150" ; g.setImage("http://statics.poker.static.zynga.com/poker/dynamic_assets/60/gift150_2.png" ; g.setCategoryId(1); cat.addGift(g); var g = new Gift(); g.setName("Chateau Z" ; g.setPrice("100" ; g.setId("11" ; g.setImage("http://statics.poker.static.zynga.com/poker/img/giftshop/60/drinks_wine.png" ; g.setCategoryId(1); cat.addGift(g); var g = new Gift(); g.setName("Cognac" ; g.setPrice("200" ; g.setId("9" ; g.setImage("http://statics.poker.static.zynga.com/poker/img/giftshop/60/drinks_cognac.png" ; g.setCategoryId(1); cat.addGift(g); var g = new Gift(); g.setName("Love Potion" ; g.setPrice("300" ; g.setId("149" ; g.setImage("http://statics.poker.static.zynga.com/poker/dynamic_assets/60/gift149_2.png" ; g.setCategoryId(1); cat.addGift(g); var g = new Gift(); g.setName("Champagne" ; g.setPrice("1000" ; g.setId("12" ; g.setImage("http://statics.poker.static.zynga.com/poker/img/giftshop/60/drinks_bubbly.png" ; g.setCategoryId(1); cat.addGift(g); _categories[1] = cat; } if (!(!this.is21() && 2 == 1)) { var cat = new Category(); cat.setName("Snacks" ; cat.setStringName("snacks" ; cat.setId(2); var g = new Gift(); g.setName("Nuts" ; g.setPrice("5" ; g.setId("20" ; g.setImage("http://statics.poker.static.zynga.com/poker/img/giftshop/60/food_nuts.png" ; g.setCategoryId(2); cat.addGift(g); var g = new Gift(); g.setName("Chips" ; g.setPrice("5" ; g.setId("105" ; g.setImage("http://statics.poker.static.zynga.com/poker/dynamic_assets/60/gift105_1.png" ; g.setCategoryId(2); cat.addGift(g); var g = new Gift(); g.setName("Donuts" ; g.setPrice("10" ; g.setId("96" ; g.setImage("http://statics.poker.static.zynga.com/poker/dynamic_assets/60/gift96_1.png" ; g.setCategoryId(2); cat.addGift(g); var g = new Gift(); g.setName("Beef Jerky" ; g.setPrice("15" ; g.setId("151" ; g.setImage("http://statics.poker.static.zynga.com/poker/dynamic_assets/60/gift151_1.png" ; g.setCategoryId(2); cat.addGift(g); var g = new Gift(); g.setName("Taco" ; g.setPrice("25" ; g.setId("114" ; g.setImage("http://statics.poker.static.zynga.com/poker/dynamic_assets/60/gift114_1.png" ; g.setCategoryId(2); cat.addGift(g); var g = new Gift(); g.setName("Zmite" ; g.setPrice("25" ; g.setId("159" ; g.setImage("http://statics.poker.static.zynga.com/poker/dynamic_assets/60/gift159_1.png" ; g.setCategoryId(2); cat.addGift(g); var g = new Gift(); g.setName("Chocca Mocca" ; g.setPrice("30" ; g.setId("23" ; g.setImage("http://statics.poker.static.zynga.com/poker/img/giftshop/60/food_chocamocha.png" ; g.setCategoryId(2); cat.addGift(g); var g = new Gift(); g.setName("Cheesecake" ; g.setPrice("30" ; g.setId("81" ; g.setImage("http://statics.poker.static.zynga.com/poker/dynamic_assets/60/gift81_1.png" ; g.setCategoryId(2); cat.addGift(g); var g = new Gift(); g.setName("Cherry Pie" ; g.setPrice("30" ; g.setId("72" ; g.setImage("http://statics.poker.static.zynga.com/poker/img/giftshop/60/food_pie.png" ; g.setCategoryId(2); cat.addGift(g); var g = new Gift(); g.setName("Mile High Cake" ; g.setPrice("45" ; g.setId("100" ; g.setImage("http://statics.poker.static.zynga.com/poker/dynamic_assets/60/gift100_1.png" ; g.setCategoryId(2); cat.addGift(g); var g = new Gift(); g.setName("Sushi" ; g.setPrice("50" ; g.setId("24" ; g.setImage("http://statics.poker.static.zynga.com/poker/img/giftshop/60/food_sushi.png" ; g.setCategoryId(2); cat.addGift(g); var g = new Gift(); g.setName("Pizza" ; g.setPrice("80" ; g.setId("152" ; g.setImage("http://statics.poker.static.zynga.com/poker/dynamic_assets/60/gift152_1.png" ; g.setCategoryId(2); cat.addGift(g); var g = new Gift(); g.setName("Filet Mignon" ; g.setPrice("100" ; g.setId("25" ; g.setImage("http://statics.poker.static.zynga.com/poker/img/giftshop/60/food_filet_mignon.png" ; g.setCategoryId(2); cat.addGift(g); _categories[2] = cat; } if (!(!this.is21() && 3 == 1)) { var cat = new Category(); cat.setName("Smokes" ; cat.setStringName("smokes" ; cat.setId(3); var g = new Gift(); g.setName("Smokes" ; g.setPrice("5" ; g.setId("40" ; g.setImage("http://statics.poker.static.zynga.com/poker/img/giftshop/60/smokes_cigs.png" ; g.setCategoryId(3); cat.addGift(g); var g = new Gift(); g.setName("Cigarette" ; g.setPrice("10" ; g.setId("42" ; g.setImage("http://statics.poker.static.zynga.com/poker/img/giftshop/60/smokes_cig_holder.png" ; g.setCategoryId(3); cat.addGift(g); var g = new Gift(); g.setName("Nicotine Gum" ; g.setPrice("20" ; g.setId("97" ; g.setImage("http://statics.poker.static.zynga.com/poker/dynamic_assets/60/gift97_1.png" ; g.setCategoryId(3); cat.addGift(g); var g = new Gift(); g.setName("Stogie" ; g.setPrice("25" ; g.setId("41" ; g.setImage("http://statics.poker.static.zynga.com/poker/img/giftshop/60/smokes_stogie.png" ; g.setCategoryId(3); cat.addGift(g); var g = new Gift(); g.setName("Herbal Rolls" ; g.setPrice("75" ; g.setId("43" ; g.setImage("http://statics.poker.static.zynga.com/poker/img/giftshop/60/smokes_herbal.png" ; g.setCategoryId(3); cat.addGift(g); var g = new Gift(); g.setName("Hookah" ; g.setPrice("100" ; g.setId("153" ; g.setImage("http://statics.poker.static.zynga.com/poker/dynamic_assets/60/gift153_1.png" ; g.setCategoryId(3); cat.addGift(g); var g = new Gift(); g.setName("Maui Wowie" ; g.setPrice("500" ; g.setId("45" ; g.setImage("http://statics.poker.static.zynga.com/poker/img/giftshop/60/smokes_spliff.png" ; g.setCategoryId(3); cat.addGift(g); var g = new Gift(); g.setName("Pipe" ; g.setPrice("1000" ; g.setId("154" ; g.setImage("http://statics.poker.static.zynga.com/poker/dynamic_assets/60/gift154_1.png" ; g.setCategoryId(3); cat.addGift(g); _categories[3] = cat; } } this.getSelectedCategory = function() { return _selected_cat; } this.selectDefaultCategory = function() { var default_cat = (this.is21()) ? 1 : 2; _selected_cat = _categories[default_cat]; return this.getSelectedCategory(); } this.createCategories = function() { if (_categories_ui_created) return; if (_categories.length == 0) { this.setCategories(); } var container = document.getElementById('gift_category_ul' ; var ul_container = document.getElementById('gift_category_detail_cont' ; if (container && ul_container) { for (var i = 0; i < _categories.length; i++) { if (_categories[i] == undefined) continue; var li = _categories[i].createListItem(); var ul = _categories[i].createGiftContainer(); container.appendChild(li); ul_container.appendChild(ul); } } this.createSendOptions(); _categories_ui_created = true; } this.getPointsTotalId = function() { return "currPointsTotal"; } this.getGiftNameId = function() { return "gift1"; } this.getGiftRecId = function() { return "currRecipient"; } this.getPriceId = function() { return "price1"; } this.createSendOptions = function() { var cont = document.getElementById('gift_send_html' ; if (cont != undefined) { // POINTS var send_profile_left = document.createElement('div' ; send_profile_left.addClassName('sendToProfile_left' ; var send_profile_left_p = document.createElement('p' ; var send_profile_left_p_text = document.createElement('div' ; send_profile_left_p_text.setTextValue("You have" ; var points_total = document.createElement('span' ; points_total.addClassName('special' ; points_total.setId(this.getPointsTotalId()); points_total.setTextValue("$" + addCommas(_current_chips)); send_profile_left_p.appendChild(send_profile_left_p_text); send_profile_left_p.appendChild(points_total); send_profile_left.appendChild(send_profile_left_p); // GIFT SIDE var send_profile_right = document.createElement('div' ; send_profile_right.addClassName('sendToProfile_right' ; send_profile_right.addClassName('clearfix' ; // PROFILE PIC var send_profile_pict = document.createElement('div' ; send_profile_pict.addClassName('sendToProfile_pict' ; send_profile_pict.setId('currProfileImg' ; send_profile_right.appendChild(send_profile_pict); // GIFT AND RECIPIENT INFO var send_profile_info = document.createElement('div' ; send_profile_info.addClassName('sendToProfile_info' ; var send_profile_info_p = document.createElement('p' ; // SEND INFO // Not the best way, but it works var send_span = document.createElement('span' ; send_span.setTextValue("Send " ; // GIFT NAME var gift_name = document.createElement('span' ; gift_name.setId(this.getGiftNameId()); var to_span = document.createElement('span' ; to_span.setTextValue(" to " ; // GIFT RECIPIENT var gift_rec = document.createElement('span' ; gift_rec.setId(this.getGiftRecId()); var q_span = document.createElement('span' ; q_span.setTextValue("?" ; send_profile_info_p.appendChild(send_span); send_profile_info_p.appendChild(gift_name); send_profile_info_p.appendChild(to_span); send_profile_info_p.appendChild(gift_rec); send_profile_info_p.appendChild(q_span); send_profile_info.appendChild(send_profile_info_p); // BUY BUTTON var buy_button = document.createElement('a' ; buy_button.setHref("#" ; buy_button.addEventListener("click",this.handleBuyClicked.bind(this),false); // PRICE var buy_button_span = document.createElement('span' ; buy_button_span.addClassName('special' ; buy_button_span.setId(this.getPriceId()); buy_button.appendChild(buy_button_span); send_profile_info.appendChild(buy_button); // NO THANKS var no_thanks = document.createElement('a' ; no_thanks.setHref('#' ; no_thanks.addClassName('no_thx' ; no_thanks.addEventListener("click",this.handleNoThanksClicked,false); var no_thanks_span = document.createElement('span' ; no_thanks_span.addClassName('special' ; no_thanks_span.setTextValue("No Thanks" ; no_thanks.appendChild(no_thanks_span); send_profile_info.appendChild(no_thanks); send_profile_right.appendChild(send_profile_info); cont.appendChild(send_profile_left); cont.appendChild(send_profile_right); } } this.handleNoThanksClicked = function() { closePopup(); return false; } this.handleBuyClicked = function() { if (_buy_button_disabled) return; this.disableBuyButton("Buying..." ; var gift = this.getSelectedCategory().getSelectedGift(); if(this.getSelectedCategory().getId() == 1 && this.isRecipient21() != true) { var dialog = new Dialog(); dialog.setStyle('width', '180px' ; dialog.showMessage('Error', 'Underage users are ineligible for this gift.' ; this.enableBuyButton(); } else { if(this.getChipCount() < gift.getPrice()) { var dialog = new Dialog(); dialog.setStyle('width', '200px' ; dialog.showMessage('Error', 'You do not have enough chips to purchase this gift.' ; this.enableBuyButton(); } else { var img = document.getElementById('ladder_gift_request_img' ; if (img != null) { img.setSrc(gift.getImage()); } var url = 'http://facebook.poker.zynga.com/poker/inc/ajax/ladder_send_gift.php?to_sn='+this.getCurrGiftSN()+'&to_uid='+this.getCurrGiftUid()+'&gift_id='+gift.getId(); var a = new Ajax(); a.requireLogin = true; a.responseType = Ajax.JSON; var obj = this; a.ondone = function (data) { if (data['fbml_form'] != undefined) { friend_name = data['friend_name']; var name = document.getElementById('ladder_gift_friend_name' ; if (name != null) { name.setInnerFBML(data['fbml_friend']); } var gift_name = document.getElementById('ladder_gift_name' ; if (gift_name != null) { gift_name.setTextValue(data['gift_name']); } var wrapper = document.getElementById('ladder_gift_container_ajax' ; if (wrapper != null) { wrapper.setInnerFBML(data['fbml_form']); obj.updateChipTotal(); obj.enableBuyButton(); openPopup(1,'ladder_gift' ; } } }; a.post(url); } } } this.updateChipTotal = function() { _current_chips = _current_chips - parseInt(this.getSelectedCategory().getSelectedGift().getPrice()); var points_span = document.getElementById(this.getPointsTotalId()); if (points_span) points_span.setTextValue("$" + addCommas(_current_chips)); closePopup(); } this.updateGiftInformation = function(gift) { var gift_name = document.getElementById(this.getGiftNameId()); if (gift_name) gift_name.setTextValue(gift.getName()); var priceText = 'Buy for $'+addCommas(gift.getPrice()); var price = document.getElementById(this.getPriceId()); if (price) price.setTextValue(priceText); } this.disableBuyButton = function(text) { var gift_price = document.getElementById(this.getPriceId()); if (gift_price) { gift_price.setTextValue(text); _buy_button_disabled = true; } } this.enableBuyButton = function() { _buy_button_disabled = false; this.updateGiftInformation(this.getSelectedCategory().getSelectedGift()); } this.selectCategory = function(cat) { _selected_cat = cat; this.hideCategories(); } this.hideCategories = function() { for (var i = 0; i < _categories.length; i++) { if (_categories[i] == undefined) continue; _categories[i].hide(); } } } LadderGifts.prototype.is21 = function() { return true; } LadderGifts.getObj = (function() { var o = null; return function() { o = o || new LadderGifts(); return o; } })(); function Category() { var _gifts = []; var _gifts_created = false; var _selected_gift = null; var _name = ''; var _str_name = ''; var _id = 0; var _shown = false; this.setName = function(n) { _name = n; } this.getName = function() { return _name; } this.setId = function(i) { _id = i; } this.getId = function() { return _id; } this.setStringName = function(n) { _str_name = n; } this.getStringName = function() { return _str_name; } this.addGift = function(g) { _gifts.push(g); } this.createListItem = function() { var li = document.createElement('li' ; li.setId('category_' + this.getStringName()); var name = this.getStringName(); var a = document.createElement('a' ; a.addEventListener("click",this.show.bind(this),false); a.setHref("#" ; a.setTitle(name); a.setTextValue(this.getName()); li.appendChild(a); return li; } this.getGiftsContainerId = function() { return this.getStringName() + "_mainContainer"; } this.createGiftContainer = function() { var ul = document.createElement('ul' ; ul.setId(this.getGiftsContainerId()); ul.addClassName("clearfix" ; return ul; } this.getListItemId = function() { return 'category_' + this.getStringName(); } this.getListItemClassName = function() { return 'categorySelected'; } this.selectListItem = function() { var li = document.getElementById(this.getListItemId()); if (li != undefined) { li.addClassName(this.getListItemClassName()); } } this.unSelectListItem = function() { var li = document.getElementById(this.getListItemId()); if (li != undefined) { li.removeClassName(this.getListItemClassName()); } } this.getIconId = function() { return "category_icon_" + this.getStringName(); } this.showIcon = function() { var div = document.getElementById(this.getIconId()); if (div == undefined) { var div_container = document.getElementById('gift_category_left_cont' ; if (div_container) { div = document.createElement('div' ; div.setId(this.getIconId()); div.addClassName('category_icon_' + this.getStringName()); div.setStyle("display","block" ; div_container.appendChild(div); return; } } div.setStyle("display","block" ; } this.hideIcon = function() { var div = document.getElementById(this.getIconId()); if (div != undefined) { div.setStyle("display","none" ; } } this.hide = function() { if (_shown) { this.hideIcon(); this.unSelectListItem(); this.hideGifts(); } } this.show = function() { LadderGifts.getObj().selectCategory(this); this.showIcon(); this.selectListItem(); this.showGifts(); this.autoselectGift(); _shown = true; } this.showGifts = function() { var cont = document.getElementById(this.getGiftsContainerId()); if (cont != undefined) { if (_gifts_created) { cont.setStyle("display","block" ; } else { for (var i = 0; i < _gifts.length; i++) { var gift = _gifts[i]; var li = gift.createHTML(); cont.appendChild(li); } _gifts_created = true; } } } this.hideGifts = function() { var cont = document.getElementById(this.getGiftsContainerId()); if (cont != undefined) { cont.setStyle("display","none" ; } } this.selectedGift = function(gift) { _selected_gift = gift; LadderGifts.getObj().updateGiftInformation(gift); this.deselectGifts(); } this.getSelectedGift = function() { return _selected_gift; } this.deselectGifts = function() { for (var i = 0; i < _gifts.length; i++) { _gifts[i].deselect(); } } this.autoselectGift = function() { if (_gifts.length > 0) { _gifts[0].select(); } } } function Gift() { var _name = ""; var _price = ""; var _id = ""; var _image = ""; var _cat_id = 0; this.setName = function(n) { _name = n; } this.getName = function() { return _name; } this.setPrice = function(p) { _price = p; } this.getPrice = function() { return _price; } this.setId = function(i) { _id = i; } this.getId = function() { return _id; } this.setImage = function(img) { _image = img; } this.getImage = function() { return _image; } this.setCategoryId = function(i) { _cat_id = i; } this.getCategoryId = function() { return _cat_id; } this.getContainerId = function() { return this.getName() + "_list"; } this.createHTML = function() { var li = document.createElement('li' ; li.setId(this.getContainerId()); var a = document.createElement('a' ; a.setHref('#' ; a.addEventListener("click",this.select.bind(this),false); var icon_img_cont = document.createElement('div' ; icon_img_cont.addClassName("icon_img" ; var icon_img = document.createElement('img' ; icon_img.setSrc(this.getImage()); icon_img.alt = this.getName(); icon_img_cont.appendChild(icon_img); a.appendChild(icon_img_cont); var icon_name = document.createElement('div' ; icon_name.addClassName("icon_name" ; icon_name.setTextValue(this.getName()); a.appendChild(icon_name); var icon_price = document.createElement('div' ; icon_price.addClassName("icon_price" ; icon_price.setTextValue("$"+this.getPrice()); a.appendChild(icon_price); li.appendChild(a); return li; } this.getSelectedClassName = function() { return "selected"; } this.select = function() { var li = document.getElementById(this.getContainerId()); if (li != undefined) { LadderGifts.getObj().getCategory(this.getCategoryId()).selectedGift(this); li.addClassName(this.getSelectedClassName()); } } this.deselect = function() { var li = document.getElementById(this.getContainerId()); if (li != undefined) { li.removeClassName(this.getSelectedClassName()); } } }
mungkin ada sesuatu...??? mohon pencerahan kakak2
berusahalah untuk tidak berfikir menjadi seorang yang sukses, tapi berusahalah menjadi orang yang berguna...!!!
15-01-2010 10:25 PM
RE:
code error zynga poker...??
EVA-00 HackAge
Posts: 2768
Joined: 21.05.08
Location: Wallahu a'lam
Age: 39
itu bukan error, tapi browser lu telat baca script yang akan di proses sama browser, dan tampilah client-script yang elu posting.
btw kl bisa elu bikin screenshot gambarnya aja bro, ga usah posting code nya kayak gitu. coz kagak enak di liat
Nabi Muhammad SAW bersabda :” Barangsiapa Yang Mengamalkan Ilmu Yang Ia Ketahui Maka Allah Akan Memberikan Kepadanya Ilmu Yang Belum Ia Ketahui” (HR. Imam Ahmad).
..::shn6 u!vJq Jnoh 3Joldx3 d33>I::..
15-01-2010 10:31 PM
RE:
code error zynga poker...??
rizalufikri Murid Akademi II
Posts: 24
Joined: 08.11.09
sip ka eva..!! tadi telat pencet printscreenya..!! hehehe.. thanx infonya... mohon bimbingannya kakak
berusahalah untuk tidak berfikir menjadi seorang yang sukses, tapi berusahalah menjadi orang yang berguna...!!!
Jump to Forum:
Peraturan Forum
Pengumuman
Absen Member baru
Bingung??? disini ajah...
Kritik & Saran
C/C++
Java
PHP
Visual Basic
Out Of Topic Programing
Windows
Networking
Mac & Apple Family
Open Source OS
Mobile Phone OS
Explore CMS PHP-Fusion
Post Your PHP-Fusion Site Here.
Info Security
Black & White Proof of Concept
E-Book
MP3 Album
Video
Software
Manga / Comic
Share Proof of Concept Your Design
Out Of Topic
Info Seminar, Event, Pameran, Etc
Can't Speak Indonesian? Post Here
Share Pengetahuan Umum