473,545 Members | 2,663 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Show GreyBox Pop Up Only Once?

Hi Everyone,

I'm new to this, so bear with me...

I need a cookie that will make the pop up that displays (wait 10
seconds) only pop up once
per user. How can I do that with a cookie? PLEASE HELP

Here's the site: http://www.saveourbones.com/

Thanks in advance! You guys rock!
Jun 27 '08 #1
3 3100
On May 27, 11:28 am, sixstringsk <thekleincollec t...@yahoo.comw rote:
Hi Everyone,

I'm new to this, so bear with me...

I need a cookie that will make the pop up that displays (wait 10
seconds) only pop up once
per user. How can I do that with a cookie? PLEASE HELP

Here's the site:http://www.saveourbones.com/

Thanks in advance! You guys rock!
What did you try? What error messages did you see?

<URL: http://jibbering.com/faq/#FAQ3_1>

<URL: http://www.google.com/search?q=javasc ript+cookies>

Peter
Jun 27 '08 #2
On May 27, 5:15*pm, Peter Michaux <petermich...@g mail.comwrote:
On May 27, 11:28 am, sixstringsk <thekleincollec t...@yahoo.comw rote:
Hi Everyone,
I'm new to this, so bear with me...
I need a cookie that will make the pop up that displays (wait 10
seconds) only pop up once
per user. *How can I do that with a cookie? *PLEASE HELP
Here's the site:http://www.saveourbones.com/
Thanks in advance! *You guys rock!

What did you try? What error messages did you see?

<URL:http://jibbering.com/faq/#FAQ3_1>

<URL:http://www.google.com/search?q=javasc ript+cookies>

Peter
Hi Peter,

Thanks for your reply—I actually don't know where to start, so I
didn't try anything. The pop up window is on a 10 second delay and is
called using the "onload="Func1D elay()"" function. Does that help?

I would be happy to pay someone via PayPal if they can give me the
code to add, so that the pop only shows once per visitor.

Thanks!
Jun 27 '08 #3
On May 27, 3:32 pm, sixstringsk <thekleincollec t...@yahoo.comw rote:
On May 27, 5:15 pm, Peter Michaux <petermich...@g mail.comwrote:
On May 27, 11:28 am, sixstringsk <thekleincollec t...@yahoo.comw rote:
Hi Everyone,
I'm new to this, so bear with me...
I need a cookie that will make the pop up that displays (wait 10
seconds) only pop up once
per user. How can I do that with a cookie? PLEASE HELP
Here's the site:http://www.saveourbones.com/
[snip]
The pop up window is on a 10 second delay and is
called using the "onload="Func1D elay()"" function. Does that help?

I would be happy to pay someone via PayPal if they can give me the
code to add, so that the pop only shows once per visitor.
Usually code requests on comp.lang.javas cript are ignored as someone
wants a free lunch. You say you are willing to pay so this is a test
of human honesty.

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">

<html>
<head>
<title>cookie test</title>

<script type="text/javascript">
// the already existing code
function Func1Delay() {
window.open('ht tp://groups.google.c om/group/
comp.lang.javas cript')
}
</script>

<script type="text/javascript">
// the new code
function onlyOnce() {
if (document.cooki e.indexOf("hasS een=true") == -1) {
var later = new Date();
later.setFullYe ar(later.getFul lYear()+10);
document.cookie = "hasSeen=true;e xpires="+later. toGMTString();
// call the old function
Func1Delay();
}
}
</script>

</head>
<body onload="onlyOnc e()">

<p>the page</p>

</body>
</html>
---------

Paypal is actually having some problems right now. Please send me an
email and we can discuss payment.

Peter
Jun 27 '08 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
12175
by: MOHSEN KASHANI | last post by:
Hi, I am trying to hide some form elements in a form by default and show/hide depending on which radio button is clicked. This is what I have but it is not working: <head> <style> ..noshow { display: none; }
4
31249
by: kdubble | last post by:
Hi I am trying to get the results of a query to show only unique student records (not duplicates). Is there a simple way to make the criteria field do this? I am not too familiar with SQL. I have a student_info table, a session_info table, and a services_to_students table. What I'd like to do is query the tables to get a list of all...
0
1264
by: Dunc | last post by:
Has anyone successfully managed to get the Altas Toolbox AutoCompleteExtender working inside a GreyBox control? While I've got the code and code-behind working fine, the "dropdown" panel is being displayed about off the bottom of the page. Thanks in advance, Duncan
39
5829
by: alex | last post by:
I've converted a latin1 database I have to utf8. The process has been: # mysqldump -u root -p --default-character-set=latin1 -c --insert-ignore --skip-set-charset mydb mydb.sql # iconv -f ISO-8859-1 -t UTF-8 mydb.sql mydb_utf8.sql mysqlCREATE DATABASE mydb_utf8 CHARACTER SET utf8 COLLATE utf8_general_ci;
0
7425
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
1
7449
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
7780
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
6009
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5351
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5069
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3465
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1037
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
734
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.