Sunday, May 29, 2011

Create a DHTML Ad Box using CSS, JavaScript, and HTML



SEE THE LIVE DEMO

This tutorial was derived from dynamicdrive.com and bloggerized by blogspotvision.com. This DHTML ad script displays an "inexcusable" box in the middle of the page, broadcasting ads of your choice inside. The box automatically disappears after x seconds, with its display frequency configurable (ie. show ad box only 1 out of 5 times the page is loaded.) This is one method of serving ads that may just be effective, since it contains qualities of a TV/radio commercial.



Steps for this tutorial:

1. Log into your Blogger dashboard and navigate to Design > Edit HTML.

2. Insert the following CSS code into your head section.



3. Next, add a new HTML/JavaScript gadget under Page Elements and add the following HTML code.



Note: You can style your adbox if you're familiar with CSS.

1 comment:

  1. I've used this tutorial in my blog and credited you. Thanks for the tut. Check the post here : BlogDeamon

    ReplyDelete