I have the following code:
<script language=”JavaScript” src=”http://www.domain.com/php/js/status_image.php?base_url=http://www.domain.com/php&l=admin&x=1&deptid=1&text=CHAT”></script>
When this code is placed on the footer or header of a page, it will run normally. However, when a web visitor enter an SSL (HTTPS) page, the above javascript will cause the an Security warning, “Do you want to view only the webpage content that was delivered securely?”.
I need a fix for this, so the above PHP file will work for both HTTP and HTTPS webpages.