1. After upgrading the website to HTTPS, the Baidu and Alimama ad embeds were not displaying, as shown in Figure 1.

2. The Baidu ad embed code contains HTTP URLs.
JavaScript
(function() {
var s = "_" + Math.random().toString(36).slice(2);
document.write('<div id="' + s + '"></div>');
(window.slotbydup=window.slotbydup || []).push({
id: '6758467',
container: s,
size: '200,280',
display: 'inlay-fix'
});
})();
</pre>3. The Alimama ad embed code contains HTTP URLs.
JavaScript
document.write('<a style="display:none!important" id="tanx-a-mm_123311466_23836172_109841700208"></a>');
tanx_s = document.createElement("script");
tanx_s.type = "text/javascript";
tanx_s.charset = "gbk";
tanx_s.id = "tanx-s-mm_123311466_23836172_109841700208";
tanx_s.async = true;
tanx_s.src = "http://p.tanx.com/ex?i=mm_123311466_23836172_109841700208";
tanx_h = document.getElementsByTagName("head")[0];
if(tanx_h)tanx_h.insertBefore(tanx_s,tanx_h.firstChild);
4. Based on the browser prompt: after clicking “Load unsafe scripts”, the Baidu ad displayed, but the Alimama ad still did not display, and the browser indicated the page was unsafe, as shown in Figure 2.

5. Fortunately, both Baidu and Alimama already support the HTTPS protocol. After adjusting the ad embed code by replacing http:// with https://, I reopened the webpage; both ads displayed successfully, and there were no more security warnings, as shown in Figure 3.

JavaScript
<script type="text/javascript">
document.write('<a style="display:none!important" id="tanx-a-mm_123311466_23836172_109841700208"></a>');
tanx_s = document.createElement("script");
tanx_s.type = "text/javascript";
tanx_s.charset = "gbk";
tanx_s.id = "tanx-s-mm_123311466_23836172_109841700208";
tanx_s.async = true;
tanx_s.src = "https://p.tanx.com/ex?i=mm_123311466_23836172_109841700208";
tanx_h = document.getElementsByTagName("head")[0];
if(tanx_h)tanx_h.insertBefore(tanx_s,tanx_h.firstChild);
