Any programmers here that can help me with a bit of code?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Darrell
    Confirmed User
    • Feb 2003
    • 803

    #1

    Any programmers here that can help me with a bit of code?

    Any programmers here that can show me what to add into this code to show the disclaimer only if the surfer comes from a specific country? Either using browser language or preferably maxmind's geoip country. I just can't get anything to work. Thanks



    function ScanCookie(variable)
    {
    cook=document.cookie;
    variable+="=";
    place=cook.indexOf(variable,0);
    if(place<=-1) return("0");
    else
    {
    end=cook.indexOf(";",place)
    if(end<=-1) return(unescape(cook.substring(place+variable.leng th,cook.length)));
    else return(unescape(cook.substring(place+variable.leng th,end)));
    }
    }

    function Entrer()
    {
    document.cookie="disclaimerok=oui;path=/;";
    if(document.getElementById) document.getElementById("disclaimer").style.displa y='none'
    top.location.href=location.href;
    }

    if(ScanCookie("disclaimerok")==0)
    {
    document.write("<div id=disclaimer><div id=disclaimer-fond></div><div id=disclaimer-conteneur>");
    document.write("<div id=disclaimer-cadre>");
    document.write("<b>ATTENTION: CONTENU STRICTEMENT RESERVE AUX ADULTES</b>");
    document.write("<br><br>Le contenu de ce site ne conviens pas à un public mineur. Les photos, vidéos, et textes pornographiques disponibles ici peuvent choquer certaines sensibilités. En entrant, vous déclarez prendre vos responsabilités vis-à-vis de ce contenu.");
    document.write("<br><br>Pour entrer sur ce site CLIQUEZ SUR ENTRER");
    document.write("<br><br>SI VOUS ETES MINEUR (- 18 ans), cliquez sur Sortir pour quitter ce site.");
    document.write("<br><br>");
    document.write("<a href='#' onclick='Entrer(); return(false)'>ENTRER</a> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n bsp;&nbsp;&nbsp;&nbsp; <a href='http://www.google.com/'>Sortir</a>");
    document.write("</div>");
    document.write("</div></div>");
    document.write('<style>embed,object,select,iframe { display:none; visibilitydden }</style>');
    }
  • woj
    <&(©¿©)&>
    • Jul 2002
    • 47882

    #2
    if there is few bucks to be made, icq: 33375924
    Custom Software Development, email: woj#at#wojfun#.#com to discuss details or skype: wojl2000 or gchat: wojfun or telegram: wojl2000
    Affiliate program tools: Hosted Galleries Manager Banner Manager Video Manager
    Wordpress Affiliate Plugin Pic/Movie of the Day Fansign Generator Zip Manager

    Comment

    • baycouples
      Confirmed User
      • Mar 2004
      • 1341

      #3
      My rate is $80/hr - will be happy to help.

      Comment

      • HomerSimpson
        Too lazy to set a custom title
        • Sep 2005
        • 13826

        #4
        hit me up and I can take care of that for you
        http://www.awmzone.com/services
        Make a bank with Chaturbate - the best selling webcam program
        Ads that can't be block with AdBlockers !!! /// Best paying popup program (Bitcoin payouts) !!!

        PHP, MySql, Smarty, CodeIgniter, Laravel, WordPress, NATS... fixing stuff, server migrations & optimizations... My ICQ: 27429884 | Email:

        Comment

        Working...