Terminology for a "sliding" html component?

They have: 43 posts

Joined: Sep 2005

Hey All,

What's it called when you have, say an image, that stays in the exact same place on your browser, no matter how far down you scroll, or how far to the right?

TIA!

oh yeah, and can it be done with css?

timjpriebe's picture

He has: 2,667 posts

Joined: Dec 2004

It's sometimes referred to as a static background image. I believe this CSS will do it:

background-attachment: fixed;'
or something like this

background: url(<a href="http://www.google.com/intl/en/images/logo.gif" class="bb-url">http://www.google.com/intl/en/images/logo.gif</a>) top left no-repeat fixed;'

They have: 43 posts

Joined: Sep 2005

thx for the speedy reply tim - but I guess I should have been more specific, although at first I wasn't sure how to describe this thing.

What I'm looking for is the same concept of what you described, but more flexible, and not just only for images. I meant, what is it when there's a 'spot' that stays in the same place, where I could put links, javascript, images, ads, or just about anything else?

Reason being, my site has a lot of text, and I want to make the navigation section easy to reach at all times. Instead of reading a whole page, and then having to scroll way back to the top for navigation links, the links and site announcement would always be in the browser's corner.

Do you know how to do that? TIA

timjpriebe's picture

He has: 2,667 posts

Joined: Dec 2004

Ah, okay. Take a look at this page:

http://www.sivamdesign.com/scripts/navigate.html

Depending on exactly which of these best fits your design/menu system, 17, 20, 25 or 26 may be a good starting place.

demonhale's picture

He has: 3,278 posts

Joined: May 2005

You can also go to dynamicdrive.com, they have abunch of sliding dhtml menu, floating box etc. Also visit javascriptkit...

They have: 43 posts

Joined: Sep 2005

great links guys, thanks. I didn't know javascript could do so many things. I'm gonna dive in and figure this stuff out!

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.