Welcome To Snipplr
Everyone's Recent Snippets
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
Returns last word of a string (words separated by blanks). if string does not have any blanks, it will return the whole string.
1
1291
posted 16 years ago by fischkopp
Will return a string that has any matched URLs wrapped in `<a>` tags.
Example: `"This is a link to http://foobar.com . Please visit !"`
Becomes: `"This is a link to <a href='http://foobar.com'>http://foobar.com</a> . Please visit!"`
Note: Op...
2
5735
posted 16 years ago by jasonseney
Lets you get YouTube video scene images by video id or youtube video url using only javascript OR jQuery.
5
2555
posted 16 years ago by Uzbekjon
include this snippet in your sites to force InternetExplorer 8 to display your site like InternetExplorer 7
In summary, IE7 compatibility support looks as follows:
IE=7
Display in IE7 Standards mode; Already supported in the IE8 Beta 1 relea...
3
2761
posted 16 years ago by tobaco
Here is a small function [[lobo235](http://www.netlobo.com/javascript_tooltips.html "Javascript Tool-tips")] wrote that will parse the window.location.href value and return the value for the parameter you specify. It does this using javascript's buil...
1
3168
posted 16 years ago by nelsnelson
This works with the standard video player component in Flash CS3.
Throw this actionscript in the first frame. Name your video player "videoPlayer" within Flash.
Then in the HTML markup object tag:
param name=FlashVars value="url=PathToVideo.flv...
0
1074
posted 16 years ago by relaxasaurus
Super simple output of browser version. Redundantly outputs the same info using both asp and javascript.
0
1358
posted 16 years ago by squaretone
A quick and easy function that will output table column names and loop through your SQL recordset results outputting it into a HTML table.
2
1968
posted 16 years ago by neal_grosskopf