User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the HTML and CSS section within the Web Development category of DaniWeb, a massive community of 425,780 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,311 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our HTML and CSS advertiser: Lunarpages Web Hosting

Code broken in IE - Help School Teacher

Join Date: Dec 2007
Posts: 17
Reputation: plarsen111 is an unknown quantity at this point 
Rep Power: 1
Solved Threads: 0
plarsen111 plarsen111 is offline Offline
Newbie Poster

Code broken in IE - Help School Teacher

  #1  
May 16th, 2008
Hi,

My web page looks fine in FireFox, but broken in IE.

http://www.hmstechnology.com/

Does anyone know how I can fix this?

Thanks,

Phil

You can probably view the code even though I use frames, but here is the code with CSS.

  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
  2. <html>
  3. <head>
  4. <title>Welcome!</title>
  5. <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
  6. <script type="text/javascript">
  7. function MM_CheckFlashVersion(reqVerStr,msg){
  8. with(navigator){
  9. var isIE = (appVersion.indexOf("MSIE") != -1 && userAgent.indexOf("Opera") == -1);
  10. var isWin = (appVersion.toLowerCase().indexOf("win") != -1);
  11. if (!isIE || !isWin){
  12. var flashVer = -1;
  13. if (plugins && plugins.length > 0){
  14. var desc = plugins["Shockwave Flash"] ? plugins["Shockwave Flash"].description : "";
  15. desc = plugins["Shockwave Flash 2.0"] ? plugins["Shockwave Flash 2.0"].description : desc;
  16. if (desc == "") flashVer = -1;
  17. else{
  18. var descArr = desc.split(" ");
  19. var tempArrMajor = descArr[2].split(".");
  20. var verMajor = tempArrMajor[0];
  21. var tempArrMinor = (descArr[3] != "") ? descArr[3].split("r") : descArr[4].split("r");
  22. var verMinor = (tempArrMinor[1] > 0) ? tempArrMinor[1] : 0;
  23. flashVer = parseFloat(verMajor + "." + verMinor);
  24. }
  25. }
  26. // WebTV has Flash Player 4 or lower -- too low for video
  27. else if (userAgent.toLowerCase().indexOf("webtv") != -1) flashVer = 4.0;
  28.  
  29. var verArr = reqVerStr.split(",");
  30. var reqVer = parseFloat(verArr[0] + "." + verArr[2]);
  31.  
  32. if (flashVer < reqVer){
  33. if (confirm(msg))
  34. window.location = "http://www.macromedia.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash";
  35. }
  36. }
  37. }
  38. }
  39. </script>
  40. <style type="text/css">
  41. <!--
  42. body {
  43. background-color:#FFFFFF;
  44. font-family:Arial, Helvetica, sans-serif
  45. }
  46. body,td,th {
  47. color: #000000;
  48. }
  49. a:link {
  50. color: #FF0000;
  51. text-decoration: underline;
  52. }
  53. a:visited {
  54. text-decoration: underline;
  55. color: #FF0000;
  56. }
  57. a:hover {
  58. text-decoration: none;
  59. }
  60. a:active {
  61. text-decoration: underline;
  62. }
  63.  
  64. h1 {
  65. font-size:36px;
  66. text-align:left;
  67. letter-spacing:1px;
  68. border-top: 1px solid;
  69. border-left: 2px solid;
  70. padding:15px;
  71. margin-left:25px;
  72. margin-top:25px;
  73. }
  74.  
  75. #assignmentblock {
  76. width:30%;
  77. height:400px;
  78. }
  79.  
  80. #assignmentblock p {
  81. padding:15px;
  82. font-size:18px;
  83. border-left: 2px solid;
  84. }
  85.  
  86. .lesson {
  87.   font-size: 14px;
  88. color:#FF0000;
  89. }
  90.  
  91. #extras {
  92. position: absolute;
  93. top:28px;
  94. left:300px;
  95. width:400px;
  96. border: 2px solid;
  97. margin-left:30px;
  98. padding:18px;
  99. font-size:22px;
  100. color:#666666;
  101. }
  102.  
  103. img {
  104. float:left;
  105. margin:15px;
  106. }
  107.  
  108. -->
  109. </style>
  110. <script src="Scripts/AC_RunActiveContent.js" type="text/javascript"></script>
  111. </head>
  112.  
  113. <body alink="#ffffff" onLoad="MM_CheckFlashVersion('7,0,0,0','Got Flash? Download here!');">
  114.  
  115. <div id="assignmentblock">
  116.  
  117. <h1>6th Grade<br>
  118. <span class="lesson">We are either starting a new assignment or having another Make-Up Free Day. You get to vote!</span>
  119. </h1>
  120.  
  121. <h1>7th Grade<br>
  122. <span class="lesson">We are either starting a new assignment or having another Make-Up Free Day. You get to vote!</span>
  123. </h1>
  124.  
  125. <h1>8th Grade<br>
  126. <span class="lesson">We are either starting a new assignment or having another Make-Up Free Day. You get to vote!</span>
  127. </h1>
  128.  
  129. </div>
  130.  
  131. <div id="extras">
  132. <p><img src="owen.jpg" height="241" width="182">Owen got a little case of pnemonia. Doing much better now. He spent a few nights in the hospital. He didn't like the "pokes", but he sure did get a lot of toys.
  133. </p>
  134. </div>
  135.  
  136. </body>
  137. </html>
Last edited by peter_budo : May 16th, 2008 at 5:08 pm. Reason: Keep It Organized - please use [code] tags
AddThis Social Bookmark Button
Reply With Quote  
All times are GMT -4. The time now is 2:56 pm.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC