SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Guru rashidr's Avatar
    Join Date
    Jun 2004
    Posts
    643
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Show ad for few seconds and disappear

    How to show an ad for 8 secs (of 728x300 size) and then disapper 728x300 or shrink to 200x190 size

  2. #2
    I'll take mine raw silver trophy MikeFoster's Avatar
    Join Date
    Dec 2002
    Location
    Alabama, USA
    Posts
    2,560
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hi rashidr,

    Making it disappear after 8 secs is easy. Making it "shrink" is not quite as easy. A proper answer to both questions depends on what it is - img, div, etc. and your html structure.
    Code:
    function showAd()
    {
      document.getElementById('myAd').style.display = 'block';
      setTimeout("document.getElementById('myAd').style.display = 'none'", 8000);
    }

  3. #3
    SitePoint Guru rashidr's Avatar
    Join Date
    Jun 2004
    Posts
    643
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thnx,


Bookmarks

Posting Permissions

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