Results 1 to 2 of 2

Thread: mouseover + dynamic change

  1. #1
    Join Date
    Jan 2008
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question mouseover + dynamic change

    Hi everyone,

    I could swear that a while back I was looking on DD, and found a script that not only allowed you to create rollover images--but upon rollover also activated a box of changing information off to the side.

    Am I crazy or has someone else come across this as well? Because, naturally, now I need it I can't find it.

    Thank you!
    Heather

  2. #2
    Join Date
    Mar 2007
    Location
    Tarboro, NC
    Posts
    290
    Thanks
    8
    Thanked 2 Times in 2 Posts

    Default

    Something like that wouldn't be to hard to make, image rollovers are pie.

    Code:
    onMouseOver="this.src='newimage.jpg';"
    onMouseOut="this.src='oldimage.jpg';"
    And you can do something similar to what you are talking about with the text.

    Code:
    onMouseOver="this.src='newimage.jpg';document.getElementById("div").style.display='inline';"
    onMouseOut="this.src='oldimage.jpg';document.getElementById("div").style.display='none';"
    The complete HTML:

    Code:
    <img src="none" alt="image" onMouseOver="this.src='newimage.jpg';document.getElementById("div").style.display='inline';"
    onMouseOut="this.src='oldimage.jpg';document.getElementById("div").style.display='none';">
    <div id="div" style="display: none;">
    info info info
    </div>
    They may have used better/more efficient coding, but that should get the job done. No I have never come across anything like that on DD. Let me know if this wasn't what you were talking about.

    Tim

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
  •