Posts Tagged ‘Javascript’

< Older Entries


Another jQuery slider (v 2.0) December 17th, 2011

I don’t know how it happened but it’s December already! Soon it’ll be time for me to do a Christmas post but I thought that since, unforgivably, I haven’t posted since August I’d squeeze in a last work entry of 2011. This might seem like a bit of a cheat, some might say this belongs more as an update of my previous jQuery slider post, but as it has some pretty key differences I have decided to call it jQuery slider version 2.0 and give it a post of it’s own. This also affords me the opportunity of displaying some more photos, today’s theme: The Lake District where my girlfriend and I got engaged earlier this year.

The slider differs to version 1.0 mainly in that it can handle content other than imagery. You can now feed it a container type (e.g ‘div) and it will treat that container and everything inside it as a slide. Also the slides are now all present within the HTML rather than being loaded in by the JS. Additional features include the ability to switch the menu on and off and change the slide direction. You can download the files here. As always I value feedback, again I haven’t exhaustively tested this and I’d be interested to see how it fits within other templates and style sheets.

Tags: , , , , , , , , , ,
Posted in Gallery, HTML, image, Javascript, jQuery, Photography, Web | No Comments »


jQuery popup plugin August 4th, 2011

I seem to be doing a lot of bits and pieces of jQuery at the moment, which is good because I quite enjoy it. I must confess I used to feel like it was cheating but fortunately i’ve managed to shed that particular misconception and now use it in almost all the online stuff I work on.

So here’s another little plugin I knocked up for work, a jQuery popup script. Most of these bits start as some random function written for a particular site which I then make into a reusable plugin and add to my script library for re-use.

You feed this one an element ID (i’d suggest a div) and it’ll remove it from the DOM (that way you can initially stick it anywhere on the page as an accessible alternative to the pop up), re-append it just before the closing </body> tag, create (if required) a background overlay and open it up at the click of a button.

Optional settings include fade in / out, background on / off, colour and opacity, close button, and close on background click.

So test it or download the source files. Poptastic!

UPDATE 2: Now version 1.2 – The popup will now re-centralise when you resize the window, also fixed a couple of little bugs.

UPDATE: Now version 1.1 – i’ve fixed a bug wherein if you fired the same pop-up using multiple links, multiple versions of the background overlay were being created with the same ID. I can only apologise for this schoolboy error.

Tags: , , , , ,
Posted in HTML, Javascript, jQuery, Web | No Comments »


jQuery slider July 12th, 2011

An unexpected but very welcome post today as I found myself with the opportunity to step back from my mobile web shenanigans for a moment and code a bit of nice, old fashioned jQuery which i’m posting here for your viewing pleasure. As an added bonus i’ve used it to display a sneak preview of my newly landscaped garden.

pointing the new patio

As usual, I intend to develop this at some point, it could do with a loader animation and an auto generated index. But for now here’s the files. Go wild!

UPDATE: This is now version 1.1 – new features include auto generated index links, optional autoplay with adjustable speed, a few bug fixes and a little bit of accessibility goodness. Files are here (the original link above is also updated.

Tags: , , , , ,
Posted in Gallery, HTML, image, Javascript, jQuery, Photography | No Comments »


jQuery form validation plugin November 15th, 2010

So in my last post I promised something scripty and here it is – my first attempt at a jQuery plugin. Some of you might remember a previous post of mine concerning JavaScript form validation – I used this as the base to build my jQuery plugin. It does much of the same sort of validation but it’s much easier to implement, can be used on multiple forms, on the same page with different settings and has several different methods of alerting the user to validation fails. The two forms below show some of it’s features in action and you can download the files for a more in depth look.

Form 1





Form 2





The files include the plugin as well as a sample HTML form. Feel free to download and use - but if you do it would be nice if you left the credits in the JS file as they are.

This is currently version 1.0 and as I use this in my own work I'll probably be expanding the functionality and improving it over time so do watch for updates. Also if you have any functionality requests or suggestions for improvement, or if you make any improvements yourself, please let me know.

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


EMC xCP Documentum October 26th, 2010

screenshot of the EMC xCP Documentum micro site

www.emc.com/xcp

Another dry spell there, I really need to get back in the posting habit. Maybe with the evenings drawing in it’ll be easier. Anyway, here’s something new – A Flash micro site to promote EMC’s xCP Documentum software. The site is built for Flash player 9.0 and is coded in Actionscript 3.0.

There’s all sorts of delights going on in the background and this was a great site to do to get my Flash skills back up to scratch – the content is all driven by an XML back end, from links and assets (images, videos etc.), to the site copy. This meant all the content areas and buttons had to be expandable (to a point at least, I could only be as flexible as the design). This also meant that the language of the site could be easily changed allowing for roll out in multiple countries. By setting a language variable in the XML the flash movie will dynamically load in and embed the correct font and character set (using a class written by my predecessor at The Crocodile).

The site also uses the excellent SWFAddress JavaScript library by Asual to control deep linking meaning all sections of the site can be externally linked to and the browser navigation can be used.

Finally the ‘Solutions’ section has a cover flow system created with Papervision3D.

This was a pretty hardcore re-introduction to Flash after a long absence but it was kind of fun to build and really allowed me to expand my Flash skills so all well worthwhile.

Hopefully the next Scriptic installment will be something downloadable and scripty as I only seem to post websites these days. Untill then bye bye!

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


< Older Entries


Latest tweets from @scriptic