KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
Can skip to the edit for a more up to date explanation. I can't seem to set an ad that gets written out via document.write() to a fixed position. It works fine in all other browsers besides IE, and that includes IE9. Here is an example: http://htinteractive.com/bottom_bar/demo.html Any suggestions would be highly appreciated. I'm running out of ideas. Thank you. Edit: I've narrowed the problem down to the following IE issue I'm having. To simplify it down... <style type="text/css"> #temp1 { position:fixed; bottom:0; height:100px; width:100px; border:solid 2px red; } </style> <!--WORKS IN IE--> <div id="temp1"> <script type="text/javascript"> document.write("<scr" + "ipt type=\"text/javascript\">\nif(typeof(cachebuster) == \"undefined\"){var cachebuster = Math.floor(Math.random()*10000000000)}\nif(typeof(dcopt) == \"undefined\"){var dcopt = \"dcopt=ist;\"} else {var dcopt = \"\"}\nif(typeof(tile) == \"undefined\"){var tile = 1} else {tile++}\ndocument.write('<scr'+'ipt src=\"http://ad.doubleclick.net/adj/shz.bloomington/home;pos=728x90_1;' + dcopt + ';tile=' + tile + ';sz=728x90;ord=' + cachebuster + '?\"></scr'+'ipt>');\n</scr" + "ipt>"); </script> </div> <!--FAILS TO FIX POSITION IN IE--> <script type="text/javascript"> document.write('<div id="temp1">'); document.write("<scr" + "ipt type=\"text/javascript\">\nif(typeof(cachebuster) == \"undefined\"){var cachebuster = Math.floor(Math.random()*10000000000)}\nif(typeof(dcopt) == \"undefined\"){var dcopt = \"dcopt=ist;\"} else {var dcopt = \"\"}\nif(typeof(tile) == \"undefined\"){var tile = 1} else {tile++}\ndocument.write('<scr'+'ipt src=\"http://ad.double
Tags (comma-separated)
Save Edits
Cancel