ft310 wrote on 29 jun 2008 in comp.lang.javascript
:
Quote:
Te whole point is to provide the User a disclaimer and it they except
to continue on with the original (?) format. |
['format'?]
Better do this with serverside scripting,
but if you do this clientside,
no need to call a seperate page.
==============================
<head>
<script type='text/javascript'>
function ok(d){
d.parentNode.style.display='none';
document.getElementById('m').style.display='block' ;
};
</script>
</head>
<body>
<div id='disclaimer'>
DISCLAIMER<br><br>
Blah<br><br>
<button onclick='ok(this)'>Click me if you agree</button>
</div>
<div id ='m' style='display:none;'>
Main page<br><br>
Main page<br><br>
Main page<br><br>
Main page<br><br>
Main page<br><br>
</div>
==============================
--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)