Kulinaria.bg - 300x250 all pages
до 50 KB, банерите се предават във fla file, заедно с използваните шрифтове. Задължително е банерите да се изработват с рамка.
Actionscript 2 - Assign the following function call to the button’s on (release) event:
on (release)
{
getURL(_root.clickTag, "_blank");
}
IMPORTANT: please pay attention to the character case in _root.clickTag variable!
Actionscript 3 - Add the following piece of code to its first frame:
var clickTag:String=LoaderInfo(this.root.loaderInfo).parameters.clickTag;
target_button.addEventListener(MouseEvent.CLICK, targetUrlHandler);
function targetUrlHandler(e:MouseEvent):void{
if(clickTag){
var req:URLRequest = new URLRequest(clickTag);
if(!ExternalInterface.available){
navigateToURL(req, "_blank");
}else{
var strUserAgent:String = String(ExternalInterface.call("function(){return navigator.userAgent;}")).toLowerCase();
if(strUserAgent.indexOf("firefox")!=-1||(strUserAgent.indexOf("msie")!=-1&&
uint(strUserAgent.substr(strUserAgent.indexOf("msie")+5,3))>=7)){
ExternalInterface.call("window.open", req.url, "_blank");
}else{
navigateToURL(req, "_blank");
}
}
}
}