Old 07-20-2005   #1 (permalink)
Invicible Snake
 
ParaSnake's Avatar
 
Join Date: Sep 2004
Location: Ho Chi Minh City,Vietnam
Posts: 668

Send a message via MSN to ParaSnake Send a message via Yahoo to ParaSnake
Question I need help on HTMl background.

Hey,i`ve noticed that some website are built like this :

1.The background is staytill when i scroll the scrollbar up or down,only the content of a site moving,hte background wont move.cool.

2.The background is fading,at the top,its dark and when scrolling down,it turns to light color.

Anyone know how to do this?
Thx for anyhelp
__________________
ParaSnake is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Old 07-20-2005   #2 (permalink)
Registered User
 
aldog's Avatar
 
Join Date: Jun 2005
Posts: 75

I'm assuming the fading thing you're referring to is like what the biorust tutorials page looks like...this, i have no clue how to do.

as for making a picture stay still.
if you use style tags...this is how you do it


background-image: url('http://www.30mb.com/x/aldog/images/bg2.gif');
background-repeat: look down for instructions;
background-position: center;}

repeat-y = it repeats itself up and down...
repeat-x = it repeats itself left to right...
no-repeat = it stays still
aldog is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Old 07-20-2005   #3 (permalink)
Local Biorust Beast
 
Order's Avatar
 
Join Date: Oct 2003
Location: San Diego, CA, USA
Posts: 2,253

Send a message via AIM to Order Send a message via MSN to Order Send a message via Yahoo to Order
to do the fading thing, create a background image that fades from one color to the next, remember the html color code for the color at the bottom.

style your body tag:

Code:
body {
  background: #COLOR url('images/fading-bg.gif') repeat-x left top;
}
As you can see, quite simple. Change #COLOR to that color code I told you to save.
__________________
Order is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Old 07-20-2005   #4 (permalink)
Registered User
 
aldog's Avatar
 
Join Date: Jun 2005
Posts: 75

I'm glad you asked this ParaSnake
and I'm glad you answered Order.
It's a neat effect.
aldog is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Old 07-21-2005   #5 (permalink)
Local Biorust Beast
 
Order's Avatar
 
Join Date: Oct 2003
Location: San Diego, CA, USA
Posts: 2,253

Send a message via AIM to Order Send a message via MSN to Order Send a message via Yahoo to Order
It is a neat effect, and also an easy one. The idea of using css in your files is cut down on loading time, use less images to achieve what you need..
__________________
Order is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Old 07-21-2005   #6 (permalink)
code anyone?
 
scrowler's Avatar
 
Join Date: Feb 2004
Location: New Zealand
Posts: 590

Send a message via MSN to scrowler Send a message via Skype™ to scrowler
and if you want it to stay there even when you scroll down, put this extra code into your body css definition too:

Code:
background-attachment: fixed;
this is a neat addition
__________________
BioRUST Tutorials - the birthplace
scrowler is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Old 07-21-2005   #7 (permalink)
Invicible Snake
 
ParaSnake's Avatar
 
Join Date: Sep 2004
Location: Ho Chi Minh City,Vietnam
Posts: 668

Send a message via MSN to ParaSnake Send a message via Yahoo to ParaSnake
I will have a try tonight,thx for all the helps
@aldog: If you glad,then plsu each of us some reputation points keke
__________________
ParaSnake is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Old 11-09-2005   #8 (permalink)
Registered User
 
Join Date: Nov 2005
Posts: 6

Quote:
Originally Posted by ParaSnake
Hey,i`ve noticed that some website are built like this :

1.The background is staytill when i scroll the scrollbar up or down,only the content of a site moving,hte background wont move.cool.

2.The background is fading,at the top,its dark and when scrolling down,it turns to light color.

Anyone know how to do this?
Thx for anyhelp
or you can try:

/*
Watermark Backgound Image Script- © Dynamic Drive (www.dynamicdrive.com)
For full source code, 100's more DHTML scripts, and TOS,
visit dynamicdrive.com
*/
if (document.all||document.getElementById)
document.body.style.background="url(insert your image name here) #EEEEEE center no-repeat fixed"


it's from dynamic html.
Paintmonkey is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Old 12-20-2005   #9 (permalink)
I like trees
 
j3ll3's Avatar
 
Join Date: Dec 2005
Location: Belgium
Posts: 12

Look here for the fixed background:
http://www.w3schools.com/css/css_background.asp

Look here if you want an image to stretch over the entire screen;
http://www.htmlite.com/faq022.php *there is a small nesting error in the example, the image tag isn't closed *

Good luck
j3ll3 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Old 12-21-2005   #10 (permalink)
Lazarus' Child
 
malboroman's Avatar
 
Join Date: Nov 2003
Location: The Netherlands
Posts: 603

Send a message via MSN to malboroman Send a message via Skype™ to malboroman
You could also ask m0g about this. The previous design of biorust included one of these gradient background if I remember correctly. It was the one with the green background, right m0g?)
__________________


"Only the dead have seen the end of war."

- Plato
malboroman is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Closed Thread

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Html Links Help! Stiker HTML / PHP / ASP / JS 4 11-08-2004 11:01 PM
extending background Rson HTML / PHP / ASP / JS 2 08-02-2004 11:48 PM
Forum Background Design Competition Man1c M0g Showrooms & Works In Progress 19 06-30-2004 09:58 PM
HTML Help.. Young Spartan HTML / PHP / ASP / JS 9 11-14-2003 12:23 AM


All times are GMT +1. The time now is 12:56 PM.
Content Relevant URLs by vBSEO 3.2.0

Design & Content © BioRUST 2008 :: PRIVACY STATEMENT :: LEGAL INFORMATION :: ADVERTISING MEDIA KIT