Welcome To Snipplr


Everyone's Recent Snippets Tagged html



1 ... 13 14 15 16 17 ... 25
Piece of cake and easy to use
0 1658 posted 16 years ago by shapeshifta
Modified version of the script created by Dave Stevens, Enables the user to input their credentials on a webpage rather than having to change the actual php script code. Changes: Changed $user,$pass,$term This is a modified script, the original...
0 1910 posted 16 years ago by jonathonmaguire
I used to directly inject javascript and CSS into my HEAD elements just like you see in all of the tutorials online and in books. Recently I decided to try a different approach, and I feel this is more in keeping with the ruby and rails "declaration"...
0 1931 posted 16 years ago by sgtrock
I used to directly inject javascript and CSS into my HEAD elements just like you see in all of the tutorials online and in books. Recently I decided to try a different approach, and I feel this is more in keeping with the ruby and rails "declaration"...
0 1842 posted 16 years ago by sgtrock
A PHP class that creates html controls
1 1643 posted 16 years ago by mpcircuitry
This class uses static methods to create html controls on the fly in .NET
2 1841 posted 16 years ago by mpcircuitry
url: http://www.example.com/?foo=bar usage: $_GET['foo'] // 'bar'
0 1297 posted 16 years ago by nate63179
1 3616 posted 16 years ago by secondfret
This is an regular expression to match an HTML Tag from a given input.
0 1683 posted 16 years ago by rupakdhiman
The following is a list of any conditional comment you'd probably ever need for targeting any version of IE.
1 1575 posted 16 years ago by benwasilewski
The code to find all objects from a model and use them as select options.
1 1790 posted 16 years ago by smoothdzion
0 1548 posted 16 years ago by yisreldov
0 3712 posted 16 years ago by morvan
For some reason, Snipplr has decided not to HTML-encode <code>&lt;</code> and <code>&gt;</code> signs (i.e., replacing them with `&lt;` and `&gt;`) that a user inputs into a comment box, and instead strips anything that looks like a tag from the comm...
0 1762 posted 16 years ago by wizard04
Do you every wanted to clean and perfectly intent your xhtml document?
1 1457 posted 16 years ago by tillkruess
I first posted this code on my http://sitefromscratch.com site, but I decided to repost it up here on snipplr.com with some of the most recent modifications I've made. This code validates through W3C Strict XHTML Standards.
14 4088 posted 16 years ago by smoothdzion
This code will allow you to have a full screen iframe with a header like a lot of sites do when navigating outside their site or featuring templates and things. Reference your CSS however you want. The HTML is necessary how it is, but add any addit...
1 2740 posted 16 years ago by smoothdzion
This example uses file_get_contents to retrieve remote HTML. From there, we can parse through it using PHP5's DOMDocument and DOMXpath. XPath Queries are easy to create using the Firefox extension "XPather"
3 3224 posted 16 years ago by adamcoulombe
1 1410 posted 16 years ago by inthewayboy
AS3 does some weird things with HTML. Here are a few ways to handle common problems. The worst offender that many people encounter is double carriage returns. Regex those nasty buggers into oblivion (aka \n)!
0 1576 posted 16 years ago by trevorhartman
1 1313 posted 16 years ago by bluestan
0 1221 posted 16 years ago by stancox
Very easy to use and helps keep browsers from jumbling your email up.
0 1395 posted 16 years ago by dmautz1
Price table sample markup UPDATE 1: with CSS styles
0 1345 posted 16 years ago by dreadwarrior
This is handy for cleaning up your HTML to use more plain text and fewer img tags. Whether this is SEO friendly or not is subjective. I tend to think it's fine as long as you don't use it for spam. Digg implements a similar method for their main logo...
1 2272 posted 16 years ago by adamcoulombe
no need for Lorem ipsum if you can insert something that makes more sense and even helps you address more HTML elements with the CSS you're about to write.
1 1562 posted 16 years ago by iroybot
[Credit - Sam Allen, Dot Net Perls](http://dotnetperls.com/remove-html-tags)
2 2274 posted 16 years ago by jasonseney
1 ... 13 14 15 16 17 ... 25