Welcome To Snipplr


Everyone's Recent Snippets Tagged html



4 1895 posted 18 years ago by catchamonkey
Use this for background images. Put it in conditional comments in the head of your doc.
3 2348 posted 18 years ago by shellydennison
This code is based on enlaces de paginacin posted by Web Design
2 1810 posted 18 years ago by shellydennison
3 3134 posted 18 years ago by smurf
This is a handy little function that takes the htmlText value of a TextField and ads a specified tag at the beginning and end of the string. Handy for quick formatting tags such as bold, italic, underline, but could be used to add complex style data...
0 1989 posted 18 years ago by discorax
0 2145 posted 18 years ago by realgeeky
Everything is either true or untrue, or both true and untrue, or neither true nor untrue - nagarguna
2 2893 posted 18 years ago by zvasanth
Not mine. Changed from the original it to suit my needs.
2 2040 posted 18 years ago by cubit
Convert headings to have id's with the content of the heading
2 1649 posted 18 years ago by lagrangeapex
0 1779 posted 18 years ago by natalie
These two functions allow you to remove images from html page. The function returns an array of images with the absolute src and,if there are any, the alt and title attributes. Arguments to pass to get_images() are $file = html source and $url = th...
3 2662 posted 18 years ago by gandalf
4 1819 posted 19 years ago by tetotemoza
Script takes links that are not on your domain and opens them in a new window. This code allows for XHTML strict validation and meets Accessibility criteria on opening new windows.
5 2763 posted 19 years ago by skatan
an HTML template for form CSS styling
11 3863 posted 19 years ago by maid450
1 1758 posted 19 years ago by skatan
1 1881 posted 19 years ago by nicolaspar
This function (intended to be an application or view helper) creates a pager bar useful for navigating many pages. It shows the first, last, current, nearby, and halfway-to-end pages. It looks like this (where the current page is 11): < 1 ... 5 .....
1 1593 posted 19 years ago by Agent
Developed for eclipse but prolly useful elsewhere, put the text after 'find' in the 'find' box and the text after 'replace' in 'replace'. Note: this example uses an html list item 'li', make sure to replace that with the tag you want to find
5 2411 posted 19 years ago by rhlowe
Simple template of an standard xHTML Strict document.
1 2002 posted 19 years ago by wintondeshong
3 2680 posted 19 years ago by llbbl
6 3016 posted 19 years ago by llbbl
1 1994 posted 19 years ago by voltadomar
1 2746 posted 19 years ago by axelitus
The above example uses PHP's heredoc syntax. With it, we can completely eliminate PHP tags from the insides of HTML tags.
1 2552 posted 19 years ago by juno
Simply replaces the div's innerHTML with the response text received from the file.
3 3395 posted 19 years ago by 1man
Use this to display a file properly if you are reading it from another location and wish to direct it to the user's browser
0 2280 posted 19 years ago by wolfie
1 2248 posted 19 years ago by drwitt
A great script that will serve up stylesheets based on browser viewport size.
5 2771 posted 19 years ago by aznprncritic