The advertiser has sent a banner for placing on the site SWF, in which the transition to the site is not registered by clicking on the banner. He tried to explain to him that in the source code he needed to register the link itself and the event by clicking on the banner, but he would not understand. Today to place a banner, but he still can’t do anything. Is it possible to somehow make it so that clicking on the banner went to his website?

    6 answers 6

    To try to connect js to the object, and in js to register, so that when clicking a user went to the site.

      put the wmode banner: 'opaque' and on top of it make a transparent block by setting the z-index. On the block put a link.

      easiest to install right after the banner

      <a href="http://site.com" class="link"></a> <style> .link { display:block; position:relative; z-index:1; width:240px; height:400px; margin-top:-400px; } </style> 

        Try wrapping this banner in <div> . Before </ head> write function

         <script> function advertising() { window.location = "http://mysite.com" } </script> 

        Well, in this <div> that wrapped paste onclick="advertising()"

        Full code:

         <div onclick="advertising()">banner.swf</div> 
        • one
          Explain the cause in more detail. Since 'I' understood the reason, this condition is sufficient. What kind of CMS do you work ??? - webkostya

        Try to put the banner / swf in another flash drive, and intercept click.

          Sothink SWF Decompiler (the second time I write about it).

          As a rule, banner developers still prescribe a parameter for the transition. But it is almost always empty. I use this program just to find out how to name the variable passed to the movie.

          Otherwise, as @AlekseyB advises.

          • How is it? - I_CaR
          1. Sothink SWF Decompiler - transfer the original swf to fla
          2. open fla in Adobe Flash CS5 for example
          3. actually make the required transition as standard: add a layer, put a transparent rectangle into it and block the entire banner area, make a rectangle with a button, hang up a code (for example, Action Script 2.0):
           on (release) { getURL("http://www.mysite.ru", _blank); } 
          1. post fla back to swf ready