
Twitter Autolink is a small jQuery plugin that rewrites hyperlinks (URLs, electronic mail addresses, @mentions, and #hashtags) in plaintext tweets as acceptable hyperlinks.
The way it works:
It’s going to flip the next html components:
<p class="tweet">Web site: https://www.jqueryscript.internet</p> <p class="tweet">Key phrase: #jquery</p> <p class="tweet">Comply with us: @jqueryscript</p> <p class="tweet">E mail: [email protected]</p>
Into these…
<p class="tweet">Web site: <a href="https://www.jqueryscript.internet">https://www.jqueryscript.internet</a></p> <p class="tweet">Key phrase: <a href="http://twitter.com/search/%23jquery">#jquery</a></p> <p class="tweet">Comply with us: <a href="http://twitter.com/jqueryscript">@jqueryscript</a></p> <p class="tweet">E mail: <a href="mailto:[email protected]">[email protected]</a></p>
The best way to use it:
1. Embody jQuery javascript library and jQuery Twitter Autolink on the backside of your web page to cut back the web page load time.
<script src="http://code.jquery.com/jquery-latest.min.js"></script> <script src="jquery.twitter.autolink.min.js"></script>
2. Name the plugin on the goal textual content content material. That is it.
$(doc).prepared(perform() { $(".tweet").twitter_autolink(); });
This superior jQuery plugin is developed by thinkswan. For extra Superior Usages, please test the demo web page or go to the official web site.