Ezilon.com - Target Your Audience, be Seen in Your Region

Terminology for a "sliding" html component?

You are viewing this site as a guest. Join our community to get your questions answered and share knowledge. Active members may advertise and ask for a website critique.

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
DeveloperModeratorSponsor

He has: 2,666 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
DeveloperModeratorSponsor

He has: 2,666 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,301 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!