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...
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...
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) {...
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...
Here's a question I have been puzzling over for a while.
I want to replace all pretags in a text with "", EXCEPT the pretag.
I figure that $text =~ s/&[a-zA-Z]+?;//ig; will wipe out ALL of them. But how do I wipe out all but ?
I've tried a few dumb things, but I can't seem to...
I am having a devil of a time figuring this out!
I am taking as my data the source code brought in from a website via LWP::Simple, such as the following:
<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html...
$text = '<input type=hidden name="avkw" value="fogg">
<input type=hidden name="avkw" value="a be cee">';
Given this bit of code above, I wish to write a line that replaces all words between every instance of value="" with an equal number of xs. So the result should be:
<input type=hidden...
Is there a way I can easily extend the typical search instruction s/a-zA-Z// to include groups of foreign characters like those using cedillas, umlauts, etc.?
I'd like to create an ultra simple HTML parser/replacement tool that looks for any and all alphanumeric text between > and <\n and blanks it out with xs. So a string containing
$text = "<TITLE>This is a title<\TITLE>";
would become
<TITLE>xxxx xx x xxxxx<\TITLE>.
$text = "<TITLE>This is a...
Same program - 2 different results!
I am puzzled why I am getting two different results with the exact same program! The only difference is that one is being run on my home computer and the other is on the Web.
$text = '<html>
<head>
<title>Untitled Document</title>
<meta...
Does anybody know if the perl-flash connection has been made? I was hoping this would be it
http://thegestalt.org/flash/
but the demos all give internal server errors.
I am trying to use the LWP:: Simple command. When I do the following, all I get is the simple webpage link returned to me, not the HTML code!
<form name="form3"
METHOD="POST" ACTION="/cgi-bin/Scrip01.cgi">
<p>ENTER THE URL OF WEBSITE PAGE:</p>
<input type="text" name="urlval" size="100">...
What happens when you feed numbers higher than 255 into the three hex slots of a font color (strColor)? I am getting some pretty, but unpredictable, effects I would like to reproduce, if possible, but within a setting where the values are within the proper range and won't produce error messages...
This seems like an easy problem, but I am stumped!
How do I match all chars in a portion of the string and replace with an equal number of "." characters.
So "alt=testx" becomes alt=….."?
I want to write an HTML program that accepts user input via a form submission in the form of a website URL link (such as http://www.etc.com), then sends the HTML source code of the inputted URL to a CGI file for processing. How would I do this? Any tips or hints would be much appreciated, as I...
Rollover with a twist.
I am trying to do the basic rollover image idea, but with the twist that if you click on the mouse, the images are swapped. So if rollover with image 1 as base, image 1 -> image 2; if click then rollover, image 2 -> image 1. Also the reverse: if rollover with image 2 as...
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.