javascript - email is not displaying inside image -


hi have page after confirmation email displaying. want display email inside image link.

for have used code, email variable null here.

<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 between these quotes default in case there no data in 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> 

if @ last lines of code can see formdata.display("email"), uses display email, working fine, not working in case of

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

i have tried passing formdata.display("email") instead of email, still returns blank.

i'm not sure question is, or you're trying do, may want replace

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

with

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

(note single quotes encapsulating url.)


Comments

Popular posts from this blog

c++ - Creating new partition disk winapi -

Android Prevent Bluetooth Pairing Dialog -

VBA function to include CDATA -