Welcome To Snipplr
Everyone's Recent Snippets Tagged link
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
To correct the shift that happens on hover when the weight of the link is normal, but bold on hover.
0
854
posted 10 years ago by stephcode
In wordpress, if you want to auto convert all URLs in your string into clickable hyperlinks, you can actually do it using the built-in function make_clickable().
If you need to do that outside of wordpress, you can use the same function.
Example...
2
1755
posted 11 years ago by fackz
Here's the basic principal behind spiders. (ex: <a href="http://giochiflash.123homepage.it">Giochi Flash</a> $html = file_get_contents('http://www.example.com');
6
3616
posted 11 years ago by haydin
Cross-browser roll link effect in CSS3. Works in IE 10+, Webkit (Chrome/Safari/etc), Opera, Gecko (Firefox/Seamonkey/etc). Degrades nicely for unsupported browsers.
0
744
posted 11 years ago by bmayzure
A simple CSS3 link-color transition effect. Fades from the base color to the active/focus color and back on rollover. A nice little added effect that's pretty well cross browser. Works with Webkit (Chrome/Safari/etc), Opera, Gecko (Firefox/Seamonkey/...
1
816
posted 11 years ago by bmayzure
Ask the user with a confirmation dialog if the link should be followed or not.
0
562
posted 11 years ago by gummiost
Snippet obtained from Stackoverflow courtesy of [Loki Astari](http://stackoverflow.com/a/130428)
0
898
posted 11 years ago by symsec
IE6 and IE7 don't respect the 'outline' attribute for hyperlinks. This jQuery snippet removes the annoying outline in these browsers.
0
891
posted 12 years ago by Huskie
Convert a form submit button code to a hyperlink code and hide the form
0
628
posted 12 years ago by pavlosvos
Link to the current theme / template url for use in wordpress template.
0
644
posted 12 years ago by carouselcreative
On screen:
Click here to see the pics!
On print:
Click here [link: http://www.shabada.boh] to see the pics!
0
625
posted 12 years ago by claudiowebdesign
A user may click a link on a mobile site which should open a page on the desktop site, not the mobile site. Appending the following code to the link will do that.
0
876
posted 12 years ago by amandalaine
use <?php>/images/someimage.gif
Such a path resolves to ..
http://www.yoursite.com/wp-content/themes/YOURTHEME/images/someimage.gif
0
571
posted 12 years ago by disgruntledillon
Use Facebook's sharer to easily post status updates to Facebook. The three meta tags control the default content Facebook pulls to create the post.
0
630
posted 12 years ago by dmertl
Dieses Typoscript wrappt den More-Link und umschließt ihn mit dem <p>-Tag, sowie fügt ihm die Klasse ".news-latest-morelink" bei.
Entwickelt von <a href="http://www.maddesigns.de">Sven Wolfermann</a>.
0
758
posted 12 years ago by kopfaction
<p>usage: <br>
<code><a href="" onclick="recordOutboundLink(link, category, action, opt_label, opt_value);return false;"> <br>
<form id="uniqueID" onsubmit="trackFormSubmit(form, category, action, opt_label, opt_value);return false;"></...
0
1022
posted 13 years ago by freezy
Returns the video id for any type of youtube url that holds one.
2
1085
posted 13 years ago by KabuqueJoe