Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.javascript > #16791
| Date | 2012-10-22 15:39 +0200 |
|---|---|
| From | SAM <stephanemoriaux.NoAdmin@wanadoo.fr.invalid> |
| Newsgroups | comp.lang.javascript |
| Subject | Re: showing & hiding Divs |
| References | <c9f01909-ee2f-4a40-9393-9876790b4129@googlegroups.com> |
| Message-ID | <50854c8a$0$23450$ba4acef3@reader.news.orange.fr> (permalink) |
| Organization | les newsgroups par Orange |
Le 22/10/12 09:19, jayachandran.kandasamy@gmail.com a écrit :
>
> I have two divs on the parent page (I mean the divs placed
> immediately after the first body tag) displayed none by default
<style type="text/css">
.hid { position: absolute; width: 100%; height: 100%;
display: none; top: 0; left: 0;
background:#000; opacity: 0.6; filter: alpha(opacity=60) }
body { text-align: center }
h1 { margin-top: 40% }
</style>
<script type="text/javascript">
function toggle(id){
id = document.getElementById(id).style;
id.display = id.display==''? 'block' : '';
}
</script>
<body>
<h1>opacifiers</h1>
<div id="one" class="hid"></div>
<div id="two" class="hid" style="background:red"></div>
<p><a href="#"
onclick="toggle('one');
setTimeout('toggle(\'one\')',3000);
return false;">test one</a>
<p><a href="#"
onclick="toggle('two');
setTimeout('toggle(\'two\')',3000);
return false;">test two</a>
> But some how this implementation is
> not at all working as expected across the iframes.
it may be, yeap
iframe = evil
--
Stéphane Moriaux avec/with iMac-intel
Back to comp.lang.javascript | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
showing & hiding Divs jayachandran.kandasamy@gmail.com - 2012-10-22 00:19 -0700
Re: showing & hiding Divs SAM <stephanemoriaux.NoAdmin@wanadoo.fr.invalid> - 2012-10-22 15:39 +0200
Re: showing & hiding Divs Hans-Georg Michna <hans-georgNoEmailPlease@michna.com> - 2012-10-22 16:16 +0200
Re: showing & hiding Divs SAM <stephanemoriaux.NoAdmin@wanadoo.fr.invalid> - 2012-10-22 16:23 +0200
Re: showing & hiding Divs SAM <stephanemoriaux.NoAdmin@wanadoo.fr.invalid> - 2012-10-22 16:26 +0200
Re: showing & hiding Divs Danny <dann90038@gmail.com> - 2012-10-22 14:34 -0700
csiph-web