Results 1 to 2 of 2

Thread: how to change an iframe with button rollover

  1. #1
    Join Date
    Sep 2010
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default how to change an iframe with button rollover

    Is it possible to change an iframes content by rolling over a button (not clicking?) I don't know how to write the JS for this.

    thank you!!

  2. #2
    Join Date
    Sep 2007
    Location
    The Netherlands
    Posts
    1,832
    Thanks
    49
    Thanked 244 Times in 237 Posts
    Blog Entries
    56

    Default

    Code:
    <iframe name="my_iframe" src="http://www.google.com"></iframe>
    <br>
    <button onmouseover="window.frames.my_iframe.window.location.replace('http://www.dynamicdrive.com')">dynamicdrive</button>
    <button onmouseover="window.frames.my_iframe.window.location.replace('http://www.google.com')">google</button>
    Arie Molendijk.

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
  •