Welcome Guest. Sign in or Signup

1 Answers

2 frames, 2 urls

Asked by: Autumn 404 views User Questions

Client wants to have an ad run in 1 spot. Ad has 2 frames that are rotating. 1 has a url to get to one place and the 2nd has another url. Possible? How?

1 Answers



  1. renegade_mike on Sep 29, 2008

    What type of banner is it? I’m guessing it’s probably a Flash banner, in which case it is possible.

    If you take a look at the ActionScript code we recommend for making the clickable button in the Flash banner:

    http://www.advertpro.com/docs/1.0/html/manual/clicktrack.html#flash

    <br />   <span style="font-family: Courier New;"><span style="font-size: 2;">on (release) {<br /></span></span>     <span style="font-family: Courier New;"><span style="font-size: 2;">  if (_root.clickTAG.substr(0,5) == "http:") {<br /></span></span>       <span style="font-family: Courier New;"><span style="font-size: 2;">    getURL(_root.clickTAG, "_blank");<br /></span></span>     <span style="font-family: Courier New;"><span style="font-size: 2;">  }<br /></span></span>   <span style="font-family: Courier New;"><span style="font-size: 2;">}</span></span><br />

    You would have to modify the code slightly for a button in each frame:

    Button for Frame #1:

    <span style="font-family: Courier New;"><br />  on (release) {<br /></span>      <span style="font-family: Courier New;">  if (_root.<span style="color: Red;"><strong>clickTAG1</strong></span>.substr(0,5) == "http:") {<br /></span>        <span style="font-family: Courier New;">    getURL(_root.<span style="color: Red;"><strong>clickTAG1</strong></span>, "_blank");<br /></span>      <span style="font-family: Courier New;">  }<br /></span>    <span style="font-family: "">[FONT=Courier New]}</span><br />[/FONT]

    Button for Frame #2:

    <br />   <span style="font-family: Courier New;">on (release) {<br /></span>      <span style="font-family: Courier New;">  if (_root.<span style="color: Red;"><strong>clickTAG2</strong></span>.substr(0,5) == "http:") {<br /></span>        <span style="font-family: Courier New;">    getURL(_root.<span style="color: Red;"><strong>clickTAG2</strong></span>, "_blank");<br /></span>      <span style="font-family: Courier New;">  }<br /></span>    <span style="font-family: Courier New;">}</span><br />

    When you put the banner into AdvertPro, you are going to do that a bit differently. Do not put anything in the ClickTAG URL field. Instead, you will put something like this in the Flashvars box:

    clickTAG1=%%CLICKTAG%%http://www.gotohere.com/page1.php&clickTAG2=%%CLICKTAG%%http://www.gotohere.com/page2.php

    Which is basically just a query string that’s going to get passed to the Flash banner. All you need to do is change the two links to the advertisers pages. Don’t change the %%CLICKTAG%% variable at all as that will get replaced with a proper tracking link and the link after it will get used as the redirect.

    0 Votes Thumb up 0 Votes Thumb down 0 Votes