javascript for static background and a scrolling text

  • dhoyin
  • Graduate
  • Graduate
  • dhoyin
  • Posts: 126
  • Loc: west africa

Post 3+ Months Ago

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

Post 3+ Months Ago

  • graphixboy
  • Control + Z
  • Mastermind
  • User avatar
  • Posts: 1828
  • Loc: In the Great White North

Post 3+ Months Ago

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

Post Information

  • Total Posts in this topic: 2 posts
  • Users browsing this forum: No registered users and 83 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
 
cron
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.