how to disable all tags?

S

siara

hello,

I have a div which includes many others tags (a, input, any others
links).
How can I disable the whole div? I want to any of the included tags may
not be enable.
 
F

Free BSD

you can use <div style="Display: none;">

and for again visibility
<div style="Display:block">


and in Javascript

document.getElementById("YourDivID").style.display = "none";
 
S

siara

Free BSD napisal(a):
you can use <div style="Display: none;">

and for again visibility
<div style="Display:block">


and in Javascript

document.getElementById("YourDivID").style.display = "none";

yes, of course, but I want: giv is visible and every click on it has no
effect (and maybe visibility of the div is more gray)
 
F

Free BSD

so dude ... cant understand what you want to do here ????

if you want to handle the click event on the div use onclick method

regards
Free BSD
 
S

siara

Free BSD napisal(a):
so dude ... cant understand what you want to do here ????

if you want to handle the click event on the div use onclick method


ok, thanks

Maybe again:
Sometimes in google, there is appear pop up window, and then, you can
click only on that window until you click e.g. 'Yes' or 'No'.
I want to do the same.
 
M

mertas

siara said:
Maybe again:
Sometimes in google, there is appear pop up window, and then, you can
click only on that window until you click e.g. 'Yes' or 'No'.
I want to do the same.

Make a div with this style:
position:absolute;
z-index:100;
width:100%;
height:100%;
filter:alpha(opacity=60);
-moz-opacity: 0.6;
opacity: 0.6;
background-color:#000000;

make it visible as Free BSD explained.
Don't forget to make z-index of your pop up greater.
 
S

siara

Make a div with this style:
position:absolute;
z-index:100;
width:100%;
height:100%;
filter:alpha(opacity=60);
-moz-opacity: 0.6;
opacity: 0.6;
background-color:#000000;

make it visible as Free BSD explained.
Don't forget to make z-index of your pop up greater.

thanks a lot, I will test it right now:)

Artek
 
J

JohnnySpasm

thanks a lot, I will test it right now:)

Artek

If you want to disable form objects like what you saw in Google, then
add a 'disabled' attribute to the objects with a value of 'disabled'.
It should work for everything.

JohnnySpasm
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,159
Messages
2,570,879
Members
47,414
Latest member
GayleWedel

Latest Threads

Top