javascript enclosing html sets referer , ipAddress for the .swf


/ Published in: JavaScript
Save to your folder(s)

shows that 2 required args to the swf are being set in JS
'swflink' contains 'referer' , 'IpAddress' arg values so they will not be undefined


Copy this code and paste it in your HTML
  1. var tempsite = gup('src_url');
  2.  
  3. if(tempsite){
  4. var sitelink = tempsite;
  5. var ipUrl = "vortexme.com";
  6. }
  7. else {
  8. var sitelink=window.location.href;
  9. var ipUrl=sitelink.substring(7,sitelink.indexOf("/",7));
  10. }
  11.  
  12. var swflink="http://"+ipUrl+"/iJam/VTX000056/VTX000056.swf?referer="+sitelink+"&ver=2.0&IpAddress="+ipUrl;
  13. var so = new SWFObject(swflink, "mymovie", "200", "510", "8", "white");

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.