public.js 863 B

12345678910111213141516171819202122232425262728
  1. $("#sheader").load("../public/sheader.html");
  2. $("#footer").load("../public/footer.html");
  3. $("#pheader").load("../public/pheader.html");
  4. $(function() {
  5. $('.imgauto img').imgAuto();
  6. })
  7. $('.closed').click(function(){
  8. $('.iet').hide();
  9. })
  10. var browser = navigator.appName
  11. var b_version = navigator.appVersion
  12. var version = b_version.split(";");
  13. var trim_Version = version[1].replace(/[ ]/g, "");
  14. if (browser == "Microsoft Internet Explorer" && trim_Version == "MSIE6.0") {
  15. $('.iet').show();
  16. } else if (browser == "Microsoft Internet Explorer" && trim_Version == "MSIE7.0") {
  17. $('.iet').show();
  18. } else if (browser == "Microsoft Internet Explorer" && trim_Version == "MSIE8.0") {
  19. $('.iet').show();
  20. } else if (browser == "Microsoft Internet Explorer" && trim_Version == "MSIE9.0") {
  21. $('.iet').hide();
  22. } else {
  23. $('.iet').hide();
  24. }