|
Post by Fredy on Oct 4, 2005 21:20:36 GMT
name: promping saybox desctiption: whewn you load the page it promps you if you want to view the saybox or not. if you type no, it will not show the saybox. if you type anything else, the saybox will be shown. editing: explained at bottom preview: www.freewebs.com/cheesexcrackers/test3.htmcode:editing:put your saybox code herewhat the alet says when the suer wants to view the sayboxthis is what the user has to type in in order to not view the saybox. i suggest you leave it the way it is.what the question says
|
|
|
Post by Dexx on Oct 5, 2005 20:38:32 GMT
If i enter No i still see the SayBox
|
|
|
Post by Fredy on Oct 6, 2005 1:01:51 GMT
try it without the capital
|
|
|
Post by LazyBoy on Oct 7, 2005 12:07:55 GMT
i entered "bite me" and still got to see the saybox.
|
|
|
Post by Fredy on Oct 7, 2005 19:34:34 GMT
did you read that part in the description
|
|
|
Post by Dexx on Oct 7, 2005 22:59:45 GMT
try it without the capital And no. doens't work either XP
|
|
|
Post by Fredy on Oct 7, 2005 23:51:55 GMT
how many friggin answers do you expect me to code in? lol
|
|
|
Post by Dexx on Oct 8, 2005 10:22:41 GMT
how many friggin answers do you expect me to code in? lol 1000 Nahh, use a regulare expression
|
|
|
Post by Fredy on Oct 8, 2005 13:07:08 GMT
regular expression? lol i'm not that good with javascript. i only half know what that is!! lol
|
|
|
Post by Dexx on Oct 8, 2005 17:15:38 GMT
<script> var question=prompt("do you want to view our saybox?",""); if(question.match(/(no|nej|nein|nah)/i)){ document.write('<style>#shoutbox {display: none;}</style>'); }else{ alert("ok!"); } </script> <div id="shoutbox"> saybox code here </div>
If the answer contains no, nej, nein or nah it wont display the SayBox
|
|
|
Post by Fredy on Oct 8, 2005 17:43:41 GMT
that would work 2... lol
|
|
|
Post by LazyBoy on Oct 10, 2005 10:22:55 GMT
would be easier with 2 boxes in my opinion, one for yes and one for no
|
|
|
Post by ataxia on Oct 11, 2005 19:31:08 GMT
<script> var question=prompt("Do you want to view our saybox?",""); if(question.match(/(yes|yeh|yeah|ya|yah|ok)/i)){ document.getElementById('shoutbox').style.display=""; }else{ alert("Fine!"); } </script> <div id="shoutbox" style="display: none"> saybox code here </div>
Wouldn't it be easier if you did it for yes then they can write anything they want.
|
|
|
Post by Fredy on Oct 11, 2005 19:49:06 GMT
it really doesn't matter, cause you can customize the code however you want
|
|