webdott
asked on
have div show on top of table with onclick + make table opacity 50%
i am trying to have a div show up in the top right corner of a table and make the table go opacity:50%
when you onclick text
i want to use css if possible with the following script for onclick.
this onclick will show and hide a table, but i would like the div to show up in the able and the
table and all it's contents to go opacity:50%
i hope i have not made it too confusing
thanks for all the help in advance
when you onclick text
i want to use css if possible with the following script for onclick.
this onclick will show and hide a table, but i would like the div to show up in the able and the
table and all it's contents to go opacity:50%
i hope i have not made it too confusing
thanks for all the help in advance
<html>
<head>
<script>
function show(){
tb.style.display="block"
}
function hide(){
tb.style.display="none"
}
</script>
</head>
<body>
<p><br>
</p>
<p>
<a href=javascript:show()>Show</a>
<a href=javascript:hide()>Hide</a> <br>
</p>
<table style="width: 600px" cellpadding="0" cellspacing="0" class="style1">
<tr>
<td id="tb">this is the table</td>
</tr>
</table>
</body>
</html>
onclick-div-ontop-table.jpg
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
both got me started on the right path.
thanks
thanks
You should be able to do something like this (not tested). It toggles the opacity and the wording on the text depending on the status.
Tom
Open in new window