473,700 Members | 2,371 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 3104
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
12187
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
31254
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 students served between certain dates. Now, of course, between those dates,
0
1273
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
5859
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
8648
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 synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9218
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
8975
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 most users, this new feature is actually very convenient. If you want to control the update process,...
0
7816
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 launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6564
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 instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5904
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 into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
3095
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2395
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2031
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 effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.