Notes on a web journey

posted on: 27 August 2006

Fear and respect

filed under: @ 17:21:42 by 7colors

How it should be:

Fear and respect

A Javascript elaboration of a thought (“Fear breeds hate, respect brings peace” - one of the random quotes that appear on the right upper corner of this site) to illustrate a concept: until fear is greater then respect the end result will always be war.

The most important is the last line (fear--;) without it the loop is infinite and crashes the computer..

The double minus sign is a decrement operator and subtracts 1 from whatever is assigned to. With each iteration of the loop fear decreases and the loop ends. Right now, fear is ++, it increases with each iteration. The loop is infinite.

Let's break that loop..



Post a comment

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <blockquote cite=""> <code> <em> <strike> <strong>

CSS,Javascript and Php studies

Anti spam email
A solution to writing an anti spam email contact link
filed under: Javascript
Background image
A background image randomizer that I used in the second version of this site.
filed under: Javascript/CSS
Javascript menu
A menu that uses Javascript and session cookies.
filed under: Javascript/CSS
Experimenting with CSS and Javascript.A simple but, in my opinion, nice navigation “system”. The MiniSite is a one page site.
filed under: Javascript/CSS
Photo display
Protect copyrighted photos: a simple but effective solution.
filed under: Javascript/CSS
Photo gallery
A photo gallery made for a friend
filed under: Javascript
PHP menu
A PHP menu that can be updated without having to re-publish all the pages is on.
filed under: PHP
Pop-up menu
A very simple pop up menu powered by Javascript. It works also if Javascript is disabled.
filed under: Javascript/CSS
RSS feed
How to write and use an RSS feed
filed under: rss-xml
Tag replacer
The Tag replacer explained and a link to it.
filed under: PHP
Tags search
A search form build and powered using Javascript and the DOM
filed under: Javascript