Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New Coder
    Join Date
    Dec 2004
    Location
    Crown Point, IN
    Posts
    67
    Thanks
    0
    Thanked 0 Times in 0 Posts

    frame background changing

    ok i have the basic two frame layout(one on the left is the menu, and one on the right is win-main)

    is there a way to change the background of the menu frame to be whatever the background of win-main is without knowing what the background of win-main is?

  • #2
    Supreme Master coder! _Aerospace_Eng_'s Avatar
    Join Date
    Dec 2004
    Location
    In a place far, far away...
    Posts
    19,291
    Thanks
    2
    Thanked 1,043 Times in 1,019 Posts
    well u could use
    Code:
    <script type="text/javascript">
    function changebg(image){
    document.body.background='yourbackground.gif';
    }
    </script>
    but i dunno if u could do it without actually knowing the background or if u meant it was going to be randomly chosen onload then draw what the randomly chosen background would be to the menu frame, im not sure how to do that
    Last edited by _Aerospace_Eng_; 02-01-2005 at 04:43 AM.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •