In comp.lang.javascript message <8282d067-ae06-4371-ae53-aeb17d248215@e5
3g2000hsa.googlegroups.com>, Wed, 2 Jul 2008 14:15:42, czechboy
<oldrich.svec@gmail.composted:
Quote:
>
>What I want to do is to load some page (like google.com) hide it and
>then display only one div.
If you really mean that, I see no good reason for loading the other
material.
If you want to have a number of divs, only one visible at a time but the
choice changing, then maybe, in pseudo-script :
<body>
<div ID=fred</div>
<div hidden>
<div ID=ATextA </div>
<div ID=BTextB </div>
<div ID=CTextC </div>
</div>
</body>
and use code to copy or move, each time, the div containing the required
text into and maybe out of div fred. Alternatively, the mobile material
could be literal JavaScript strings.
--
(c) John Stockton, nr London, UK. ?@merlyn.demon.co.uk Turnpike v6.05 MIME.
Web <URL:http://www.merlyn.demon.co.uk/- FAQish topics, acronyms, & links.
Proper <= 4-line sig. separator as above, a line exactly "-- " (SonOfRFC1036)
Do not Mail News to me. Before a reply, quote with ">" or "" (SonOfRFC1036)