Archive for the ‘Javascript’ Category

< Older Entries

Newer Entries >


Javascript forms – textarea word count April 5th, 2010

Happy Easter loyal readers (or possibly reader). Here’s a nice simple piece of JavaScript that counts down the number of words remaining in a restricted text field as you type. When you hit your limit and the counter hits zero you will no longer be able to type any words untill you delete some. There is no restriction here on characters and words are defined by spaces only. The example below shows it in action.

Textfield is limited to 50 words.

words remaining: 50

File’s attached as usual here – so download them, use them and together we can make HTML forms fun! (as long as you don’t have JavaScript disabled…)

Tags: , , , , ,
Posted in Dynamic content, Forms, HTML, Javascript | 1 Comment »


British Soap Awards website March 2nd, 2010

screenshot of the British Soap Awards website

www.britishsoapawards.tv

This week the British Soap Awards website 2010 website went live – built by me and designed by the good folk at Anywhichway! The site is built using the CodeIgniter framework and includes a basic vote authentication function and a reporting back end utilising the PHPExcel plugin. The voting aesthetics are coded in JavaScript.

Traffic on the site is extremely heavy and as of this post has attracted more than 9000 unique voters (in two days). With more than quarter of a million expected by the end of voting it’s, with the exception of the Orange Intranet (which doesn’t count), my highest profile and most visited work so far.

Get on there and vote people and make me look good.

Tags: , , , , , , , , ,
Posted in HTML, Javascript, PHP, Website | 3 Comments »


Javascript image carousel February 9th, 2010

Here we have a Javascript image carousel, the first completed element of the all new, currently (and probably indefinately) under construction, LANDRICAM! (v 3.0).


The Javascript is pretty customisable – allowing you to set things like image and font sizes and animation speed. Although this is hardly exhaustively tested, it seems to be pretty flexible. Now no doubt some of you will be asking ‘Why not just use one of the much prettier, robuster and more customisable JQuery modules instead of wasting countless hours cobbling this together’, well I ask you – where’s the fun in that?

Files are here – so download and spin!

Tags: , , , , , , , , ,
Posted in Dynamic content, Gallery, HTML, image, Javascript | No Comments »


Flash dynamic page titles December 15th, 2009

Here’s something I knocked up for a client to keep intranet page titles in the corporate font. It’s a simple bit of Flash and AS3 embedded with some javascript. The Flash file has the relevant font embedded in a dynamic text field and the javascript passes colour and size and the word or sentence as Flashvars to render. Below is an example in Christmasy red Helvetica Neue.

The script also incorporates the AC_OETags javascript from the Adobe Flash player detection kit to replace the SWF with the specified text rendered as normal HTML if flash is not present on the users system. Download the source files and have a play.

Tags: , , , , , , , , , , , , , ,
Posted in Actionscript 3, Christmas, Dynamic content, Flash, Font, Javascript | No Comments »


Javascript form validation December 14th, 2009

Quite an old one this, but I don’t want to lose momentum so i’m posting it for want of anything else. This is a good old fashioned form validation script. It’s faily customisable and uses alerts to indicate missing information. It also focuses on and highlights the relevant field. The zip file contains the javascript and a sample HTML form so you can see it in place. Enjoy.

Tags: , , , ,
Posted in Forms, HTML, Javascript, Validation | No Comments »


< Older Entries

Newer Entries >


Latest tweets from @scriptic