javascript for static background and a scrolling text

  • dhoyin
  • Graduate
  • Graduate
  • No Avatar
  • Joined: Aug 10, 2005
  • Posts: 126
  • Loc: west africa
  • Status: Offline

Post March 23rd, 2009, 9:28 am

i need a javascript which when the users scroll, the background is static while the page scrolls downwards.
  • Anonymous
  • Bot
  • No Avatar
  • Joined: 25 Feb 2008
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post March 23rd, 2009, 9:28 am

  • graphixboy
  • Control + Z
  • Mastermind
  • User avatar
  • Joined: Jul 11, 2005
  • Posts: 1828
  • Loc: In the Great White North
  • Status: Offline

Post March 23rd, 2009, 1:31 pm

its actually css...

Code: [ Select ]
body {
background: #ffffff url(yourImage.jpg) top left no-repeat fixed;
}
  1. body {
  2. background: #ffffff url(yourImage.jpg) top left no-repeat fixed;
  3. }
the "fixed" is what makes it stay in one place.

Example Here
If at first you don't succeed F1... If that doesn't work try Google!
//// Designer, Developer & Teacher - Interactive, Motion and 3D \\\\
Portfolio at WhenImNotSleeping.com

Post Information

  • Total Posts in this topic: 2 posts
  • Users browsing this forum: No registered users and 114 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 2011 Unmelted, LLC. Ozzu® is a registered trademark of Unmelted, LLC.