HomeHome  
  • WelcomeWelcome  
  • Events  
  • PublicationsPublications  
  • FAQFAQ  
  • SearchSearch  
  • MemberlistMemberlist  
  • UsergroupsUsergroups  
  • RegisterRegister  
  • Log inLog in  
  • You are not connected. Please login or register


    Site Optimization notice

    avatar
    • Administrator

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

      Description


      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:

      Code:
      <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";
      </script>


      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...


      Friendly,
      The team of the Forum of Codes.



      Niko wants you in the team Guest

      Community manager and Administrator at Forumattivo.com


      YOUR BANNER HERE
      728x90
      DMCA.com Protection Status
      © PunBB | Contact | Report an abuse