webcodebase.com Snippets database & Pastebin

Display google pagerank

Codebase » PHP PHP

Do you want the users to see your websites pagerank? or perhaps the pageranks of other websites? this snippet will do that.

Hits 124 | Comments 3 |

Refresh page every X seconds

Codebase » Other PHP

Just edit the X and put the amount of seconds.

Hits 108 | Comments 1 |

Christmas Countdown 2008 (No IFRAME)

Codebase » JavaScript PHP

Just put this code where you want it to appear, will not update without the pageviewers page refreshing.

Hits 130 | Comments 3 |

Christmas Countdown 2008 (IFramed to update every Second)

Codebase » JavaScript PHP

Just put the code anywhere in your page, it is IFramed so it can reload every second without making your whole page reload, and without making the viewers PC lag at all.

Hits 144 | Comments 3 |

Display a different page if the user is not unique (based on cookies)

Codebase » PHP PHP

Ever wanted to show a different page if a user is not unique? Or perhaps protect a user from reloading the page? This script will do all of that and more!. Everything is commented with great detail.

Hits 145 | Comments 3 |

Image opacity in CSS

Codebase » CSS PHP

This works on both IE and on Mozilla. It sets the opacity of a image (on hover in this example).

Hits 127 | Comments 2 |

Style a button to look like a link

Codebase » CSS PHP

This makes a button look like a text-link.

Hits 116 | Comments 2 |

Get elements by class name

Codebase » JavaScript PHP

Return elements by class name given a parent node.

Hits 101 | Comments 2 |

Listing all files in a directory

Codebase » PHP PHP

A simple script for listing and outputting the files of a directory. Example for both a set directory and a $_GET directory.

Hits 127 | Comments 2 |

Find next sibling of a element given a search tag name

Codebase » JavaScript PHP

Find next sibling of a element given a search tag name

Hits 108 | Comments 3 |


Latest News