Fading Backgrounds

  • Thread starter Thread starter Alec
  • Start date Start date
A

Alec

Can anyone help?

Have recently seen a number of websites with a color fading background.
Is this an effect that I can create in frontpage, or is there standard
html code I can use for this.

Many thanks

Alec
 
Hi Alec,

It's usually done as a background graphic in a graphics program. The
background graphic should be as long as you think the highest browser
resolution will be for a fluid design or a little longer than your
table/cell where you are going to insert it as a background. The height of
about 3-5 pixels or less will work because it will tile the length of the
cell. Create your background graphic in the dimensions needed for your
layout, then simply apply a gradient fill to it in whatever colors you want.

HTH
 
Hi Alec,

Are you saying the background color is fading in whole or that it changes with length or width?
 
I have a very simple soluteion for your problem.

First, select
Code:
 on the bottom to view the code.

Put this into the head of your document:

<script language="javascript">

function changeColors() {

for (var x = 0;x <= 250;x++) {

document.bgColor = x

}

}

</script>

Now write this:

<body onload="changeColors()">

Put your body part of the document here.

</body>
 
Uhh - that doesn't give a fade, it gives a cycle of colors.

The easy way to do a fade is to tile a gradient image, and make the page
background color be the same as the end color of the gradient.

You can see this on the Macromedia site - http://www.macromedia.com

--
Murray
============

Mike said:
I have a very simple soluteion for your problem.

First, select
Code:
 on the bottom to view the code.

Put this into the head of your document:

<script language="javascript">

function changeColors() {

for (var x = 0;x <= 250;x++) {

document.bgColor = x

}

}

</script>

Now write this:

<body onload="changeColors()">

Put your body part of the document here.

</body>

[QUOTE="Alec"]
Can anyone help?

Have recently seen a number of websites with a color fading background.
Is this an effect that I can create in frontpage, or is there standard
html code I can use for this.

Many thanks

Alec
[/QUOTE][/QUOTE]
 
Back
Top