SitePoint Sponsor

User Tag List

Results 1 to 9 of 9
  1. #1
    SitePoint Zealot Gharibe's Avatar
    Join Date
    Sep 2007
    Location
    NY | US
    Posts
    138
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Need Script [Adult content warning]

    i need an script just like this
    <snip>
    that come right when body loads and make Page BG Dark and warn the visitor for adult content just like this > <snip>

    thanks i really need it
    Last edited by Jelena; Dec 7, 2007 at 02:28. Reason: it's strictly forbidden to post links to adult content!!!

  2. #2
    Unobtrusively zen silver trophybronze trophy
    paul_wilkins's Avatar
    Join Date
    Jan 2007
    Location
    Christchurch, New Zealand
    Posts
    14,729
    Mentioned
    104 Post(s)
    Tagged
    4 Thread(s)
    Well then (and I know I'l get in trouble for this) copy it from their site. It's javascript afterall, and very difficult to hide.

  3. #3
    Programming Since 1978 silver trophybronze trophy felgall's Avatar
    Join Date
    Sep 2005
    Location
    Sydney, NSW, Australia
    Posts
    16,875
    Mentioned
    25 Post(s)
    Tagged
    1 Thread(s)
    There are plenty of sites that make JavaScript available for you to copy for use on your own site without your having to steal it. If you type the word "javascript" into a search engine the top three or four results will be repositories of thousands of free scripts that you are allowed to copy (as long as you keep their copyright notice etc). If you can't find what you want there then there are dozens of smaller sites with more scripts over the next few pages of the search results.
    Stephen J Chapman

    javascriptexample.net, Book Reviews, follow me on Twitter
    HTML Help, CSS Help, JavaScript Help, PHP/mySQL Help, blog
    <input name="html5" type="text" required pattern="^$">

  4. #4
    SitePoint Zealot Gharibe's Avatar
    Join Date
    Sep 2007
    Location
    NY | US
    Posts
    138
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    thanks but non of your post helped me
    how i can copy it ?
    i just want it loaded once (in the next visits visitor will not see the warning)

  5. #5
    Unobtrusively zen silver trophybronze trophy
    paul_wilkins's Avatar
    Join Date
    Jan 2007
    Location
    Christchurch, New Zealand
    Posts
    14,729
    Mentioned
    104 Post(s)
    Tagged
    4 Thread(s)
    Use a cookie. Check to see if a cookie variable called "disclaimer" is true. If it's not true then show the message. When they agree set the cookie variable to true.

  6. #6
    SitePoint Member
    Join Date
    Dec 2007
    Posts
    3
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I have something like that i just search for bad keywords and i'm accepting or not those websites / pages.

  7. #7
    SitePoint Zealot Gharibe's Avatar
    Join Date
    Sep 2007
    Location
    NY | US
    Posts
    138
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks , does anyone can provide me with a script like this?
    i searched many time in google but i couldn't find any

  8. #8
    Programming Since 1978 silver trophybronze trophy felgall's Avatar
    Join Date
    Sep 2005
    Location
    Sydney, NSW, Australia
    Posts
    16,875
    Mentioned
    25 Post(s)
    Tagged
    1 Thread(s)
    Stephen J Chapman

    javascriptexample.net, Book Reviews, follow me on Twitter
    HTML Help, CSS Help, JavaScript Help, PHP/mySQL Help, blog
    <input name="html5" type="text" required pattern="^$">

  9. #9
    SitePoint Zealot Gharibe's Avatar
    Join Date
    Sep 2007
    Location
    NY | US
    Posts
    138
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    you wrote it right now?
    thanks
    but i need 2 buttons there
    Enter - Leave (javascript.close)
    i don't remember exactly


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •