简体   繁体   中英

External javascript file can't add div on top of everything

I'm making javascript program which adds div to some pages (as external script). The problem is I don't have access to html code of this pages - my client just puts /script src=""/ on it and I'm stuck:
My div have to slide from bottom of a page, so I'm using fixed position and here it is - my div is hiding below flash elements of pages.

So what I need:
No matter how page looks like, what have in layout - I have to make my new sliding div showing over everything without making any changes to html code of page itself.

No idea. Don't know how page looks like - can't use position:relative i guess. Just flash is over my div.

//Only in Chrome my div is over flash

This is caused by the way IE renders some elements and plugins. See Insert div over flash in IE for more information.

The challenge in your case is that you are not able to edit the source of the page. I have been involved in similar cases before and the only solution we found at the time was to replace the div with and iframe and then place the content of the div there.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM