Welcome To Snipplr
Everyone's Recent Snippets
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
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
3877
posted 12 years ago by rwunsch
Replace the code below in your templates 'media.phtml' file. This has mouseover and mouseout but can be removed it needed.
0
778
posted 12 years ago by TheJasonParker
There are a couple of steps involved to connect to an SAP web service. Really, its about the same as connecting to a regular ASMX web service, using the .ajax() function. Make sure you have a WSDL with the function and connection information. I recom...
0
1405
posted 12 years ago by mattvbiggs
Thank you marcg for posting this on Snipplr http://stackoverflow.com/questions/1379994/detect-when-a-specific-image-has-finished-loading
0
826
posted 12 years ago by focal55
Thank you Jonathan Sampson for posting this on http://stackoverflow.com/questions/2050789/php-search-a-string-for-a-email-address
0
1368
posted 12 years ago by focal55
I hate manually entering in tons of numbers and tags for numbers, so I made a loop for it.
0
913
posted 12 years ago by JonnyCraze
This piece of code will read a hex argument such as: ff or ab from your command line and stores it as a integer
0
2477
posted 12 years ago by vdevos
A crude script to query the GitHub API for a given Organisation, and backup its repositories and associated members forks.
0
1151
posted 12 years ago by slinky
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
2301
posted 12 years ago by EvanHahn
Here's how to use this:
* To access something in the local storage, type `Evan.local('name')`. You may need to use `JSON.parse()` on this result. Returns `null` if nothing's there.
* To assign something in the local storage, type `Evan.local('nam...
1
770
posted 12 years ago by EvanHahn
This prepends a `#` if it's not already there. Useful when doing jQuery selectors.
0
629
posted 12 years ago by EvanHahn
`Object.create(null)` is a more memory-efficient way to make objects, but it's not supported in all versions of JavaScript, so you can do the "old-fashioned" `{}` if that function isn't available.
0
867
posted 12 years ago by EvanHahn
Just came across pure css3 soothing clouds, looks awesome, checkout!
0
858
posted 12 years ago by jimmy101
Use:
<script>
$(document).ready(function(){
$("#input").forceNumeric();
});
</script>
1
771
posted 12 years ago by itsmeameer
This snippet will exclude the featured image from the attached images (gallery)
0
701
posted 12 years ago by nerdsane