How to show a temporary progress page to an affiliate javascript

Hi
I have an affiliate JavaScript that when executed it goes directly to the partners site where it shows the results. I want to introduce an interim page with a delay that shows progress before it is loaded to the partners site just like comparison sites do. how can i achieve this with the script below? I have a copy of the script that is run:

<ins class="bookingaff" data-aid="1499999" data-target_aid="1327575757" data-prod="nsb" data-width="240" data-height="411" data-lang="en-US" data-dest_id="-391076" data-dest_type="city">
    <!-- Anything inside will go away once widget is loaded. -->
    <a href="//www.booking.com aid=1328878">Hotel Finder</a>
</ins>
<script type="text/javascript">
    (function(d, sc, u) {
      var s = d.createElement(sc), p = d.getElementsByTagName(sc)[0];
      s.type = 'text/javascript';
      s.async = true;
      s.src = u + '?v=' + (+new Date());
      p.parentNode.insertBefore(s,p);
      })(document, 'script', '//aff.bstatic.com/static/affiliate_base/js/flexiproduct.js');
</script>

Not sure why the code isnt added, so I am trying to add it again:

<html>
<ins class="bookingaff" data-aid="1498636" data-target_aid="1328878" data-prod="nsb" data-width="240" data-height="411" data-lang="en-US" data-dest_id="-391076" data-dest_type="city">
    <!-- Anything inside will go away once widget is loaded. -->
    <a href="//www.booking.com?aid=1328878">The Hotel Finder</a>
</ins>
<script type="text/javascript">
    (function(d, sc, u) {
      var s = d.createElement(sc), p = d.getElementsByTagName(sc)[0];
      s.type = 'text/javascript';
      s.async = true;
      s.src = u + '?v=' + (+new Date());
      p.parentNode.insertBefore(s,p);
      })(document, 'script', '//aff.bstatic.com/static/affiliate_base/js/flexiproduct.js');
</script>
</html>

You have to format the code by placing three backticks (`) on the line before the code, and three backticks on the line after the code. Or highlight your code in the editor and select the code formatting icon above the edit box. I formatted your code for you this time.

Ok thanks for that

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.