Security
Notes for UK Visitors
You should only supply credit card details over secure server connections
(Amazon use a secure server). Never send credit card details over standard email.
Even though NoiseFactory is based in the UK, most prices here are quoted in US dollars - the
slightly longer shipping time is usually more than made up for by considerably
lower prices in America. Buying goods online is just as easy in dollars as Sterling, because credit
card transactions are automatically converted to local currency at the prevailing exchange rate.
In fact, online dollar purchases are cheaper even than getting your bank to generate a money order,
because banks typically charge extortionate conversion fees, whereas credit cards usually charge none
at all. To buy a book or CD in dollars, just fill out the online forms provided - the rest happens
automatically.
Further Reading > JavaScript and Perl
[Page 1]
[Page 2]
[Page 3]
[Page 4]
|
Visit our Sponsors
| JavaScript and Perl
JavaScript can be used to control all manner of page properties ranging from the behaviour of forms to
the layout of entire tables.
// // colorcycle.js // Copyright (c)2000 Mike Stannett All Rights Reserved // http://noisefactory.co.uk (web@noisefactory.co.uk) // // You are free to use this script if and only this // header information stays intact, including my // copyright notice. // // Usage: onLoad="colorfade(from,to,nsteps);" // // from = starting colour, rrggbb // to = ending colour, rrggbb // nsteps = how many steps for the transition? // hexdigits = new Array('0','1','2','3','4','5','6','7','8','9','a','b','c','d','e','f'); function colorcode(i) { var value = i%256; return "" + hexdigits[Math.floor(value/16)] + hexdigits[value%16]; } function colorfade( from, to, nsteps ) { if ( nsteps == 0 ) nsteps = 1; r0 = parseInt(from.substring(0,2),16); g0 = parseInt(from.substring(2,4),16); b0 = parseInt(from.substring(4,6),16); r1 = parseInt(to.substring(0,2),16); g1 = parseInt(to.substring(2,4),16); b1 = parseInt(to.substring(4,6),16); var bgc; for ( var n=0; n<nsteps; n++) { bgc = "#" + colorcode( Math.floor( r0*(nsteps-n)/nsteps + r1*(n/nsteps) ) ) + colorcode( Math.floor( g0*(nsteps-n)/nsteps + g1*(n/nsteps) ) ) + colorcode( Math.floor( b0*(nsteps-n)/nsteps + b1*(n/nsteps) ) ); document.bgColor = bgc; for (var m=0; m<10; m++); } } |