YoungGold Posted March 6, 2008 Share Posted March 6, 2008 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. Quote Link to comment Share on other sites More sharing options...
Floydian Posted March 6, 2008 Share Posted March 6, 2008 Re: hole page opacity. you'll probably want to go with "onmouseover" HTML DOM events to trigger javascript code that can swap out your bg's/images I am not fond of writing javascript, so I'm not writting any for free. soz Quote Link to comment Share on other sites More sharing options...
oxidati0n Posted March 6, 2008 Share Posted March 6, 2008 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. Quote Link to comment Share on other sites More sharing options...
YoungGold Posted March 7, 2008 Author Share Posted March 7, 2008 Re: hole page opacity. Hmm i tried your script oxi.. i had installed it on the file but on mouseover and mouse out i got nothing. Have you any idea why? Quote Link to comment Share on other sites More sharing options...
Floydian Posted March 7, 2008 Share Posted March 7, 2008 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. Quote Link to comment Share on other sites More sharing options...
Analog Posted March 7, 2008 Share Posted March 7, 2008 Re: hole page opacity. Using JS could be a problem though, as some people have it disabled in their browser options Quote Link to comment Share on other sites More sharing options...
Floydian Posted March 7, 2008 Share Posted March 7, 2008 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. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.