|
-
August 12th, 2009, 09:31 AM
#1
[HTML] PopUP HTML Code Problem in I.E.8
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...
Code:
<html>
<head>
<title>The Christian Courier - a ministry preserved in Christ</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta http-equiv="Refresh" content="10;URL=http://www.ChristianCourierNewspaper.com/blogbase">
<style type="text/css">
.sub { font-family: "MS Sans Serif", Arial, Helvetica, sans-serif; font-size: 12px; font-weight: bold; color: #666666}
.bod { font-family: "MS Sans Serif", Arial, Helvetica, sans-serif; font-size: 10px; color: #000000}
.subwh { font-family: "MS Sans Serif", Arial, Helvetica, sans-serif; font-size: 14px; font-weight: bold; color: #FFFFFF}
.bodwh { font-family: "MS Sans Serif", Arial, Helvetica, sans-serif; font-size: 10px; color: #FFFFFF; font-weight: bold}
</style>
<style>
.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; }
.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; }
.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; }
</STYLE>
<SCRIPT language=JavaScript>
<!--
var expDays = 100; // number of days the cookie should last
function GetCookie (name) {
var arg = name + "=";
var alen = arg.length;
var clen = document.cookie.length;
var i = 0;
while (i < clen) {
var j = i + alen;
if (document.cookie.substring(i, j) == arg)
return getCookieVal (j);
i = document.cookie.indexOf(" ", i) + 1;
if (i == 0) break;
}
return null;
}
function SetCookie (name, value,expires) {
var argv = SetCookie.arguments;
var argc = SetCookie.arguments.length;
var expires = (argc > 2) ? argv[2] : null;
var path = (argc > 3) ? argv[3] : null;
var domain = (argc > 4) ? argv[4] : null;
var secure = (argc > 5) ? argv[5] : false;
document.cookie = name + "=" + escape (value) +
((expires == null) ? "" : ("; expires=" + expires.toGMTString())) +
((path == null) ? "" : ("; path=" + path)) +
((domain == null) ? "" : ("; domain=" + domain)) +
((secure == true) ? "; secure" : "");
}
function DeleteCookie (name) {
var exp = new Date();
exp.setTime (exp.getTime() - 1);
var cval = GetCookie (name);
document.cookie = name + "=" + cval + "; expires=" + exp.toGMTString();
}
var exp = new Date();
exp.setTime(exp.getTime() + (expDays*24*60*60*1000));
function getCookieVal(offset) {
var endstr = document.cookie.indexOf (";", offset);
if (endstr == -1)
endstr = document.cookie.length;
return unescape(document.cookie.substring(offset, endstr));
}
function checkCount() {
var count = GetCookie('poponce');
if (count == null) {
count++;
SetCookie('poponce', count, exp);
// Action to take
dothis()
}
}
function dothis(){
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
}
// -->
</SCRIPT>
</head>
<BODY>
<BODY OnLoad="checkCount()">
<body bgcolor="#ECEDEC" text="#000000" link="#666666" vlink="#666666" alink="#CCCCCC" leftmargin="1" topmargin="1" marginwidth="1" marginheight="1">
<!--function slide(dir){
if (dir == "1" && loc.style.pixelLeft < (screen.width-300)/2){
loc.style.pixelLeft+=5;
move=setTimeout("slide(dir)",50);
}
if (dir == "0" && loc.style.pixelTop < (screen.height-300)/2){
loc.style.pixelTop+=5;
move=setTimeout("slide(dir)",50);
}
}
if (navigator.appName=="Microsoft Internet Explorer") slide(dir);-->
<div align="center">
<table width="770" border="0" cellspacing="0" cellpadding="0" height="471">
<tr valign="top">
<td width="1024" height="471" align="right">
<table border="1" width="100%" id="table2">
<tr>
<td align="center" bgcolor="#FFFFFF">
<!-- <p class="sub" align="center"><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> -->
<p>
<img border="0" src="Logo_15_Wrapped_2009.png" width="291" height="135" align="left"></p>
<p> </p>
<p>
<img border="0" src="MPj04026520000[1].jpg" width="304" height="248" align="right"></p>
<p><u><font size="4" color="#0000FF"><b>America's Longest Running Christian
Newspaper</b></font></u></p>
<p><b><u><font size="4" color="#0000FF">
<br>
</font></u></b><font size="4" color="#0000FF">
------------------------- Info: 414.344.7300
---------------</font><font size="2"><br>
<br>
<br>
<b><a href="http://www.MensRetreat.com">
<img border="0" src="MidwestMensRetreat2009.png" width="412" height="151"></a><br>
Midwest Men's Retreat - Conference
Fri-Sun Sept 18-20</b><br>
Geneva Ridge Resort in Lake Geneva Wisconsin<br>
</font></p></td>
</tr>
</table>
<p>
<script src="BigAdsfade.js" type="text/javascript"></script></td>
</tr>
</table>
<table width="826" border="0" cellspacing="0" cellpadding="0" id="table1">
<tr>
<th width="826" height="50" nowrap colspan="3">
<i><font face="Tahoma" size="2">
<a href="Current_Issue/LightMinistriesNorth.pdf" style="text-decoration: none; font-weight: 400">
<font color="#800000">....Download a Gift from the Heart...[click here]</font></a><span style="font-weight: 400"><font color="#800000">
<br>
by Light Ministries North</font></span></font></i></th>
</tr>
<tr>
<td width="194" height="50" align="center">
<p align="left">
<b><font size="2"><a href="Contacts.htm">Contact Us</a></font></b></td>
<td width="528" height="50" align="center">
<p align="center"><b>
<font face="MS Sans Serif" size="1" color="#666666"> </font><span class="bod"><font face="MS Sans Serif"><font color="#666666"> ©2009
The Christian Courier Newspaper // Design & Content
by </font> <a style="text-decoration: none" href="http://www.Sagacity-LLC.com">
Sagacity LLC</a></font></span></b></td>
<td width="104" height="50" align="center">
<span class="bod"><b><a target="_top" href="PrivacyPolicy.htm">
<font color="#000000">Privacy<br>
Policy</font></a></b></span></td>
</tr>
</table>
<br>
</div>
</body>
</html>
any/all help will be much appreciated
thank you
-
August 12th, 2009, 02:23 PM
#2
Re: [HTML] PopUP HTML Code Problem in I.E.8
If the post was helpful...Rate it! Remember to use [code] or [php] tags.
-
August 12th, 2009, 02:25 PM
#3
Re: [HTML] PopUP HTML Code Problem in I.E.8
Popup blockers will always block any popup that is not initiated by user interaction...i.e. clicking on a link. All web browsers have them built in, there is no way around that.
And the reason why it's working for you in Firefox...You must have your popup blocker turned off for Firefox, because mine is blocked every time.
If the post was helpful...Rate it! Remember to use [code] or [php] tags.
-
August 13th, 2009, 02:48 AM
#4
Re: [HTML] PopUP HTML Code Problem in I.E.8
Make a floating div instead of a popup
-
August 14th, 2009, 12:10 PM
#5
having problems with Onclick
here is my code
Code:
<input type="submit" class="button" onclick="window.open('http://wwww.christiancouriernewspaper.com/upload.html',Upload','width=400,height=400')" name="<?php echo $form_id; ?>" id="<?php echo $form_id; ?>" value="<?php echo $submit_text; ?>" alt="<?php echo $submit_text; ?>"<?php echo $x_or_h; ?>><br<?php echo $x_or_h; ?>>
if you go to this page.. www dot christiancouriernewspaper dot com / blogbase / contactpage.php
you will see the SUBMIT button, what I want is for when the user hits submit, it
(a) sends the information to me
(b) popups a window to upload a file
for someone reason it's not working-- it's sending the emails just fine, but the popup doesn't show
any/all help will be much appreciated
thank you
-
August 14th, 2009, 12:26 PM
#6
Re: having problems with Onclick
If the post was helpful...Rate it! Remember to use [code] or [php] tags.
-
August 14th, 2009, 12:29 PM
#7
Re: having problems with Onclick
groogruxking40, Please stop posting client-side scripting issues in the server-side forum. Thanks.
Concerning your problem, you missed a single-quote right before "Upload."
If the post was helpful...Rate it! Remember to use [code] or [php] tags.
-
August 14th, 2009, 12:33 PM
#8
Re: having problems with Onclick
 Originally Posted by PeejAvery
groogruxking40, Please stop posting client-side scripting issues in the server-side forum. Thanks.
Concerning your problem, you missed a single-quote right before "Upload."
my apologies Mod. where do i put them from now on?
btw thanks, and it's working great now
-
August 14th, 2009, 12:35 PM
#9
Re: [HTML] PopUP HTML Code Problem in I.E.8
No problem. Right here...This forum is named Scripting - Client Side.
If the post was helpful...Rate it! Remember to use [code] or [php] tags.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|