Jump to content

Search the Community

Showing results for tags 'clickcount'.



More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • Using and Managing Revive Adserver
    • Documentation
    • Using Revive Adserver
    • Managing Revive Adserver
    • Bugs
  • Advanced Topics
    • Performance, Scalability, and Reliability
    • For Developers
  • Revive Adserver Community
    • Revive Adserver Project News and Announcements
    • Feature Requests
    • Plugins
    • Requests for Consulting
    • Off Topic

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Website URL

Found 1 result

  1. Hi, Here is some javascript to easy have click count with swiffy ads inside an iframe. In Revive adserver : create HTML Generic Banner, replace [URL_OF_YOUR_HTML_SWIFFY_FILE] with the url of your swiffy html file. We give clickurl with magicmacro <iframe src="[URL_OF_YOUR_HTML_SWIFFY_FILE]?clickurl={clickurl}" width="100%" height="90px" frambedorder="0"></iframe> Edit your swiffy html file, go down and replace last <script> block <script> var stage = new swiffy.Stage(document.getElementById('swiffycontainer'), swiffyobject, {}); stage.start(); </script>With <script> // !!!!!!! Ads destination link !!!!!! var lienClient = ''; var clickurl = /clickurl=([^&]+)/.exec(document.location.href)[1]; var swiffycontainer = document.getElementById('swiffycontainer'); if (clickurl) { var parent = swiffycontainer.parentNode; var wrapper = document.createElement('a'); wrapper.setAttribute("href", clickurl + lienClient); wrapper.setAttribute("target", "_blank"); // set the wrapper as child (instead of the element) parent.replaceChild(wrapper, swiffycontainer); // set element as child of wrapper wrapper.appendChild(swiffycontainer); } var stage = new swiffy.Stage(swiffycontainer, swiffyobject, {}); stage.start(); </script> Thanks to http://forum.revive-adserver.com/topic/3194-generic-html5-banner-clicks-tracking/ and http://stackoverflow.com/questions/6938248/insert-a-div-element-as-parent
×