Jump to content

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

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.