Making an affiliate page with banners, I need help...

by Dayne Dylan Banned
2 replies
Hey Warriors, I'm creating an affiliate page where affiliates can download static and animated banners. What I'd like to do is have those cool boxes with code beneath the banners where they can simply click once to copy.

Do you know what I mean?

Then all they have to do is input their affiliate link in the URL of the code.

Does anyone know how to set this up on an HTML site, what the code would be for a swipe code box like this?

Thanks!
#affiliate #banners #making #page
  • {{ DiscussionBoard.errors[7806437].message }}
    • Profile picture of the author Brandon Tanner
      If you're trying to figure out how to grab their affiliate ID and then automatically have it displayed in all promo material on the page, that can easily be done with a little bit of Javascript.

      First, set up the form that grabs their affiliate ID...

      Code:
      <form name="afflink">
      <label for="afflink">Your Affiliate ID</label>
      <input type="text" name="link" value="" class="text" />
      <input type="button" value="Go!" onClick="self.location.reload()">
      </form>
      Then for each instance where you want to display their affiliate ID on the page, do this...

      Code:
      <script type="text/javascript">document.write(window.document.afflink.link.value); </script>
      Signature

      {{ DiscussionBoard.errors[7806555].message }}

Trending Topics