Welcome To Snipplr
Everyone's Recent Snippets Tagged link
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
For when you sometimes forget the precise syntax. First is from html, second from css file.
0
891
posted 14 years ago by rumremix
Use this little bit of CSS to get rid of the active link dotted border in Firefox. A must have when doing the text-indent:-9000px; image replacement technique on links.
0
1003
posted 15 years ago by toddaeverett
Here is a nice snippet to open links in pop-up windows. Just add the popup css class to your link to make it work.
3
1000
posted 15 years ago by math89
The target="blank" attribute is not valid XHTML 1.0 Strict.
using jQuery, you can achieve the same functionality without having validation problems.
0
786
posted 15 years ago by math89
Some times you need to accept some url as input but users seldom add http:// to it, this code will add http:// to the URL if it’s not there.
1
936
posted 15 years ago by paulgrenwood
Summarised snippet of Natbat's article: http://natbat.net/2009/Jun/10/styling-buttons-as-links/
Any link that that initiates an action, rather than just changing a page should semantically be a form with a submit button not a l ink. However you ca...
3
1355
posted 15 years ago by PeteW
From Liviu HolhoÅŸ - Blog
http://blog.liviuholhos.com/javascript/add-a-favicon-near-external-links-with-jquery
4
1389
posted 15 years ago by batamire
When using `ln` to create a link in a different directory, the semantics of creating hard and symbolic links differ. That is because a hard link contains a direct reference to its target's data, while a symbolic link is just a string containing a (p...
1
917
posted 15 years ago by deepsoul
this function formats a web address for use in a link.<br>
echo formatWebAddress("google.com");<br>
http://www.google.com/
1
782
posted 15 years ago by jlvallelonga
Doesn't work in IE6, so use this to enhance sites rather than use thenm for required information. Very handy for adding a PDF icon behind a link. Make icons very small (16px x 16px) and with transparent space on left and top to make it look more al...
4
796
posted 15 years ago by carriegates