1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Changing the value of overflow using JavaScript

Discussion in 'JavaScript' started by cre8ive, Dec 25, 2007.

  1. #1
    I want to change the value of overflow using JavaScript on 'mouseover' event. How do I do this ...? I looked around to see if there is a tutorial on this, but I couldn't find. Also ... can I do this for div? Can I do this for ... img ( <img /> )?
     
    cre8ive, Dec 25, 2007 IP
  2. hogan_h

    hogan_h Peon

    Messages:
    199
    Likes Received:
    30
    Best Answers:
    0
    Trophy Points:
    0
    #2
    You should be able to change overflow for an element by using its style.overflow property: object.style.overflow='value';
    Example:
    <div onmouseover="this.style.overflow='hidden';">test</div>.
    It should work for other elements too.
     
    hogan_h, Dec 25, 2007 IP