Click here to Skip to main content
15,887,267 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello!I want to design a scrollbar in a web page to put notices or something. Also, the background picture is dynamic. What should I do? I need some tips. Thanks!
Posted
Comments
ZurdoDev 21-Oct-13 11:08am    
Is there a sight you know of that has what you want? If so, just look at the source.
Captain Price 21-Oct-13 12:06pm    
This is not a correct question. You need to provide more details to get an answer. You should describe your problem with more details.

The question is not clear at all, but probably I understood that you want to have some background which does not scroll when you scroll you page. The solution is to make a pretty special background image property for the elements html and body. It can look something like this:

CSS
html body {
    background: url("myBackgroundImage.png") fixed no-repeat center top; 
}


The problem of such design is that the image has fixed size, but the page is not, so you can "run-out" of the image size from sides or bottom (in this case). I would say, when you use such such non-scrolling non-repeating background image for a big image is not the best idea: you cannot guarantee that such image would fill the page. I'm using this design to "tag" the page with small copyright/logo image (or some other image like that) which stay at the same location of the page on top of content and is not scrolled out.

For other options, please see: http://www.w3schools.com/css/css_background.asp[^].

—SA
 
Share this answer
 
v2
Comments
vivid21 22-Oct-13 10:03am    
Thanks for your solution and reference! I'll give a clear question as much as I can next time.
Sergey Alexandrovich Kryukov 22-Oct-13 11:40am    
My pleasure, glad you find it useful.
—SA
If it is what I think you mean, then you should consider using Ajax.
here you can find preprogrammed toolkits.

Here and here you can find a tut to use it
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900