Results 1 to 7 of 7

Thread: Help with my background picture in webpage
      
   

  1. #1
    Lfernandez79@gmail.com's Avatar
    Lfernandez79@gmail.com is offline Private First Class
    Join Date
    Jun 2007
    Posts
    9

    Question Help with my background picture in webpage

    hi guys,
    I have a question, i have a picture as a background in my web page and of course infomation in my web page, I want to be able to freeze or whatever its call the background picture, so if I want to see more info and i need to scroll down my web page, I want to see the background be stable, not moving, only the info. Do you know How to do this? or Am I crazy and I'm not making myself clear enogh?

    thank you
    L e o n a r d o

  2. #2
    Join Date
    Feb 2006
    Location
    Earth
    Posts
    8,721

    Default Re: Help with my background picture in webpage

    Hi, try pasting the code below into the body of your page with your image URL. IE: replace this part: http://www.yoursite.com/yourimage.jpg

    Good luck.



    HTML Code:
    <script language="JavaScript1.2">
    if (document.all||document.getElementById)
    document.body.style.background="url('http://www.yoursite.com/yourimage.jpg') white center no-repeat fixed"
    
    </script>

  3. #3
    Lfernandez79@gmail.com's Avatar
    Lfernandez79@gmail.com is offline Private First Class
    Join Date
    Jun 2007
    Posts
    9

    Smile Re: Help with my background picture in webpage

    Hi,
    Thank you very much for the code, you know I haven't upload my webpage becouse its not ready yet, do you think I would have any problem pasting the code or should I wait until I upload it to the net.

    Quote Originally Posted by Collectors-info View Post
    Hi, try pasting the code below into the body of your page with your image URL. IE: replace this part: http://www.yoursite.com/yourimage.jpg

    Good luck.



    HTML Code:
    <script language="JavaScript1.2">
    if (document.all||document.getElementById)
    document.body.style.background="url('http://www.yoursite.com/yourimage.jpg') white center no-repeat fixed"
     
    </script>
    L e o n a r d o

  4. #4
    Join Date
    Feb 2006
    Location
    Earth
    Posts
    8,721

    Default Re: Help with my background picture in webpage

    Hi, i was playing with this earlier at the link below.
    http://www.collectors-info.com/testi...on-scroll.html
    If nothing else, it might be worth putting the image up to your server. You will then be able to see how it looks in preview mode as you are making up your pages.
    One thing I forgot! At the end of the script there is a </script> . Leave out the last chevron as it will show up in the head of your page. BV will compensate for this.
    Last part will look like </script

    Good luck.

  5. #5
    Lfernandez79@gmail.com's Avatar
    Lfernandez79@gmail.com is offline Private First Class
    Join Date
    Jun 2007
    Posts
    9

    Thumbs up Re: Help with my background picture in webpage

    Thank you very much for you help, I'll let you know how it looks when its done.
    L e o n a r d o

  6. #6
    navaldesign's Avatar
    navaldesign is offline General & Forum Moderator
    Join Date
    Oct 2005
    Location
    Italy
    Posts
    12,115

    Default Re: Help with my background picture in webpage

    If your image is bieg enough or you don't mind repetition, it might be acheived in a simple way. Copy this code in the inside body tag of your page html:
    bgproperties="fixed"

    However, this will not work in some browsers (IE and Opera are ok, FF is not)
    Navaldesign
    Logger Lite: Low Cost, Customizable, multifeatured Login script
    Instant Download Cart: a Powerfull, Customized, in site, DB driven, e-products Cart
    DBTechnosystems.com Forms, Databases, Shopping Carts, Instant Download Carts, Loggin Systems and more....
    Advanced BlueVoda Form Processor : No coding form processor! Just install and use! Now with built in CAPTCHA!


  7. #7
    Lfernandez79@gmail.com's Avatar
    Lfernandez79@gmail.com is offline Private First Class
    Join Date
    Jun 2007
    Posts
    9

    Question Re: Help with my background picture in webpage

    What you mean? Are trying to say that I should put "bgproperties="fixed"[/quote] into a html box and post it on my page?

    Quote Originally Posted by navaldesign View Post
    It might be acheived in a simple way. Copy this code in the inside body tag of your page html:

    bgproperties="fixed"
    L e o n a r d o

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49