42 Reusable Code Snippet Topics

Remove Filter
Member Avatar for
Member Avatar for Tom_46
Member Avatar for vegaseat

Lots of good instrumental music out on the web in the form of midi files. You can incorporate background music as part of your web page. Here is the short code.

Member Avatar for Johannes_2
0
4K
Member Avatar for Geekitygeek

It is a common design in data handling applications to move from form to form to show the user different information. I have seen any number of different attempts at this on the boards so i thought I'd throw together a short snippet to show a cleaner OO way to …

Member Avatar for jacss1x
1
3K
Member Avatar for JorgeM

When users interact with your web page and processes, it is important to provide them with continuous feedback. Without the feedback, a user is left wondering if you page is actually processing work, frozen, or just not working. This is especially true when incorporating Ajax requests that take more than …

2
1K
Member Avatar for mattster

I was looking for something similar myself a few days ago, and found the odd example of a CSS based monopoly-type game board. To be honest, they were all shabby examples made with code that left my eyes bleeding. I decided to make my own board and get it right …

Member Avatar for pritaeas
2
980
Member Avatar for vegaseat

Here we use the eval() function as the backbone of a simple calculator. One table is used for the display. A second table holds the buttons for the keypad. The whole thing forms an attractive looking calculator. To test it, simply paste the code into an editor like notepad and …

Member Avatar for diafol
1
2K
Member Avatar for Hosmer23

A handy code that brings up a password window to keep others off of the web pages you choose.

Member Avatar for dasabel100
0
760
Member Avatar for Dani

I am often asked how to create a tableless two column CSS layout so I thought I would just post it here for once and for all.

Member Avatar for MidiMagic
2
524
Member Avatar for XEN0
Member Avatar for <M/>

This is just a simple image fade. This is the HTML: <a href="#"><img src="#.png" class="fade"> Pretty simple, right?

Member Avatar for <M/>
0
300
Member Avatar for Tko_1
Member Avatar for Troy III

This code enables you to publish a CSS only with mouse click and keyboard tab image swap. Attached is a Demo example of how it would look on IE6. To ensure the greatest possible cross-browser compatibility/support this code uses CSS level 1 capabilities only. One of extra benefits is that …

Member Avatar for pol.bala
7
2K
Member Avatar for rajesanthu

[COLOR="Red"][B]SIMPLE HTML PROGRAM FOR BEGINNERS[/B][/COLOR] [COLOR="Green"][B]NB:Excuse me experts,,this is for beginners[/B][/COLOR] 1.Copy the file 2.paste it in a new notepad 3.save it with .html/.htm extension 4.chose file type as all type 5.after saving you will find an internet explorer symbol with the name that you'v given while saving,,double click it. …

Member Avatar for chriswelborn
-3
792
Member Avatar for vegaseat

Use onMouseover to change the background color of your webpage. Can be applied to change other things like images and so on.

Member Avatar for TonyG_cyprus
0
3K
Member Avatar for John malt
Member Avatar for happygeek
0
464
Member Avatar for NardCake

Not exactly like googles of course but it looks nice and will get the job done. So first thing of course is the standard HTML document layout. In the header I placed script and style tags since it's a simple project. It is generally good practice to link to other …

Member Avatar for NardCake
1
295
Member Avatar for helloadam

Have you ever wanted a link to go to the bottom of the same page? Well in this snippet you see how.. 1) On the top where is says [quote]<p><a href="#C4">See also Chapter 4.</a></p>[/quote] is a link going to Chatpter 4 at the bottom of the page if you look …

Member Avatar for BuckOneArm
0
878
Member Avatar for JustinsAngel25
Member Avatar for Philippe.Lahaie

We have all been there, you have a centered site and some pages have enough content to fill the screen while some don't. So when you move back and forth between one that does and one that doesn't you see a small jump happen. Here is a small css fix …

Member Avatar for Philippe.Lahaie
0
2K
Member Avatar for Q8iEnG

Dear all, I got a problem with the header in a website that I was working on, now it is nearly published but after I had tested it over several browsers I got a problem with firefox. Check out the header how does it look like: [url]http://www.birthkuwait.com[/url] I'm using Blogger. …

Member Avatar for Q8iEnG
0
238
Member Avatar for essential

You are free to use and modify my layout in any purpose, and I hope you find this useful! Enjoy...

Member Avatar for rotten69
1
210
Member Avatar for tefflox

View the innovative works in action at [URL="http://listenlight.net/13/"][B]http://listenlight.net/13/[/B][/URL]. Or by way of [B][URL="http://digg.com/programming/The_Listenlight_Text_Engine"]http://digg.com/programming/The_Listenlight_Text_Engine[/URL][/B], you may obtain the source under the very liberal MIT License. Cheers -- Jess

Member Avatar for KazmiLahore
0
231
Member Avatar for Hosmer23
Member Avatar for ramisgill
-1
377
Member Avatar for .:.wolvie.:.
Member Avatar for jangirke
0
312
Member Avatar for ApocDen

This is a falling snow snippet Its very light grey its really meant for like dark backgrounds for best effect but its ok on white. its a slightly grey snow Just place the code in between tags and it should work Its too complicated to edit color unless you have …

Member Avatar for softwareforpc
0
240
Member Avatar for stevenpetersen

Include content from one page to another with HTML Code. On the page that you want to put content on just insert <!--#include virtual="YourURL"--> <html> <body> <!--#include virtual="YOUR URL" --> </body> </html>

Member Avatar for diafol
-1
326
Member Avatar for Eddie Traversa

You can use this code to embed the windows media player in html pages. Just set the controls to suit and change file names etc..

Member Avatar for almostbob
-1
652
Member Avatar for miguel1810

Hi, I'm trying to work out how I can change my back ground image when the user clicks the home link - or refreshes the page... I'd love my background image to change from the current static background image... is this HTML or JAVA ?? Can anyone advise ? Thanks …

0
194
Member Avatar for roryt

This piece of css will show you that it is perfectly possibly to create a good looking navigation bar without any images or javascript and just a couple of lines of css. All you need to do is create a html file that contains a unordered list in it with …

Member Avatar for ko ko
1
277
Member Avatar for essential

A two columned fixed layout with vertical navigation sample. Now all it needs is your great imagination. Hope you find this useful, and help you all the way in your web activities. Enjoy...

0
182

The End.