PopUp HTML Code problems in I.E.8

Reply

Join Date: Jun 2009
Posts: 11
Reputation: groogruxking40 is an unknown quantity at this point 
Solved Threads: 0
groogruxking40 groogruxking40 is offline Offline
Newbie Poster

PopUp HTML Code problems in I.E.8

 
0
  #1
Aug 12th, 2009
OK-
this code is working just fine on Firefox. this is what's suppose to happen:

you go to the website, a pop-up comes up, you click the pop-up and another window opens up to register for site..

see it here www . christiancouriernewspaper . com / popuptest.html (try in both firefox and internet explorer)

here is my code...

HTML and CSS Syntax (Toggle Plain Text)
  1. <html>
  2. <head>
  3. <title>The Christian Courier - a ministry preserved in Christ</title>
  4. <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
  5. <meta http-equiv="Refresh" content="10;URL=http://www.ChristianCourierNewspaper.com/blogbase">
  6. <style type="text/css">
  7. .sub { font-family: "MS Sans Serif", Arial, Helvetica, sans-serif; font-size: 12px; font-weight: bold; color: #666666}
  8. .bod { font-family: "MS Sans Serif", Arial, Helvetica, sans-serif; font-size: 10px; color: #000000}
  9. .subwh { font-family: "MS Sans Serif", Arial, Helvetica, sans-serif; font-size: 14px; font-weight: bold; color: #FFFFFF}
  10. .bodwh { font-family: "MS Sans Serif", Arial, Helvetica, sans-serif; font-size: 10px; color: #FFFFFF; font-weight: bold}
  11. </style>
  12. <style>
  13. .dhmcss {width:100%;background:#FFFFFF ;COLOR: #808080; FONT-FAMILY: verdana,arial,helvetica; FONT-SIZE: 10pt; FONT-WEIGHT: bold; padding-left:5;padding-right:5;padding-top:4;padding-bottom:4; TEXT-DECORATION: none; }
  14. .dhmcssover {width:100%;background:#EC941C ;COLOR: #FFFFFF; FONT-FAMILY: verdana,arial,helvetica; FONT-SIZE: 10pt; FONT-WEIGHT: bold; padding-left:5;padding-right:5;padding-top:4;padding-bottom:4; TEXT-DECORATION: none; }
  15. .dhmcssdown {width:100%;background:#ACDCA5 ;COLOR: #000000; FONT-FAMILY: verdana,arial,helvetica; FONT-SIZE: 10pt; FONT-WEIGHT: bold; padding-left:5;padding-right:5;padding-top:4;padding-bottom:4; TEXT-DECORATION: none; }
  16. </STYLE>
  17.  
  18. <SCRIPT language=JavaScript>
  19. <!--
  20. var expDays = 100; // number of days the cookie should last
  21.  
  22. function GetCookie (name) {
  23. var arg = name + "=";
  24. var alen = arg.length;
  25. var clen = document.cookie.length;
  26. var i = 0;
  27. while (i < clen) {
  28. var j = i + alen;
  29. if (document.cookie.substring(i, j) == arg)
  30. return getCookieVal (j);
  31. i = document.cookie.indexOf(" ", i) + 1;
  32. if (i == 0) break;
  33. }
  34. return null;
  35. }
  36.  
  37. function SetCookie (name, value,expires) {
  38. var argv = SetCookie.arguments;
  39. var argc = SetCookie.arguments.length;
  40. var expires = (argc >
  41. 2) ? argv[2] : null;
  42. var path = (argc > 3) ? argv[3] : null;
  43. var domain = (argc > 4) ? argv[4] : null;
  44. var secure = (argc > 5) ? argv[5] : false;
  45. document.cookie = name + "=" + escape (value) +
  46. ((expires == null) ? "" : ("; expires=" + expires.toGMTString())) +
  47. ((path == null) ? "" : ("; path=" + path)) +
  48. ((domain == null) ? "" : ("; domain=" + domain)) +
  49. ((secure == true) ? "; secure" : "");
  50. }
  51.  
  52. function DeleteCookie (name) {
  53. var exp = new Date();
  54. exp.setTime (exp.getTime() - 1);
  55. var cval = GetCookie (name);
  56. document.cookie = name + "=" + cval + "; expires=" + exp.toGMTString();
  57. }
  58. var exp = new Date();
  59. exp.setTime(exp.getTime() + (expDays*24*60*60*1000));
  60.  
  61. function getCookieVal(offset) {
  62. var endstr = document.cookie.indexOf (";", offset);
  63. if (endstr == -1)
  64. endstr = document.cookie.length;
  65. return unescape(document.cookie.substring(offset, endstr));
  66. }
  67.  
  68. function checkCount() {
  69. var count = GetCookie('poponce');
  70. if (count == null) {
  71. count++;
  72. SetCookie('poponce', count, exp);
  73.  
  74. // Action to take
  75. dothis()
  76. }
  77. }
  78.  
  79. function dothis(){
  80. var windowprops = "left=50,top=150,width=550,height=450,location=no,toolbar=no,menubar=no,scrollbars=no"; window.open("http://www.christiancouriernewspaper.com/register.html", "Christian Courier e-Paper Registration", windowprops); // Use to load a page
  81. }
  82. // -->
  83. </SCRIPT>
  84.  
  85.  
  86. </head>
  87.  
  88.  
  89. <BODY>
  90. <BODY OnLoad="checkCount()">
  91.  
  92. <body bgcolor="#ECEDEC" text="#000000" link="#666666" vlink="#666666" alink="#CCCCCC" leftmargin="1" topmargin="1" marginwidth="1" marginheight="1">
  93.  
  94.  
  95.  
  96. <!--function slide(dir){
  97. if (dir == "1" && loc.style.pixelLeft < (screen.width-300)/2){
  98. loc.style.pixelLeft+=5;
  99. move=setTimeout("slide(dir)",50);
  100.   }
  101. if (dir == "0" && loc.style.pixelTop < (screen.height-300)/2){
  102. loc.style.pixelTop+=5;
  103. move=setTimeout("slide(dir)",50);
  104.   }
  105. }
  106. if (navigator.appName=="Microsoft Internet Explorer") slide(dir);-->
  107.  
  108. <div align="center">
  109. <table width="770" border="0" cellspacing="0" cellpadding="0" height="471">
  110. <tr valign="top">
  111. <td width="1024" height="471" align="right">
  112. <table border="1" width="100%" id="table2">
  113. <tr>
  114. <td align="center" bgcolor="#FFFFFF">
  115. <!-- <p class="sub" align="center">
  116. <font color="#000000">____________________</p></font><div id="BigAdsdv" style="position:relative;width:700px;height:350px;overflow:hidden;padding:0px;margin:0px;border-style:solid;border-width:0px;border-color:#FFFFFF;z-index:1;FILTER: progid:DXImageTransform.Microsoft.Fade(Overlap=1.00,duration=3,enabled=false);"></img> -->
  117. <p>
  118. <img border="0" src="Logo_15_Wrapped_2009.png" width="291" height="135" align="left"></p>
  119. <p>&nbsp;</p>
  120. <p>
  121. <img border="0" src="MPj04026520000[1].jpg" width="304" height="248" align="right"></p>
  122. <p><u><font size="4" color="#0000FF"><b>America's Longest Running Christian
  123. Newspaper</b></font></u></p>
  124. <p><b><u><font size="4" color="#0000FF">
  125. <br>
  126. </font></u></b><font size="4" color="#0000FF">
  127. ------------------------- Info: 414.344.7300
  128. ---------------</font><font size="2"><br>
  129. <br>
  130. <br>
  131. <b><a href="http://www.MensRetreat.com">
  132. <img border="0" src="MidwestMensRetreat2009.png" width="412" height="151"></a><br>
  133. Midwest Men's Retreat - Conference&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
  134. Fri-Sun&nbsp;&nbsp;&nbsp; Sept 18-20</b><br>
  135. Geneva Ridge Resort in Lake Geneva Wisconsin<br>
  136. &nbsp;</font></p></td>
  137. </tr>
  138. </table>
  139. <p>
  140. <script src="BigAdsfade.js" type="text/javascript"></script></td>
  141. </tr>
  142. </table>
  143. <table width="826" border="0" cellspacing="0" cellpadding="0" id="table1">
  144. <tr>
  145. <th width="826" height="50" nowrap colspan="3">
  146. <i><font face="Tahoma" size="2">
  147. <a href="Current_Issue/LightMinistriesNorth.pdf" style="text-decoration: none; font-weight: 400">
  148. <font color="#800000">....Download a Gift from the Heart...[click here]</font></a><span style="font-weight: 400"><font color="#800000">
  149. <br>
  150. by Light Ministries North</font></span></font></i></th>
  151. </tr>
  152. <tr>
  153. <td width="194" height="50" align="center">
  154. <p align="left">
  155. <b><font size="2"><a href="Contacts.htm">Contact Us</a></font></b></td>
  156. <td width="528" height="50" align="center">
  157. <p align="center"><b>
  158. <font face="MS Sans Serif" size="1" color="#666666">&nbsp;</font><span class="bod"><font face="MS Sans Serif"><font color="#666666">&nbsp;&copy;2009
  159. The Christian Courier Newspaper&nbsp;&nbsp;//&nbsp; Design &amp; Content
  160. by </font> <a style="text-decoration: none" href="http://www.Sagacity-LLC.com">
  161. Sagacity LLC</a></font></span></b></td>
  162. <td width="104" height="50" align="center">
  163. <span class="bod"><b><a target="_top" href="PrivacyPolicy.htm">
  164. <font color="#000000">Privacy<br>
  165. Policy</font></a></b></span></td>
  166. </tr>
  167. </table>
  168. <br>
  169. </div>
  170. </body>
  171. </html>

any/all help will be much appreciated
thank you
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:




Views: 581 | Replies: 0
Thread Tools Search this Thread



Tag cloud for HTML and CSS
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC