Jump to content
MakeWebGames

hole page opacity.


YoungGold

Recommended Posts

hi...i am creating a login page for a client and recntly told me he wanted a specific background but i have bgcolours and bg images in the table and was wondering if someone new of a whole page opacity for the login page so people could see a light version of the background aswell as the webpage and once hover over the page returns to normal colour so they can see what there doing....does anyone know of a place to get this or has the time to create something like this?..

because im not entirely sure on how to do it..

Help will be greatly apreciated. thankyou very much.

Link to comment
Share on other sites

Re: hole page opacity.

 

<html>
<head>
<title>Title Name</title>
</head>
<script type="text/javascript">
function setItem(this,opacityShow)
{
if(opacityShow < 0 || opacityShow > 1)
{
opacityShow = 1;
}
  this.style.opacity = opacityShow;
}
</script>
<body onLoad="setIem(this,document.thisx.name.value);">
<form name="thisx">
<input type="hidden" name="name" value="1">
<!--
Opacity JavaScript by Oxi

1 = Will show full item
0.9
0.8
0.7
0.6
0.5
0.4
0.3
0.2
0.1
0 = Will not show item.

Replace value="1" and the 1 with whatever you want subject to the instructions shown above.
-->
</form>
Content would possibly be displayed here.
</body>
</html>

 

Here you go. I hope it helps.

Link to comment
Share on other sites

Re: hole page opacity.

Just a theory, but when doing onmouseover, you can use "this.value" or some variation of the "this" object.

So, I'm thinking naming a variable "this" in the argument of the javascript function is probably not the best way to do.

Try changing every instance of "this" to "this1" in the function.

Link to comment
Share on other sites

Re: hole page opacity.

That's equivalent to saying: Having text on your site is bad because a lot of people are illiterate.

It's their fault. They need to enable it.

It's akin to refusing to use electricity (aka Quakers) because it's somehow bad. lol

Get with the program folks, and live a little.

Link to comment
Share on other sites

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.   Paste as plain text instead

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