Jump to content

Help Popup and Fade Background


Riparian

Recommended Posts

So...just to get this straight...you want a form on the screen (when the page loads, or will it come in later?), and the background to fade in?

 

Hmm...well, I'm very tired right now, but here's something I pulled out of my collection of scripts I've written. :P I'll try and write something better tomorrow.

 

<script type="text/javascript">
function fadetext(item_faded)
{
	hex += 11; //Makes color lighter and lighter
	document.getElementById(item_faded).style.background = "rgb(" + hex + "," + hex + "," + hex + ")"; //Sets color
	setTimeout("fadetext()", 40); //Re-runs function every 40 milliseconds
}
</script>

 

That will fade any element you want, probably not what you're looking for, but maybe it'll help. :D

Thank  you heaps for your effort.

 

As I mentioned... I am not too bright with javascript but generally can work it out from examples of code.

 

What I was hoping for was to load a popup on the screen which contained a form. Everything behind the popup fades to grey.

 

It seems to be very popular on the net and there are a number of sites with partial scripts but I cant get them together.

 

Your work may not be wasted.. perhaps I or someone else on the forum has a use for it :)

 

Cheers and thanks again

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.