function _changeImageBanner(cId,oUrl,bId,bUrl,image,title,width,height,mode,addScripts){ var banner = document.getElementById(cId); if(!banner) return; var html = ''; } function _changeTextBanner(id,cId,oUrl,bId,bUrl,title,description,width,height,mode,addScripts){ var banner = document.getElementById(cId); if(!banner) return; eval('var template = adTemplate_'+id); if(!template || template=='undefined' || template=='') return; var onclick = ''; if(oUrl=='' || oUrl=='javascript:;') onclick += 'javascript:;'; else { if(mode=='1') onclick += '___openWindow(\'' + oUrl + bId + '\');'; else onclick += 'location.href=\'' + oUrl + bId + '\';'; } onclick += addScripts + 'return false;'; var adText = template.replace(/\[href\]/g,bUrl); adText = adText.replace(/\[onclick\]/g,onclick); adText = adText.replace(/\[title\]/g,title); adText = adText.replace(/\[description\]/g,description); banner.innerHTML = adText; } function _changeVideoBanner(cId,file,width,height){ var banner = document.getElementById(cId); if(!banner) return; banner.innerHTML = ___getWindowsMediaPlayerCode(file,width,height); } function _changeFLVBanner(cId,file,width,height){ if(!document.getElementById(cId)) return; var swf = new SWFObject('/Common/MediaPlayer.swf','vieAdManager',width,height,'8'); swf.addParam('allowscriptaccess','always'); swf.addParam('allowfullscreen','false'); swf.addParam('wmode','transparent'); swf.addVariable('autostart','true'); swf.addVariable('width',width); swf.addVariable('height',height); swf.addVariable('file',file); swf.write(cId); }