Welcome To Snipplr
Everyone's Recent JavaScript Snippets
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
.zz1_logoLinkId_1
{
color: #fff;
background-image:url("/_layouts/Images/HLLMRKLINK/Logo.gif");
background-repeat:no-repeat;
background-position:15px 10px;
background-color:#67507e;
display:block;
width: 170px;
height: 88px;
overflo...
0
836
posted 13 years ago by nickaranz
We use our own dialog code, but the jQuery method of creating an overlay works well, so this is taken from the jQuery UI code and simplified.
0
717
posted 13 years ago by mejamiewilson
Copy and paste this code into the URL box and press enter. You will see it happen in realtime. Make sure all of your friends are loaded first, as Facebook uses lazy loading! To learn more, visit my blog post on it at http://www.brettwidmann.com/2011/...
0
758
posted 13 years ago by goatboy91587
This is a simple example of the google maps javascript API v3. If you want a map with a marker this is the minimum you need to do to get it done. Theres more talk about how it's all set up, and how to use the other static image map as well at the lin...
1
945
posted 13 years ago by FatFolderDesigner
Usage:
Let's say we have an url: http://primera.vremenno.net?foo=yes&bar=no
var hash = getUrlVars();
alert(hash['foo']); // returns 'yes'
alert(hash['bar']); // returns 'no'
0
1023
posted 13 years ago by a1ias
Description: A function that add a class to an element if the element doesn't have anyone, if it already has one, add a new class name.
Arguments: The elemento to which you want to add the class and the name of the class you want to add.
From boo...
0
893
posted 13 years ago by alberomo
Description: Execute different functions when the page loads in a better way than default onload JS event. Include it in the end of the JS document.
Arguments: Name of the function that you want to execute when the page loads.
Author: Simon Williso...
0
846
posted 13 years ago by alberomo
jLim is a small JavaScript base code. It can be used to built your own JavaScript library or framework.
0
915
posted 13 years ago by freelancephp
If you are struggling against some problems with google maps and tabs be aware that, in order to avoid problems, jQuery sets the width & height of every hidden element to Zero.
To fix this problem all you have to do is trigger the resize event and...
0
879
posted 13 years ago by Whiteagle
Envia un mensaje a los amigos desde method send de facebook graph
0
741
posted 13 years ago by serialk89
The html5.js and must be inserted in the head element (this is because IE needs to know about the element before it comes to render them - so it can't sit in the footer of the page, i.e. below the elements in question).
0
818
posted 13 years ago by blantonious
This small javascript hides the table that holds statistical counters on hotdog.hu profile pages [footer part].
0
569
posted 13 years ago by Oroborus9