How to launch Fancybox on page load?

Discussion in 'Real Estate Classifieds Script' started by jeff.p, Dec 16, 2014.

  1. jeff.p

    jeff.p New Member

    Have tried quite a few variations, what would be the best way to show an iframe on page load with delay and cookie tracking?

    eg: http://jsfiddle.net/aVE9N/
  2. Vasily_B.

    Vasily_B. Project Manager

    Hi Jeff,

    Your solution seemed to work fine for me. In terms of subrion cms please use the following smarty construction:
    {ia_add_js}
    put your js here without <script>
    {/ia_add_js}

    It will put the code in the correct place, after all necessary libraries are loaded, including jquery, & fancybox.
  3. jeff.p

    jeff.p New Member

  4. Vasily_B.

    Vasily_B. Project Manager

    No, we don't have it included. Anyhow, we have own cookie management functions for JS.

    intelli.cookie.read()
    intelli.cookie.write()
    intelli.cookie.clear()

    You can find them in js/intelli/intelli.js file.
  5. jeff.p

    jeff.p New Member

    How would one go about including this in Fancybox?

    Should I open a ticket for custom work?

Share This Page