• WelcomeWelcome  
  • Events  
  • PublicationsPublications  
  • SearchSearch  
  • RegisterRegister  
  • Log inLog in  

  • You are not connected. Please login or register

    Site Optimization notice

    • Administrator

        Reputation : 320
        Registered on : 2012-02-22
        Posts : 2366
        School of codes courses: coming soon
      Site Optimization notice


      The question was:
      How do I create a script so that when users are using internet explorer 9 or lower it will tell them to use a different browser, just a pop up notice or something.

      and Rideem3 from our friend site AvacWeb gave the solution!

      Set up

      Using your styling, it would be best to put this is an announcement:

      <div id="ie_warning" style="display: none;">This site does not work best with Internet Explorer. <br>Please use another browser.<br><input type="button" onclick="this.parentNode.style.display = 'none';" value="Close"></div>
      <script type="text/javascript">
      if (is_ie) document.getElementById('ie_warning').style.display = "block";

      Then using your styling, you would put the CSS in your stylesheet using this id= #ie_warning { Code here }

      Customize the tutorial

      You can change "This site does not work best with Internet Explorer.
      Please use another browser.
      " with the message you will read if your browser is Internet Explorer

      Note: Some image-host services replace the brokwn image with a default one where you can read "Image broken, bla bla": You won't be able to change it...

      Technical problems

      The tutorial was tested on this forum and with the browser Google Chrome; If you notice that the tutorial doesn't work for a browser or for a version of forum (PhpBB2, PhpBB3, PunBB, Invision) contact an administrator and we will fill this field with your reporting.

      Thanks, the staff

      For every problem or question please, contact us in the section Support for the tutorials, The staff will answer you as soon as it is possible...

      The team of the Forum of Codes.

      Niko wants you in the team Guest

      Community manager and Administrator at Forumattivo.com

      Similar topics


      » 100000000% Trusted Ptc SIte

      DMCA.com Protection Status
      Make a forum | © PunBB | Free forum support | Contact | Report an abuse | Forumotion.com