Warning: memcache_pconnect() [function.memcache-pconnect]: Can't connect to localhost:11211, Connection refused (111) in /home/adfc/html/ad_euckr.php on line 52
var ad_count = 1; var ad_count = 1; var ad_selected = new Array(3253, 0); var aditem_selected = new Array(0, 0); var slot48_key = "hanyyss"; Ad = function(id, type, adtype, itemcount, item) { this.id = id; this.type = type; this.adtype = adtype; this.itemcount = itemcount; this.item = item; } Aditem = function(id, type, adtype, title, content, url, filename) { this.id = id; this.type = type; this.adtype = adtype; this.title = title; this.content = content; this.url = url; this.filename = filename; } var media = '10'; var slot = '48'; var width = '108'; var height = '72'; var itemcount = 1; var text_type = 1; var rate = new Array(60, 35, 30, 25, 20, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10); var listcount = 4; var adlist = new Array(20); var aditem0 = new Array(1); aditem0[0] = new Aditem(3365, 1, '1', 'È¿°úÁÁÀº ¿Â¶óÀα¤°í', '', 'http://www.adfactory.kr ', '20100820164027_0963e4be.gif'); adlist[0] = new Ad(3231, 1, 1, 1, aditem0); var aditem1 = new Array(1); aditem1[0] = new Aditem(3359, 1, '1', 'È¿°úÁÁÀº ±¤°í', '', 'http://www.adfactory.kr/ ', '20100723142100_8dc86e79.gif'); adlist[1] = new Ad(3230, 1, 1, 1, aditem1); var aditem2 = new Array(1); aditem2[0] = new Aditem(3411, 1, '1', '¿Â¶óÀα¤°í °æ¸Å½Ã½ºÅÛ', '', 'http://adfactory.kr ', '20100823113310_189fa1b8.gif'); adlist[2] = new Ad(3253, 1, 1, 1, aditem2); var aditem3 = new Array(1); aditem3[0] = new Aditem(2834, 1, '1', '´ë¸í¸®Á¶Æ® º½¸ÂÀÌ Æ¯º°ºÐ¾çÁß', '', 'http://www.daemyungpark.com ', '20100325082956_ad82d184.gif'); adlist[3] = new Ad(3035, 1, 1, 1, aditem3); function winOpen() { var url = 'http://www.hankyung.com/adimg/html/index.html'; window.open(url,'popWin','width=617,height=650,scrollbars=yes'); return; } function get_adlist(value) { for(var i = 0; i < listcount; i++) { if (adlist[i].id == value) return i; } return 0; } function get_advertise(value, item_pos) { var pos = get_adlist(value); var item = adlist[pos].item[item_pos]; var result = ''; if (item.type == 1) { result = "
"; } else if (item.type == 3) { result = "
"; } else { if (text_type == 2) { //¼¼·ÎÇü result = "
" + item.title + "
" + item.content + "
"; } else { //°¡·ÎÇü result = "
" + item.title + "
" + item.content + "
"; } } return result; } var pos; var positem; document.write("
"); for(var i = 0; i < ad_count; i++) { pos = ad_selected[i]; item_pos = aditem_selected[i]; document.write(get_advertise(pos, item_pos)); } if (2 == 2) { document.write("
"); document.write(""); document.write("
"); } document.write("
");
Warning: memcache_close() expects parameter 1 to be MemcachePool, boolean given in /home/adfc/html/ad_euckr.php on line 254