Results 1 to 2 of 2

Thread: Ads And Javascript Help

  1. #1
    Join Date
    Jan 2011

    Question Ads And Javascript Help

    Don't know much about Javascript. this is what I want to do but don't know the code for it, I've seen one or two other sites do this.

    I have some ads

    When the user clicks onto the link I provide to watch a video clip I want a box to come up onto the same window that makes the user have to click a ad link before they can watch the video clip.

    *User clicks link

    *Message appears telling user to click one of the links in the box

    *If user clicks ad link
    -box closes.
    -ad opens a new separate window.
    -video begins to play when user clicks play.

    Thanks if you can help

  2. #2
    Join Date
    Sep 2009
    what you are asking is doable, but i have been coding JS for 5 years now and to implement that properly is a few days work.

    for someone just starting JS that may be a little overwhelming.

    from the sounds of it, you want an overlay to come up when the user clicks on the video link, in that overlay will be a few links to ads, if one of those is clicked you want the ad to open in a new window and you overlay to load the video awaiting for the user to click play

    again this may be a little much depending on your skill:
    1. jQuery overlay plugin = http://flowplayer.org/tools/scrollable/index.html
    2. read up on popup windows (most browsers have popup blockers, so you have to open new windows in a certain way)
    3. depending on your ad source you could have problems loading in an overlay, usually ad code is HORRIFIC! so its best to toss it into an iframe, but if you have expendables that causes problems.
    4. good luck!


Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center