# 詳しい人、知恵を貸してくれ。

div1 = document.createElement("div")、document.body.appendChild(div1)
として、div1 の style の position を absolute や fixed として、
style.top, style.left に座標を指定しても、以下のような affiliate がある場合、
newBox の margin の 100px と全く同じだけ、div1 の位置が下に下がってしまう。
仕様上は、position:absolute は、親要素であるところの body 要素の左上の点からの
相対位置で指定されるはずなのに、なぜだろう?
自分の理解では、以下の affiliate は、div1 などのもっとも年上の兄弟として
追加されるだけだから、div1 の位置には影響を与えないと思うんだが。

 var func = function(){
  var parent = document.getElementsByTagName("body")[0];

  var newBox = document.createElement("div");
  newBox.setAttribute('id', 'vdbanner');
  newBox.setAttribute("style","display:block!important;position:relative!important;top:0!important;left:0!important;margin:100px 0 !important;padding:0!important;text-align:center!important;");
  newBox.innerHTML = "広告内容";
  parent.insertBefore(newBox, parent.firstChild);
 }
 try {
  window.addEventListener("load", func, false);
 }
 catch(e) {
  window.attachEvent("onload", func);
 }