Okay, I found the problem, It's the old single vs double quotes for the strings.
Instead of
var bintexx = new Array (" ÔÉL? .", " ?p !UN");
I should have used
var bintexx = new Array (' ÔÉL? .', "'?p !UN');
like you did in your example, Dan.
Thanks!
No, didn't work. It's like the array with extended chars isn't even recognized as a valid array. The program works with normal chars in the array, and fails when I add extended chars.
I'm trying to use extended chars in an array of strings, and Javascript is not recognizing the non-ASCII chars. I know there must be a way to fix this, but I can't find the info listed anyplace.
Here's a sample, containing 2 array elements between quotes. I would prefer to leave the elements in...
After a bit of searching, I give up! How do I convert an ASCII value to its numeric equivalent (preferably binary) in Javascript? The result should cover all values from 0 to 255, not just A-Za-z.
I'm trying to scale up some letters in a text, but I also want to keep them exactly centered in the middle of the screen. Is there a better way to do this than simply to adjust the y-coordinate in some crude fashion as the scale grows larger such as I am doing below? It seems that every letter...
Thanks for the help! I can't get this code of yours to run. I fixed a small error, and still nothing,
var newtext = setTimeout("changeTX(ii)", 1000);
to
var newtext = setTimeout("changeTX()", 1000);
I am trying to print out the letters of MYtext one at a time at 1 second intervals. This doesn't work, all I get is the first letter, then it stops. My grasp of setTimeout is very shaky, it seems.
<HTML>
<HEAD>
<script language="JavaScript">
<!--
MYtext = "black";
function changeTX(var ii) {...
Form button font change?
Is it possible within an HTML page to change the font on a form button so that all users see the same font?
Right now the VALUE= command between quotes is in what looks like Chicago font or something on my browser, and I'd like something nicer.
<FORM METHOD=POST...
Easy question to answer, probably.
I'd like to have a series of lines (using a loop) drawn across the screen in relation to some specific amount of time.
So I would like to draw a line across the screen like this
MoveTo(0, 50);
LineTo(30, 188);
then pause 1000 milliseconds, then another line...
Sorry for being so stupid! Okay, I've simplified the code as much as I can and I still can't make it work! All I get is c=1 written to screen.
var c = 0;
function changeBGx() {
if (c++ < 10) {
document.write("c = " + c + "<BR>");
}
setTimeout("changeBGx()", 1000);
};
...
</HEAD>
<BODY...
Thanks, but that doesn't seem to fix the problem. All attempts at adding a loop the timeout fails. I only get a single change at the end, not a new change every 1000ms. I would like a loop someplace, say
(ii=0; ii<10; ii++) {
...
}
to generate a total of 10 different colors with changeBG(ii)...
I want to do a simple alternation betwen black and white background colors. (I may expand it later to more colors, which explains the code below.) I would think the simple code below would work, but it doesn't! Why not?
Dec2Hex is a conversion function, obviously.
...
function changeBG(ii) {...
Okay, because it's so short, I figure I may as well post the code I've written that is causing the problem, minus a few details. I invite anybody to tell me how I might revise this code to lessen the CPU load, or otherwise tighten it up to run more efficiently.
The program basically takes a...
Thanks for that tip! Here's what he sent me, I can't pretend to know too well what the references mean, although if somebody else does, I'd love to hear about it.
I can also post the code in my cgi-bin file, if that would help get to the source of the problem.
#
The problem stems from a...
I am running a Perl cgi-bin program that is causing my account to be suspended due to excessively high cpu load. All the program does is read in a site's html code via LWP::Simple and process it using Perl s// commands. Can anybody give me some general tips as to how I can write Perl code to...
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.