U could redirect the user to another page if there is no activity for x amount of time.
here is a snippet of code I'd use for such a thing :
var timer;
function startOver()
{
location.href = 'startPage.html';
}
function resetTimer()
{
timer = setTimeout("startOver()", 600000)...
i have this script the forms a calender of the entire year.
<script language="javascript">
<!--
// fill the month table with column headings
function day_title(day_name){
document.write("<TD ALIGN=center WIDTH=35>"+day_name+"</TD>")
}
// fills the month table...
ok my xml document looks sumthing like this:
<?xml version="1.0" ?>
<All_Letters>
<letter>the content of the letter
more content of the letter
still more content
</letter>
<letter>the content of the letter
more content...
how would i display an element that has an attribute, in html.
like how would i display:
<letter no="1">rsvp</letter>
would i still be using the span tag with DATASRC='#xmldso' & DATAFLD="content". how would i use it if the element had an attribute.
thanx, -Mon3y is...
when i try what you suggested it gives me an error saying "id" is not and object. this error comes from the script. if the form is submitted for server side processing then why would window.open() work and not window.location.replace?
all i want to do is password protect a certain part...
iv tried everything and still hav the same problem. i made a mistake by puting the & in my post. my script doesnt hav it. i even pasted your code above and it stil gives the same problem.
here's how i use it:
<form>
<p>User ID:<input type="text" name="id"></p>...
i dont get how i could use it in the code above? like the count down in the input field that mwolf00 supplyd.it continues to count down. could i say:
if (secs<10)
"0" + secs: secs
i hop im makin any sort of sense hear. -Mon3y is the r00t of all evil and every man needs roots-
thanx, both your scripts were extremely helpful to me.
but if i could ask 1 mor thing?
when it displays single digits like 9 secs how could i change it two show to digits like 09 secs? -Mon3y is the r00t of all evil and every man needs roots-
this should do the trick:
a.text:link {color: #ff0000; text-decoration: none}
a.text:visited {color: #0000ff; text-decoration: none}
a.text:hover {text-decoration: underline}
add this to your css.
hope i helped!
-Mon3y is the r00t of all evil and every man needs roots-
thanx harmmeijer. but i was thinkin something more along the lines of a digital clock like thing that counts backwards between 2dates. sory if i was vague with my question.
could i be helped with this?
thanx again. -Mon3y is the r00t of all evil and every man needs roots-
hi all,
im need to display the difference between 2 dates. but i want it 2 show as a count down with number of days, hours, minutes and seconds.
can anyone help me out on this one?
any help would be greatly appreciated.
thanx so much. -Mon3y is the r00t of all evil and every man needs roots-
Cheyney, your script works like a dream. exactly what i needed, but there is sumthing that i would like to happen.
at the moment everytime i close the browser and then the number refreshes back to 0. i dont want that to happen. what i want is that whateva the number is at, say 17 it should set...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.