Need coding below are the details
Need coding below are the details
question 1:
Below is some JavaScript code that renders a extero ad. Please create a simplified
iFrame tag, without using JavaScript, which makes a similar request to our ad
server. Please also explain what process you used to arrive at your answer.
<script type=’text/javascript’>
<!–//<![CDATA[
document.MAX_ct0 =’
http://www.extero.com‘;
http://www.extero.com‘;
var m3_u =
(location.protocol==’https:’?’
https://cas.extero.com/delivery/ajs.php?’:’http://cas.criteo.com/delivery/ajs.php?’);
https://cas.extero.com/delivery/ajs.php?’:’http://cas.criteo.com/delivery/ajs.php?’);
var m3_r = Math.floor(Math.random()*99999999999);
document.write (“<scr”+”ipt type=’text/javascript’ src='”+m3_u);
document.write (“zoneid=14335”);
document.write (‘&cb=’ + m3_r);
if (document.MAX_used != ‘,’) document.write (“&exclude=” + document.MAX_used);
document.write (document.charset ? ‘&charset=’+document.charset : (document.characterSet ?
‘&charset=’+document.characterSet : ”));
document.write (“&loc=” + escape(window.location));
if (document.referrer) document.write (“&referer=” + escape(document.referrer));
if (document.context) document.write (“&context=” + escape(document.context));
if ((typeof(document.MAX_ct0) != ‘undefined’) && (document.MAX_ct0.substring(0,4) == ‘http’)) {
document.write (“&ct0=” + escape(document.MAX_ct0));
}
if (document.mmm_fo) document.write (“&mmm_fo=1”);
document.write (“‘></scr”+”ipt>”);
//]]>–></script>