MOJO Adserver Flash Creative Specifications
CONFIDENTIAL 8
Example MPLX flash template
Below is an edited example of our flash template. The items in red are what
need to be changed from flash banner to flash banner.
<HTML>
<BODY>
<NOSCRIPT><a href="http://www.mediaplex.com" TARGET="_new"><IMG
SRC="puppets_15_3-120x600.gif" WIDTH="120" HEIGHT="600" BORDER="0"></a>
</NOSCRIPT>
<SCRIPT LANGUAGE=JavaScript>
<!--
var flashName
= "puppets_15_3-120x600.swf"
// flash file name;
var altImgName
= "puppets_15_3-120x600.gif"
// alt gif name;
var minFlashVer
= 4; // minimum version check;
var width
= 120; // flash banner width;
var height = 600; // flash banner height;
if (typeof clickTAG == "undefined") {
var query = location.search.substring(1);
if (navigator.appName && navigator.appName.indexOf("Netscape")>=0)
if (navigator.appVersion.indexOf("2.")>=0 ||
navigator.appVersion.indexOf("3.")>=0 ||
navigator.appVersion.indexOf("4.")>=0) {
if (typeof src != "undefined" && src)
query = src.substring(1);
else query = "";
}
var clickTAG = "http://www.mediaplex.com"; // normally set to
"http://<mpck/>"; hardcoded for demo only
var pos = query.indexOf('clickTAG=');
if (pos >= 0) {
query = query.substr(pos+9);
pos = query.indexOf('&');
if (pos == -1) pos = query.indexOf('?');
if (pos > -1) clickTAG = query.substr(0,pos);
else clickTAG = query;
}
}
var plugin = 0;
var d = document;
var swf = "Shockwave Flash";
if (navigator.mimeTypes && navigator.mimeTypes["application/x-
shockwave-flash"] && navigator.mimeTypes["application/x-shockwave-
flash"].enabledPlugin) {
if (navigator.plugins && navigator.plugins[swf])
pos = navigator.plugins[swf].description.indexOf(swf) +
swf.length+1;
var swver =
navigator.plugins[swf].description.substr(pos,1)
if (swver >= minFlashVer)
plugin = 1;
}
else if (navigator.userAgent && navigator.userAgent.indexOf("MSIE")>=0
&& (navigator.userAgent.indexOf("Windows")>=0)) {
d.write('<SCRIPT LANGUAGE=VBScript\> \n');
d.write('on error resume next \n');
d.write('if ( minFlashVer = 3 ) then plugin = (
IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.3")))\n');
d.write('if (( minFlashVer <= 4) and (plugin <= 0 )) then plugin =
( IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.4")))\n');
d.write('if (( minFlashVer <= 5) and (plugin <= 0 )) then plugin =
( IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.5")))\n');
d.write('</SCR'+'IPT\> \n');
}
if ( plugin ) {
d.write('<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-
444553540000"');