I thought of moving CountIt out of CountDown last night and was having problems with counts being global (just as you said BillyRay). I've reworked the code this morning and here is the result:
<script language="JavaScript1.2" type="text/javascript">
function CountIt(){
var now=new Date()...
I'm attempting to build a second timer using JavaScript. The following code works:
<script language="JavaScript1.2" type="text/javascript">
counts=10
var start=new Date();
start=Date.parse(start)/1000;
function CountIt(){
var now=new Date();
now=Date.parse(now)/1000;
var...
Here is my array:
$option = array (
'fruit' => array ('banana','apple'),
'vegetable' => array ('cucumber','lettuce'),
'nut' => array ('almond','peanut')
);
All I want to do is print the second key. How can I write this?
<?php print $option[key[1]] ?>
I want the above to print out 'vegetable'.
Thanks for the response cLFlaVA. For some reason your code was popping up errors. However, I got my old code to work by simply adding a comment (<!-- -->) as the first line of the file, right before the DOCTYPE. This effectively puts IE6 in quirks mode and... vowala!
Actually, I stopped using...
The XHTML & JavaScript code below will display a floating green bar. It stays at the top of the page and should reposition itself whenever the user scrolls thru the page.
It works fine in IE5 and Mozilla (Firefox) but not in IE6. In IE6 with Service Pack 2 installed, the bar always remains at...
The following is a script I found at irt.org:
<script language="JavaScript"><!--
function go() {
location.href = '#' + document.myform.mylist.options[document.myform.mylist.selectedIndex].value;
}
//--></script>
<form name="myform">
<select name="mylist">...
So I followed the directions at:
http://developer.irt.org/script/390.htm
to use the embed command to play a wave file. Below is the code:
<html>
<body>
<script language="JavaScript"><!--
function playSound() { document.firstSound.play(); }
//--></script>
<a...
Of course the above advise is for only setting up the form. You will still need a cgi script or something to do the actual work of sending the mail. If you have access to your CGI bin you may be able to find a script to do what you want. If you already have a...
I believe that only a parent window can control or set the parameters for a new child window. In javascript you make and set parameters for new window using the window.open command. In short, I'm guessing that no, you can't do it.
I believe what you want to do is to send a value from your menu bar (top2.html) to the default.html.<br><br>The link in top2.html would read something like:<br><br><A href="default.html?listing.html#23"><br><br>and have default.html parse the address line using...
This is almost working... I'm hoping someone here can help. Here are links on my index.html:<br><br><A HREF="frame.html?history.html">History</A> <br><A HREF="frame.html?route.html">Route</A> <br><A...
Thanks for the tips! I found a good article on what I wanted to do at <A HREF="http://www.irt.org/articles/js190/index.htm" TARGET="_new">http://www.irt.org/articles/js190/index.htm</A> It also will not allow a page to be loaded without your frameset, as well as, break out of someone...
I'm trying to send a url to a 2nd frame of a new frameset. The url is in the form of a variable called "menu." Eventually I will get the value of "menu" from another script but for testing I'm just setting the value to "history.html." Below is the script I'm trying...
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.