Results 1 to 4 of 4

Thread: mouseover expanding and collapsing ad

  1. #1
    Join Date
    Nov 2006
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default mouseover expanding and collapsing ad

    Hello

    I have seen on some websites a normal 468x60 banner on the top of the page and when i get my mouse pointer on it the ad expands down it goes from 468x60 to something like 468x200, how does this work ?

    can any1 help me ?

  2. #2
    Join Date
    Sep 2005
    Location
    India
    Posts
    1,627
    Thanks
    6
    Thanked 107 Times in 107 Posts

    Default

    This can be done using Image rollovers either using JavaScript or using CSS.

    JavaScript Method

    Code:
    <html>
    <head>
    <title>JavaScript Image Rollovers</title></head>
    <body>
    <a href="#" onMouseOver="document.image1.src='2.jpg'" onMouseOut="document.image1.src='1.gif'">
    <img src="1.gif" name="image1">
    </a>
    </body>
    </html>
    Here 1. gif is the small (normal ) image which is visible all the except user moves their mouse over it.

    2.jpg is the big image which will be rolled over the 1.gif image visible only when the user placed their mouse over 1.gif

  3. #3
    Join Date
    Dec 2005
    Location
    Moscow, Russia
    Posts
    39
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    And maybe, so :

    Code:
    <b>Expanded banner on mouseover.</b><br>
    <table align=center style="height:100px;width:400px;border:1px solid red" background=fo167-YM20030829-1.jpg 
      onmouseover=this.style.height="320px" onmouseout=this.style.height="100px"><tr><td>&nbsp;</td></tr></table>
    View example here: http://javascript.aho.ru/example/zzzz47.htm

  4. #4
    Join Date
    Nov 2006
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    thx alot this is exactly the one

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
  •