Jump to content

Help Popup and Fade Background


Riparian

Recommended Posts

Hi

 

Can someone point me in the direction of a script for dummies where I can put a form on the screen and fade out the background

 

I have hunted the net and tried dozens of scripts but can not get the gist of them. (Javascript not my strong suit)

 

Cheers and Thanks

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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.