Results 1 to 5 of 5

Thread: Live Background Previewer Script - Other Versions?

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

    Question Live Background Previewer Script - Other Versions?

    The background previewer script is almost exactly what I'm looking for BUT usable in more browsers than just IE. Any chance of a script that works with NS 6+ and Firefox/Mozilla?

    Please?!!
    Last edited by janet321; 01-15-2005 at 12:18 AM.

  2. #2
    Join Date
    Aug 2004
    Posts
    10,143
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    Hi:
    That certainly looks possible, I'll make a note of this, and if an update is posted, update this thread.

  3. #3
    Join Date
    Jan 2005
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    I hope it can be done. Thank you for considering it!

  4. #4
    Join Date
    Jan 2005
    Posts
    40
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    You may pass image name directly, e.g.:

    Code:
    <html>
    <head>
    <script language="JavaScript1.2">
    <!--
    function tile(mysrc){
    	document.body.style.backgroundImage = 'url('+mysrc+')';
    }
    //-->
    </script>
    </head>
    <body>
    <img src="photo1.jpg" onClick="tile('photo1.jpg');">
    <img src="photo2.jpg" onClick="tile('photo2.jpg');">
    </body>
    </html>

  5. #5
    Join Date
    Jan 2005
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Cool

    Thanks, FPit! I'll give your script a try.

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
  •