enter your code here
var value = document.getElementsByTagName('html')[0].style.top.toString().substring(0, 2);
if (parseInt(value, 10) > 0) {
var pixels = (value + 35).toString();
document.getElementsByTagName('html')[0].style.position = "relative";
document.getElementsByTagName('html')[0].style.top = pixels + "px";
}
else {
document.getElementsByTagName('html')[0].style.position = "relative";
document.getElementsByTagName('html')[0].style.top = "35px";
}
var link = chrome.extension.getURL('docz/links.html');
var frameEl = $(document.createElement('iframe'));
var divEl = $(document.createElement('div'));
divEl.attr('id','newDiv');
divEl.css('width','100%');
divEl.css('height','35px' );
divEl.css('position','fixed' );
divEl.css('top','0 !important');
divEl.css('z-index','2147482637');
frameEl.attr('id','frame1');
frameEl.attr('scrolling','no');
frameEl.attr('src',link);
frameEl.attr('frameborder','0');
frameEl.css('position','absolute');
frameEl.css('top', '0 !important');
frameEl.css('width','100%');
frameEl.css('height','35px');
frameEl.css('border','none');
frameEl.css('border-radius','10px 10px 10px 10px');
frameEl.css('background-color','silver');
frameEl.appendTo(divEl);
divEl.prependTo(document.body);
try this... the previous version was more simplistic, incorporate this code into $(function(){});