Naylor Curtain Ad

Developed by Dave Blahut, April 2014

Objective

Develop an advertisement space that can expand and collapse upon user-interaction (click) in a specific space in the ad.

Goals

  • Develop an ad space that can collapse/expand
  • Be tablet friendly - no mouseover event
  • Keep the code customizable with changeable options

Solution

The curtain ad consists of two components.

  1. A JavaScript call that fetches/serves and handles the exanding/collapsing of the ad space.
  2. An HTML placeholder that contains the specifications and hosts the actual ad.
<script>document.write("<scr"+"ipt src=\""+window.location.protocol+"//www.naylornetwork.com/absolutebm/abm-curtain.asp\" type=\"text/javascript\"></scr"+"ipt>")</script>
<div class="nnCadWrapper" data-adwidth="760" data-adheightmin="60" data-adheightmax="300" data-expandarea="160" data-zone="NAY-DEMO-Curtain01" data-keywords="homepage"></div>