SitePoint Sponsor

User Tag List

Results 1 to 3 of 3

Thread: Expanding ads

Hybrid View

  1. #1
    SitePoint Addict
    Join Date
    May 2001
    Location
    USA
    Posts
    244
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Expanding ads

    I've been looking everywhere for the JavaScript used to make MSN's Expanding Ad. (An example can be seen at: http://advantage.msn.com/adproducts/enrichedads.asp ). I'm really reluctant at just copying the code from the source of this page, and was wondering if anyone has found the code available for this type of ad anywhere.

    Thanks!

  2. #2
    Mlle. Ledoyen silver trophy seanf's Avatar
    Join Date
    Jan 2001
    Location
    UK
    Posts
    7,168
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You should get a better answer in this forum

    Sean
    Harry Potter

    -- You lived inside my world so softly
    -- Protected only by the kindness of your nature

  3. #3
    Perl/Mason Guru Flawless_koder's Avatar
    Join Date
    Feb 2002
    Location
    Gatwick, UK
    Posts
    1,206
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    The answer to your problem is to use the object.clip method.

    (I don't know if this is how these particular adverts do it, but this is what i'd use)

    Clip isn't really a method, it's actually a css attribute (technically not a filter, but it acts like one)

    Code:
    <img src="bla" width="300" height="400"  
        style="clip:rect(0 300 200 0)"
        onmouseover="this.style.clip='rect(0 300 400 0)';"
        onmouseout ="this.style.clip='rect(0 300 200 0)';">
    Hope this helps

    Flawless
    ---=| If you're going to buy a pet - get a Shetland Giraffe |=---


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
  •