Author Topic: A simple splash content warning  (Read 2686 times)

0 Members and 1 Guest are viewing this topic.

Offline Lucifurre

  • Full Member
  • ***
  • Male
  • Posts: 191
    • http://furthling.deviantart.com/
A simple splash content warning
« on: May 25, 2007, 03:22:28 am »
Here's a little gadget I built into a page the other day that I thought somebody might find useful. I don't currently have any pages up on any server I have to independently warn people off from mature content, but I was trying to decide how I would, and after deciding I really don't feel like going through the rigmarole of registering with the ICRA (not that that's a bad idea) and came up with this:


<script>
function pageToggle()
{
if (document.getElementById("eighteen").checked && document.getElementById("want").checked)
   {
   document.getElementById("adult").style.visibility="hidden";
   document.getElementById("bodee").style.visibility="visible";
   }
}
</SCRIPT>
</HEAD>
<BODY>
<DIV ID="adult" style="position:absolute;top:20px;left:20px;visibility:visible">

This Web Page contains mature content and is unsuitable for anyone under 18 years of age. It contains potentially offensive language, and makes reference to sexual activities, violence, and potentially harmful activities. No nudity or user generated content is present. <br/>
<br/>
Please check the following that apply:<br/>
<INPUT TYPE="checkbox" id="eighteen"> You are 18 years of age or older<br/>
<INPUT TYPE="checkbox" id="want"> You wish to view this mature content site<br/>
<INPUT TYPE="button" value="Proceed" onClick="pageToggle()">


</DIV>

<DIV ID="bodee" style="visibility:hidden">

<!----- ACTUAL WEBPAGE CONTENT GOES HERE-->

</DIV>
</BODY>
In that silence, there may be sleeping
Not only the jungle cry of dryopithecus
But also a supernormal melody
Not to be heard for, perhaps, another million years.

Offline Yip

  • Species: vulpes vulpes
  • *
  • Female
  • Posts: 4007
    • Furaffinity
A simple splash content warning
« Reply #1 on: May 25, 2007, 02:42:22 pm »
Thats nice, but it looks to me like it could be annoying. Since it only makes the body of the page hidden rather than linking to a different page, if this is a page set up as a hub, you'd have to deal with the check again every time you went back to it.

Still, this could probably be modified easily enough. Thanks for sharing.

Offline Lucifurre

  • Full Member
  • ***
  • Male
  • Posts: 191
    • http://furthling.deviantart.com/
A simple splash content warning
« Reply #2 on: May 25, 2007, 05:05:32 pm »
Yeah, I was shooting for just stand-alone, this one page is something I want to keep people out of unless they specifically agree every time. I wouldn't want it to be on a hub.
In that silence, there may be sleeping
Not only the jungle cry of dryopithecus
But also a supernormal melody
Not to be heard for, perhaps, another million years.