Web Hosting Talk







View Full Version : JavaScript


JustinSmall
03-16-2006, 02:41 AM
I have a dropdown menu?

Ok, I want it to be transparent when it drops down.

Like a small offshade of white thats transparent, when you scroll over it I want it to be a darker shade of white (more towards gray) but still transparent.

I'll be doing this in java, I know I can do it in flash, but I don't want to do in flash, neother ways guys?

:peace:

anjanesh
03-17-2006, 12:44 PM
You mean...when pulled down, you want the text/images behind the scroll box displayed to some extent through the box ?

NorthWest
03-17-2006, 12:49 PM
I think you are trying to work with adjusting the opacity of an object. Here is a link that will explain how to do it in css and in javascript.

http://www.quirksmode.org/css/opacity.html

anjanesh
03-17-2006, 01:10 PM
How come the text Test cannot be seen behind the scroll box (after pulled down) ?

<html>

<head>
<title></title>
</head>

<body>

<select name="time" id="time" style="opacity: .15;">
<option style="opacity: .15;">Select One</option>
<option style="opacity: .15;">Option 1</option>
<option style="opacity: .15;">Option 2</option>
<option style="opacity: .15;">Option 3</option>
</select>
<br>
Test

</body>
</html>

JustinSmall
03-17-2006, 01:48 PM
I tried it aswell, the menu drops down over the header, yet I can't see theimage behind it.

NorthWest
03-17-2006, 02:12 PM
I don’t think you are able to adjust the transparency of a form select.
You are going to create this menu with images or css boxes.


EDIT -
Look at this for an example
http://www.obout.com/em/ex_transparent.aspx