Hi Patrick,
I finally found the troublemaker. It was the jQuery wrapInner and append method that is called by the prettyPhoto (popup) library. Both methods let the browser re-execute the inline JavaScripts which appended the LiveZilla text to the body tag instead of to where it is defined.
Thus, "document.write(html)" from you image.php simply placed the "html" to the body.
My solution was to adjust your image.php file (around line 72):
before
if(!empty($html))
exit("document.write(\"".$html."\");");
now
if(!empty($html))
exit("$('#livezilla_textbox').append(\"".$html."\");");
the JavaScript on the target page is now outside of the popup-layer:
before, in-line where it should be displayed
<script type="text/javascript" src="/image.php?...</noscript>
now, in-line, plain html spacer
<span id="livezilla_textbox"></span>
// at end of the footer
<script type="text/javascript" src="/image.php?...</noscript>
of course, I'm using jQuery. But the solution would also be praticable with plain JavaScript and maybe more safe for advanced placements of the buttons.
Besides, i found out that for XHTML the document.write approach is deprecated. see here
http://www.w3.org/Ma...ml-faq#docwrite
Greetings,
Sebastian