SearchSearch   

how to disable all tags?

 
   Webmaster Forums (Home) -> Javascript RSS
Next:  onsubmit makes form.method lowercase  
Author Message
siara

External


Since: Jun 29, 2006
Posts: 6



(Msg. 1) Posted: Thu Jul 06, 2006 4:51 am
Post subject: how to disable all tags?
Archived from groups: comp>lang>javascript (more info?)

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.

--
regards and thanks for help, sorry for my english
Back to top
Free BSD

External


Since: Jul 06, 2006
Posts: 4



(Msg. 2) Posted: Thu Jul 06, 2006 6:17 am
Post subject: Re: how to disable all tags?
Archived from groups: per prev. post (more info?)

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

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


and in Javascript

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


siara wrote:
> 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.
>
> --
> regards and thanks for help, sorry for my english
Back to top
siara

External


Since: Jun 29, 2006
Posts: 6



(Msg. 3) Posted: Thu Jul 06, 2006 6:28 am
Post subject: Re: how to disable all tags?
Archived from groups: per prev. post (more info?)

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)

--
regards
Artek
Back to top
Free BSD

External


Since: Jul 06, 2006
Posts: 4



(Msg. 4) Posted: Thu Jul 06, 2006 6:32 am
Post subject: Re: how to disable all tags?
Archived from groups: per prev. post (more info?)

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
siara wrote:
> 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)
>
> --
> regards
> Artek
Back to top
siara

External


Since: Jun 29, 2006
Posts: 6



(Msg. 5) Posted: Thu Jul 06, 2006 6:43 am
Post subject: Re: how to disable all tags?
Archived from groups: per prev. post (more info?)

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.

--
regards
Artek
Back to top
mertas

External


Since: Jul 06, 2006
Posts: 1



(Msg. 6) Posted: Thu Jul 06, 2006 10:23 am
Post subject: Re: how to disable all tags?
Archived from groups: per prev. post (more info?)

siara wrote:

> 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.
Back to top
siara

External


Since: Jun 29, 2006
Posts: 6



(Msg. 7) Posted: Thu Jul 06, 2006 10:46 am
Post subject: Re: how to disable all tags?
Archived from groups: per prev. post (more info?)

mertas.RemoveThis@gmail.com wrote:
> siara wrote:
>
> > 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.

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

Artek
Back to top
JohnnySpasm

External


Since: Aug 17, 2007
Posts: 2



(Msg. 8) Posted: Fri Aug 17, 2007 11:02 am
Post subject: Re: how to disable all tags?
Archived from groups: per prev. post (more info?)

On 6 Jul 2006 10:46:46 -0700, "siara" <artur.siara.TakeThisOut@gmail.com> wrote:

>
>mertas@gmail.com wrote:
>> siara wrote:
>>
>> > 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.
>
>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
Back to top
Display posts from previous:   
       Webmaster Forums (Home) -> Javascript
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum