Session Cookie For Lightbox Only Pops Up One Time Per Visit
Nov 16, 2010
I need a session cookie that way only my lightbox only pops up one time per visit. I have no idea how to do this. I've searched for session cookies and they only confuse me.
View 7 Replies
ADVERTISEMENT
Oct 14, 2010
I have the following code:
[Code]...
I want the lightbox window open only once a day for every unique visitor on my website. I understand I should use some sort of cookie implented, but I dont really understand how to.
View 4 Replies
View Related
Nov 8, 2010
I run an adult social network. I'm trying to have a lightbox disclaimer popup once per user visit with an accept/decline button at the bottom. I don't want the user to be able to click out of the lightbox, scroll the window in the back ground, or get around the lightbox any other way... Currently, I paid someone to do this for me and this is the code they came up with. The problem is, all it does is show a white box in the middle of the page, no disclaimer, no content. Also, the webpage in the background is still scrollable...
[Code]....
View 1 Replies
View Related
Feb 24, 2011
display the time elapsed since a particular visitor last visited my webpage, using cookies.
So basically it should show something like: "You last visited my page 2 days & 12 mins ago!"
I've a little background in java but none in javascript...
View 9 Replies
View Related
May 21, 2011
I want to make a pop up message that slides from left to center of the page. I want it to popup only for first time visitor of the day.
View 2 Replies
View Related
Feb 23, 2011
I have a problem here. I know how to store a cookie and check a cookie... but i don't know how to calculate the time between current visit and previous visit...
Example.
I logged in @ 1pm and logged in again @ 3pm... It should a msg like "your last visit was 2 hours ago"
View 4 Replies
View Related
Jun 28, 2006
Cookie name is "viewStatus" value saved is 1
Closing all windows should end the session but on the reopening cookie page I find the session cookie is still alive.
If I alert(document.cookie) I get viewStatus = 1
If I rename the cookie to say "vStatus" and close the window when I reopen it and alert(document.cookie) I get
viewstatus=1 vStatus=1
any ideas?
This only happens in IE ( as always)
PS
I just did a little experiment, I closed all windows, created a new file with just
<script>
alert(document.cookie)
</script>
in it then opened the file and still got
viewstatus=1 vStatus=1
I know I did not have this problem before because I have a session cookie example on my site and that does not work now so is it something new that is wrong with IE.
View 2 Replies
View Related
Jan 9, 2011
I have been looking all over the web for a solution, because my website displays funky in safari. To fix this i figured i'd tell users that if they are using safari, then using javascript, i could tell them a message. Originally i tried detecting safari then displaying a message. But i couldn't ever find a browser detection for safari. So i thought wait.... If i could:
1. get a javascript alert saying my message.
2. time that message alert frequency by a session, say 10 days? or even every browser session...
View 2 Replies
View Related
Mar 31, 2003
I have a page which I have protected using a password page. When the person viewing the site clicks on the link to the protected page, I have placed a script on onload that checks whether a cookie exists. If the cookie doesn't exist then the person is redirected to the password page. If they enter the correct password then the cookie is created using the following code and they are allowed to enter the protected page:
document.cookie="true";
If the cookie exists however, then they are allowed straight into the protected page. This is the code that I use to check whether or not the cookie exists: Code:
View 1 Replies
View Related
Oct 8, 2010
We want to build a way to change the phone number on our website similar to how rotorooter does with theirs. To see this in action simply go to rotorooter.com then do a zip code search and you will see a number show up on that page that is a local phone number. Now once you leave that web page and go to other web pages on the website it automatically changes the phone number on all the pages to that local phone number. You can even leave the web site then come back and it will stay the same. If you have never visited one of their local pages, you get a 1800 number.
View 1 Replies
View Related
Sep 22, 2007
I found this neat looking script which appears very nicely on my site:
http://www.dynamicdrive.com/dynamicindex11/abox.htm
I've come to realize today that it doesn't actually have any cookie code so that it only appears once every visitor session, instead in it's current state it appears every page load which is incredibly annoying. I know absolutely nothing on how to write or read javascript, can anyone help to include the cookie code?
View 1 Replies
View Related
Aug 22, 2009
I'm using a geolocator service to find the zipcode of a web page visitor using the code below. This will be used to serve up ads to the visitor based on their zip code. The question is, how do I pass the zip code value from the script into an ASP variable, such as a cookie or session object?
<script language="JavaScript" src="http://www.iplocationtools.com/iplocationtools.js?key=my_site_key"></script>
<script language="JavaScript">
<!--[code].....
View 5 Replies
View Related
May 31, 2010
I am using jQuery to set a cookie and the expiration date is:
date.setTime(date.getTime() + (options.expires * 24 * 60 * 60 * 1000));
which lasts for 1 day, but I would like the cookie to not expire for a long time, is this possible? I know google has one that like expires in 2035 or something but I would like this on to last long. What should I do?
View 4 Replies
View Related
Jul 12, 2011
My requirement: Each time a visitor arrives at a specific webpage i want the main image on the page to be different, or more specifically, one of 6 images which will be shown in rotation. Solution: Set a cookie. Each time the visitor access the page read the cookie and display the corresponding image. Then increment the value and rewrite the cookie, so that next time they'll see the next image in sequence. NB: if the cookie does not exist (first timer) or is at 6, then the value is set to zero (and then incremented).
Problem: Can't get my coding to work. Specifically it just doesn't do anything - no error message, no cookie written. I'm a very novice scripter, as in I've cobbled the coding together from bits off the net that i think i've managed to grasp some kind of an understanding of. Very suck it and see - so far lots of sucking and no seeing!
[Code]...
View 6 Replies
View Related
May 29, 2010
I have to following jquery lightbox code:
<script type="text/javascript">
$(function() {$('#largerview a').lightBox({
fixedNavigation:true,
[code]....
View 3 Replies
View Related
Oct 2, 2009
I currently have a slideshow working on my client's site, but I can't get lightbox to work properly on it. [URL]...
Is there a way to fix the existing slideshow to work with lightbox? Or is there another way of doing this (keeping the same look that is currently in place)?
View 5 Replies
View Related
Mar 18, 2006
This problem is this:a page is made up of frameset, but i can't visit
the iframe(inline frame) of the frame in the framset.just like the
frameset have 3 frames,the third frame have a iframe(inline frame) .how
to?
View 2 Replies
View Related
Sep 20, 2007
this is a simple script, that uses ajax that sends to the server the total amount of time (in seconds) that the visitor was reading or whatever.
var startime=(new Date()).getTime();window.onunload=function(){
var x=(window.ActiveXObject)?new ActiveXObject('Microsoft.XMLHTTP'):new XMLHttpRequest();
x.open("GET","count.php?t="+(((new Date()).getTime()-startime)/1000),true);x.send(null)}
that's the javascript...
<?php $f=fopen("visitLength.txt", 'a');fwrite($f, $_REQUEST["t"].";
");fclose($f);?>
View 3 Replies
View Related
Aug 30, 2003
I would like to display a different set of images each time a person visits a web site. I have seen this done in many banner advertisments and product photos. Can someone tell me how this can be done with Javascript?
View 2 Replies
View Related
Jul 20, 2005
When I store cookie value "12:05:33" and read it again,
I find the value become "12%3A05%3A33",
how to read or convert it correctly?
View 2 Replies
View Related
Feb 28, 2009
in the right direction on how this can be done, I got the idea from some ad company.http://mcstuff.co.uk/static/likethis.jpgOnce I hover over the link, the thing pops up.All I really want is that once someone hovers over a link, a small image pops up beside their cursor until they scroll off it.
View 3 Replies
View Related
Sep 23, 2010
I've been at this for a few days and i can't figure it out. Seems my search works well, but when i try to just click on any parcel i don't get the tab container to come up and show the info. When i click on a parcel my task bar indicates that it's doing something but nothing pops up. The basic code is from putting to gather the "Show Find Task results in DataGrid" and "Identify features on a map" from the samples.I the I believe it has something to do with this line, if i include anywhere in my current application my map goes away and then nothing works.
dojo.connect(map.infoWindow, "onShow", function () {
dijit.byId("tabs").resize();
});
[code]...
View 1 Replies
View Related
Nov 25, 2010
I have a problem in centering my popup window. I want it centered in the page when it pops up. The problem is in the code that is red. Here's a part of my script:
if (counter == 0){
var myRes = "<html><head>";
myRes += "<title>Popup Window</title>";
myRes += "</head><body>";
myRes += "<div style='text-align:center'>";
myRes += "<p>Search character '<b>" + searchChar + "</b>' not found in text string!</p>";
myRes += "<input type='button' value='Close Window' onclick='window.close()'>";
myRes += "</div>";
myRes += "</body>
</html>";
var popup = window.open("", "Popup", "top=10,left=300,width=300,height=100");
popup.focus();
popup.document.write(myRes);
popup.document.close();
View 7 Replies
View Related
Oct 7, 2009
Having just dipped my toe in the jQuery pool, I've managed to create a preload and fadein for images on this portfolio site.However, when I view the page in Firefox something odd happens. Initially, the images load in fine with the desired effect. But when I click the logo (which links back to the same page), the images fail to load. I have to refresh for them to reappear.
View 4 Replies
View Related
Apr 11, 2009
i have a document that places, reads cookies, and counts visits. it's design is to display text reading: "you have visited this site "x" times. this works fine - last week's assign. My assignment this week is to modify this document to display 4 images in succession. first, using a series of "if" statements within the body. next, is to replace if statements with switch statement. finally, to use an array to display images. i've been working on this for a week, and have made seemingly no progress. this is my starting point:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML lang="en">
<HEAD>
<TITLE>Track User Visits</TITLE>
[Code]....
View 6 Replies
View Related
Jan 17, 2010
I'm trying to set up a login formular with PHP and JavaScript/jQuery. Currently it sends an alert box, if some information are wrong. If correct, it refreshes the page, and everyone's happy.
However, I noticed upon the first visit, I cannot log in. Lets say I go to www.mysite.com and try to login, it displays a blank alert box, when it's suppose to display the username, that I supplied, and is wrong... however, it's blank.
BUT! If I go to another page and login with false informations, an alert box with the wrong username pops up - if I login with correct informations, it works.
How come it won't work on first visit? What am I doing wrong here? :confused: Pressing F5 won't work either - I have to manually switch to another page for it to work.
View 1 Replies
View Related