Welcome To Snipplr
Everyone's Recent Snippets Tagged html
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
Removes $ from HTML form post, allows only number and decimal points. Has $ display in field but disappear when onfocus.
1
938
posted 11 years ago by lromak
jQuery Mobile <head> template with needed css and js from CDN.
From http://http://jquerymobile.com/
0
894
posted 11 years ago by goo
CSS3 Ajax Loading Animation
========
This is a simulation for the popular gif animated images. The reason why i choose to do it in css3 is the flexibility of re-using it in different sizes, different colors and the transparency issues in gif anim...
1
903
posted 11 years ago by MohamedAlaa
PHP
HTML Helper Function Create Any Element With Any Number Of Attributes (self-closing and container tags)
/**
* THIS FUNCTION WILL RENDER A CONTAINER OR SELF-CLOSING HTML ELEMENT.
* IT AUTO DETECTS WHAT TYPE YOU WANT
* BASED ON RATHER OR NOT YOU SET A _data KEY IN THE ARRAY OF
* ATTRIBUTES PASSED TO THE FUNCTION
*
* USING AN ASSOCIATIVE ARRA...
0
971
posted 12 years ago by halk
The marquee will stop when you hover the cursor over it. It will restart when you move the cursor away from it.
1
889
posted 12 years ago by o0110o
Shows how to use WebClient class to retrieve HTML from an URL and then to use HtmlAgilityPack to parse it.
1
1406
posted 12 years ago by denakitan
table with image on one side, products info on the other.
includes some CSS from Tablizer that has been modified.
0
815
posted 12 years ago by dcoxdesigns
Conforming XHTML 1.0 Strict Template - The Web Standards Project
1
1102
posted 12 years ago by thesmu
Conforming XHTML 1.0 Transitional Template - The Web Standards Project
1
1028
posted 12 years ago by thesmu
The Command pattern aims to encapsulate method invocation, requests or operations
into a single object and gives you the ability to both parameterize and pass method calls
around that can be executed at your discretion. In addition, it enables you...
0
712
posted 12 years ago by timsommer
In software engineering, a mediator is a behavioral design pattern that allows us to
expose a unified interface through which the different parts of a system may communicate. If it appears a system may have too many direct relationships between modu...
0
724
posted 12 years ago by timsommer
A complete lightbox with minimal code and full functionality: close button, close on escape keypress, close on lightbox blur event.
1
723
posted 12 years ago by mortu
List of websafe fonts. Websafe (or "web safe", "safe for the web") fonts are supposedly fonts that are common among all versions of Windows, Mac, Linux, etc. Fonts that you expect everyone viewing your webpage to have.
0
861
posted 12 years ago by praveensewak
Zen Coding HTML Full Page: wrapper DIV with UL nav + content DIV + footer DIV
2
1174
posted 12 years ago by s3rgi0
Here’s a very simple script which adds numbers sequentially to an unordered list using jQuery
0
831
posted 12 years ago by satie83
PHP
Remove / Replace - href / anchor /link - in html /string - preg_replace - php - regex - regular expression
Replaces all links within href part of anchor in a HTML-String.
1
3863
posted 12 years ago by rwunsch
Add the "no-js" class to your topmost html element, so you can use CSS to style JavaScript-free pages. This snippet will then replace that tag with "js", allowing you to style pages with JavaScript.
The excellent [HTML5 Boilerplate](http://html5bo...
0
2290
posted 12 years ago by EvanHahn
The below script list out the available tags based on the character you enter in the Tag field and the available tags in the array. All the user submitted tags through the Tag form will be stored in an array. Use the below script to enable the auto-c...
1
821
posted 12 years ago by aruldave
this code is used to remove the html code in the given string
1
802
posted 12 years ago by satinfo30
Very simple form search box
Here for play coded http://undercover-blogger.blogspot.com/p/html-editor.html
0
903
posted 12 years ago by BebenKoben