电子邮件未显示在图像内部

email is not displaying inside image

本文关键字:图像 内部 显示 电子邮件      更新时间:2023-09-26

嗨,我有一个页面,显示确认后的电子邮件。我想在图片链接中显示那封电子邮件。

为此,我使用了这段代码,但这里的电子邮件变量为null。

<HTML>
<head>
<script type="text/javascript">
 var formData = function() {  var query_string = (location.search) ? ((location.search.indexOf('#') != -1) ? location.search.substring(1, location.search.indexOf('#')) : location.search.substring(1)) : '';  
var elements = [];  
if(query_string) {     
    var pairs = query_string.split("&");     
    for(i in pairs) {     
        if (typeof pairs[i] == 'string') {           
            var tmp = pairs[i].split("=");           
            var queryKey = unescape(tmp[0]);           
            queryKey = (queryKey.charAt(0) == 'c') ? queryKey.replace(/'s/g, "_") : queryKey;   
            elements[queryKey] = unescape(tmp[1]);      
             }    
       } 
 }  
return {     
    display: function(key) {         
        if(elements[key]) {           
             document.write(elements[key]);         
         } 
         else {         
               document.write("<!--If desired, replace everything between these quotes with a default in case there is no data in the query string.-->");          
          }     
  }   
} 
}
(); </script>
</head>
<body>
<!-- Offer Conversion: Safe Binary Trades -->
<script type="text/javascript">formData.display("email")</script>
<img src="http://mountainfallsmedia.go2cloud.org/SL22?adv_sub="email"    width="1" height="1" />
<!-- // End Offer Conversion -->
</body></HTML>

如果你看最后一行代码,你可以看到formData.display("email"),它用来显示电子邮件,它工作正常,但在的情况下不工作

<img src="http://mountainfallsmedia.go2cloud.org/SL22?adv_sub="email"    width="1" height="1" />

我尝试传递formData.display("email")而不是email,但它仍然返回空白。

我不确定你的问题到底是什么,也不确定你想做什么,但你可能想更换

src="http://mountainfallsmedia.go2cloud.org/SL22?adv_sub="email"

带有

src='http://mountainfallsmedia.go2cloud.org/SL22?adv_sub="email"'

(注意封装url的单引号。)