Jump to content


 


Register a free account to unlock additional features at BleepingComputer.com
Welcome to BleepingComputer, a free community where people like yourself come together to discuss and learn how to use their computers. Using the site is easy and fun. As a guest, you can browse and view the various discussions in the forums, but can not create a new topic or reply to an existing one unless you are logged in. Other benefits of registering an account are subscribing to topics and forums, creating a blog, and having no ads shown anywhere on the site.


Click here to Register a free account now! or read our Welcome Guide to learn how to use this site.

Photo

Scrolling Background Picture


  • Please log in to reply
2 replies to this topic

#1 KamakaZ

KamakaZ

  • Members
  • 739 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:Victoria
  • Local time:08:06 PM

Posted 29 January 2009 - 11:37 PM

Hey, i've seen this done before, but can't remember where.

I have a picture, background.jpg, and i want the width and height to be 100% and as the page scrolls down, the image appears to stay still and the text scrolls over it.

I'm guessing it is done in javascript? Any idea's?


EDIT: Kinda like this one here, but hopefully it would work with all browsers... Having it done with CSS would be nice to...

Edited by KamakaZ, 29 January 2009 - 11:41 PM.

There's no place like 127.0.0.1
There are 10 types of people in the world, those that can read binary, and those who can't.


BC AdBot (Login to Remove)

 


#2 InterestinglyAverage

InterestinglyAverage

  • Members
  • 111 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:United States
  • Local time:05:06 AM

Posted 30 January 2009 - 10:18 AM

This should do it, for most browsers.

body { color: black; background: white url(foo.gif) fixed; }

The only way to learn anything is to question everything.

#3 KamakaZ

KamakaZ
  • Topic Starter

  • Members
  • 739 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:Victoria
  • Local time:08:06 PM

Posted 01 February 2009 - 11:37 PM

what size should the picture be?

There's no place like 127.0.0.1
There are 10 types of people in the world, those that can read binary, and those who can't.





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users