Scrollbar missing in IE window

liunx

Guest
At <!-- m --><a class="postlink" href="http://www.dukewill.com">http://www.dukewill.com</a><!-- m --> (my site I am working on), I have it configured to pop up a window when they leave the main page. To remind them of a couple of important points. If this is a blatant nono, advise. Anyway, I have it done up there near the top of the code... search for "justpop." In my Opera7, the window it creates is configured correctly. In my IE5, the new page has no scrollbar. Any ideas?<br />
<br />
You can refresh or just click on a link and it will pop up the new page.<!--content-->I think i have it fixed... the scrollbar issue. I wonder if there is a way to make it popup once and once only... forever.<!--content-->Yeah, if javascript is enabled -- which is the only time they will get the popup anyway. You just need to set a cookie when you display the popup, and then check if the cookie is set. If so, don't display the popup...<br />
<br />
[edit - Something like this:<br />
<br />
<script type="text/javascript"> <br />
cookies = document.cookie;<br />
pos = cookies.indexOf("popup=");<br />
if (pos == -1) {<br />
date = new Date();<br />
date.setMonth(date.getMonth()+12); //set it to expire in 1 year<br />
document.cookie = "popup=yes; expires="+date.toGMTString();<br />
window.open("yourpage.htm","popup","width=400,height=300");<br />
}<br />
</script>]<!--content-->How would I incorporate it into what I have already? I am no expert. I have...<br />
<br />
<script language="JavaScript"><br />
<!-- Begin<br />
function justpop() {<br />
<br />
window.open("notice.html","page","resizable=no,scrollbars=yes,height=460,width=600,alwaysRaised=yes,status=yes,top=40,left=115 screenY=40, screenX=115"); <br />
<br />
}<br />
<br />
// --><br />
</script><br />
<br />
<br />
<br />
Originally posted by pyro <br />
Yeah, if javascript is enabled -- which is the only time they will get the popup anyway. You just need to set a cookie when you display the popup, and then check if the cookie is set. If so, don't display the popup...<br />
<br />
[edit - Something like this:<br />
<br />
<script type="text/javascript"> <br />
cookies = document.cookie;<br />
pos = cookies.indexOf("popup=");<br />
if (pos == -1) {<br />
date = new Date();<br />
date.setMonth(date.getMonth()+12); //set it to expire in 1 year<br />
document.cookie = "popup=yes; expires="+date.toGMTString();<br />
window.open("yourpage.htm","popup","width=400,height=300");<br />
}<br />
</script>]<!--content--><script type="text/javascript"> <br />
function justpop() { <br />
cookies = document.cookie;<br />
pos = cookies.indexOf("popup=");<br />
if (pos == -1) {<br />
date = new Date();<br />
date.setMonth(date.getMonth()+12); //set it to expire in 1 year<br />
document.cookie = "popup=yes; expires="+date.toGMTString();<br />
window.open("notice.html","page","resizable=no,scrollbars=yes,height=460,width=600,alwaysRaised=yes,status=yes,top=40,left=115 screenY=40, screenX=115"); <br />
}<br />
}<br />
</script>the window.open all goes on one line<!--content-->Thanks so much! When developing the site, I will need to see that it is working. What's best way for me to do that? Can it ignore me or would I have to do something with my cookies setting or what? (Again, I'm no expert.)<!--content-->I'm assuming your asking how to reset the cookie? If so, change this line:<br />
<br />
date.setMonth(date.getMonth()+12); //set it to expire in 1 year<br />
<br />
to:<br />
<br />
date.setMonth(date.getMonth()-1); //set it to expire in -1 month (any negative value will work...)<!--content-->
 
Back
Top