Detecting escape press in javascript

0

Today for my University project, I was improving the overlay on my current site. I decided I wanted to add a slight extra bit of code so the user can close it by pressing the escape key. Below is the javascript code to use: $(document).keyup(function(e) { if (e.keyCode == 27) { // Close your overlays/divs [...]

More

Making Triangles with CSS

0

Making Arrows with CSS Arrows are used all over the web but more often than not, they are created with small little png images. No doubt, this is a viable way to create them but I prefer to limit the amount of images to as small a number as possible on a site. So below, [...]

More

Word-Break CSS Property

0

On a few rare occasions, user generated/produced content could be needed to fill a small text box, be it on a user profile or elsewhere on a site. I have seen once or twice, the text that fills these boxes sometimes overspill the box its in generally because of user error. Though, even if the [...]

More

Missing http in url

0

Recently I have had a number of clients and others ask me why, when im coding, I link to things as //website.com and not http://website.com. It’s a good question and when I first came across it myself I put it down as a mistake on the part of the developer and dismissed it, but then [...]

More

Overlaying Div’s

0

Yesterday I was working on the new Dmnd site that we will be releasing soon. While I was working on it, one of the things we wanted was a lightbox type login form. Everything was going good, I got a nice lightbox opening and closing but there was a problem. I was dimming the background [...]

More

Optimisation.

0

img1

The other day I was coding a script for my twitter trend website Tweetpop, I was coding to script because I want to add more to the site by starting to retrieve lots of random tweets every minute and parse through them to pull out how many characters are in them, how many uppercase, lowercase, [...]

More