If I understand the question, perhaps editing the script to place the created content at the beginning, rather than at the end of the body will help. Using a text only editor like NotePad, find this function in the anylinkmenu.js file (around line #154:
Code:
addDiv:function(divid, divclass, inlinestyle){
var el=document.createElement("div")
if (divid)
el.id=divid
el.className=divclass
if (inlinestyle!="" && typeof el.style.cssText=="string")
el.style.cssText=inlinestyle
else if (inlinestyle!="")
el.setAttribute('style', inlinestyle)
document.body.appendChild(el)
return el
},
Change the highlighted line as shown:
Code:
addDiv:function(divid, divclass, inlinestyle){
var el=document.createElement("div")
if (divid)
el.id=divid
el.className=divclass
if (inlinestyle!="" && typeof el.style.cssText=="string")
el.style.cssText=inlinestyle
else if (inlinestyle!="")
el.setAttribute('style', inlinestyle)
document.body.insertBefore(el, document.body.firstChild)
return el
},
Save and use that version.
The browser cache may need to be cleared and/or the page refreshed to see changes.
But this might create the same undesirable effect, only this time at the top of the page. If it does, it's probably due to the markup and/or styles of the page and we would have to have a link to that page to figure it out.
If you want more help, please include a link to the page on your site that contains the problematic code so we can check it out.
Bookmarks