Define target url in flash banner via parameter


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

Possible parrameters: clickTAG, clickTag, clickthru
if is not defined url use default url "http://www.your-site.com"

http://www.link-to-banner.com/banner.swf?clickTAG=http://www.your-site.com


Copy this code and paste it in your HTML
  1. on (release) {
  2. if (typeof _root.click != "undefined") {
  3. getURL(_root.click, "_blank");
  4. } else if (typeof _root.clickTAG != "undefined") {
  5. getURL(_root.clickTAG, "_blank");
  6. } else if (typeof _root.clickTag != "undefined") {
  7. getURL(_root.clickTag, "_blank");
  8. } else if (typeof _root.clickthru != "undefined") {
  9. getURL(_root.clickthru, "_blank");
  10. } else {
  11. getURL("http://www.your-site.com",_blank);
  12. }
  13. }

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.