Click to See Complete Forum and Search --> : Scroll


cloud
03-31-2003, 02:27 PM
Is it possible to stop people from scrolling until they have clock a certain link on your page?

Using a combination of no click and something else? You see, we have a series of questions, and dont want them to be seen until one has been clicked (they are all on one page).


Any help appreciated, thanks!

pyro
03-31-2003, 02:33 PM
Why not just hide the questions until they have answered the first ones? This link may help you out: http://www.infinitypages.com/research/clientsidedivinclude.htm That can be easily modified to work for you...

cloud
03-31-2003, 02:46 PM
Thanks very much, sorry to ask *feels stupid* but which bit of it should i add to my code?

eg

<a name="whatever">Question goes here></a><br />
<a href="#toanotherquestion">yes</a> :: <a href="#toanotherquestion1">no</a>

so once they have answered that, another appears?
(ps, i think this is in the wrong forum, im not neccisarily looking for javascript....)

pyro
03-31-2003, 03:18 PM
Here, this should be easier for you to understand:

<html>
<head>
<script language="javascript" type="text/javascript">

function next()
{
document.getElementById("myspan").style.display = "block";
}

</script>
<body>
<form name="myform">
One <input type="text" name="text1">
<br>
<a href="#" onClick="next(); return false;">Next</a>
<br>
<span id="myspan" style="display:none;">Two <input type="text" name="text2"></span>
</form>
</body>
</html>

Then, just add more in using the same foramt.

Cheers!