close the GeoCities ad with &  --»

UP AGAINST THE WAR and UNCLE SAM'S AUNTIE

Cut-and-paste code and instructions

All code and instructions also available as CODE.TXT in PROTEST.ZIP


 

 
UP AGAINST THE WAR
This customizable script periodically replaces the title, status bar, and form element values
with various anti-war quotes, and also changes the bg & text colors.
You may also choose to temporarily replace all the images.
After the brief "protest" display, all original values are restored.
An on/off feature is provided to prevent viewer frustration.
 
UNCLE SAM'S AUNTIE (anti-war quote quiz)
The quotes are split into the actual quote, and who said it.
Then, they are rearranged each time the game is played.
Multiple choice answers are randomly selected for each quote.
Thus, the quotes and answers are never the same.
 
These JavaScripts were created by Randall Goya for netSperience ©2003.
Permission is granted for free use on any website for non-commercial purposes.
The author reserves all other rights; contact him by email at rgoya@yahoo.com
You may not charge a fee for this script. A link to my website would be appreciated.
All original code is available at http://www.geocities.com/rgoya/javascript/PROTCODE.HTM
You Control the Effects

 
RETURN TO
UP AGAINST THE WAR

 
stop the war

Use JavaScript to turn any web page into an anti-war protest!

Show your opposition to the war in three easy steps:

skip instructions
 
STEP 1: (this is the most complicated step)
 
Download and unzip PROTEST.ZIP (90 Kb) (see WinZip if you don't know how to expand zip files)

PROTEST.ZIP contains this web page PROTCODE.HTM and the JavaScript file PROTEST.JS,
plus CODE.TXT, which has all code for options such as: Uncle Sam's Auntie, Control Panel, Off/On Button, etc.
Several image files are also included in PROTEST.ZIP: TRANSPIX.GIF (a transparent pixel spacer), STAR.GIF (bg for US AUNTIE),
and fifteen badges adapted from Peace Pins (PP0.GIF,PP1.GIF ... PP14.GIF)
If you use the Peace Pins images, please link to http://www.peacepins.com/


Upload PROTEST.JS and the image files to your own server in the same directory as your web page(s)

Please don't link to my files - GeoCities has limited bandwith!

Some variables in PROTEST.JS can be changed for different effects -
Each effect (forms, images, colors, title and status) can be turned off.
Add your own quotes, or announce meetings and demonstrations!
 
 
STEP 2: Call PROTEST.JS in the <head> of your webpage(s) with this code
paste in just before the </head> tag
ALL CODE IS ALSO INCLUDED AS CODE.TXT IN
PROTEST.ZIP
 
 
STEP 3: Add this event handler (onload="protest()") to the <body> tag
to start the effects after the page loads in the browser

Add enProtest=0 if you don't want the effects to start when the page loads
(for example, if you just want the US AUNTIE game)
The Control Panel or Off/On Toggle Button will start the effects.

Turning off the effects also helps when you just want to edit the HTML content of the page!

 

Optional Features:

ALTERNATE "All in one document" METHOD

  • Download and unzip PROTEST.ZIP, or just download PROTEST.JS
  • Insert this code in the <head> (paste in just before the </head> tag)
  • Paste in PROTEST.JS where indicated
  • Don't forget to add the onload event handler (STEP 3)

 
 

CHANGE THE TIMING FOR A PARTICULAR PAGE

Insert this code in the <BODY>, just before the </BODY> tag:

 

Add a toggle button to turn the effects off and on again.


 

insert this code wherever you want a button
You may repeat this code for multiple buttons - DO NOT change the form and button names.
 
Place this button near the top of the page. Also put it near any actual form(s) you may have.
You can insert the button itself (<input type="button" ... >) into other forms without its own <form> + </form> tags.
 
This is a very annoying script, so have some consideration and give the viewer some control!
 

Add a Control Panel for more viewer controls!

You Control the Effects

 
insert this code for a Control Panel - DO NOT change the button names or values!
You may repeat this code for multiple panels. You may also leave out any button(s) to reduce the size.
 

Use "Invisible" Images


This placeholder will be replaced by the substitute images.
Since the dimensions are not specified, this image will change size dynamically for each substitute image.
If you want a constant size, specify the width and height values
(this may result in distorting the substitute images as they stretch to the defined dimensions!)
remember to upload TRANSPIX.GIF to your server!!
You may repeat this code as often as you want.
 

 

 
Download all code and images for UNCLE SAM'S AUNTIE (PROTEST.ZIP)

Copy & paste code for UNCLE SAM'S AUNTIE game board:


Banner exchange
you must call PROTEST.JS in the <HEAD> (STEP 2 above),
but the onload event handler
<body onload="protest()"> is not necessary if you want US AUNTIE without the PROTEST effects
 
 
 
 

 

 

Anti-War Links


 
 
 
RETURN TO
UP AGAINST THE WAR
 
 
 
Peace Pins Banner

Peace Pins let me "borrow" some of their images for Up Against the War.
Their pins are great, so buy some and wear them to show everybody how you feel!
If you use their buttons from PROTEST.ZIP, please link to Peace Pins! http://www.peacepins.com/

 
return to instructions
 

I'd love to hear from you

privacy policy
How do you like Up Against the War?
Please report any problems with the script here


 
Do you plan to use this script? yesno
 
Your URL:   
Your Name:
Your Email:  
 

 
if you like this script, check out
 
The Ultimate Original JavaScript ColorShow

 
 
 
peacenik # Counter
 





 

 

 
are you netSperienced? a  netSperience  website
 
©2003 by  Randall Goya

 
 <||> netSperience <||> JavaScript <||> Tools <||> Résumé <||> Guest Book <||> 
 
 <||> Awards <||>Contact <||>Link to netSperience <||> 
Hosted by [ Geocities icon ]
Get your own
Free Home Page