Revision: 54532
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at January 2, 2012 01:38 by Schart
Initial Code
<!doctype html>
<html>
<head>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script>
<script>
$(function() {
$.fn.tweetify = function() {
this.each(function() {
$(this).html(
$(this).html() .replace(/((ftp|http|https):\/\/(\w+:{0,1}\w*@)?(\S+)(:[0-9]+)?(\/|\/([\w#!:.?+=&%@!\-\/]))?)/gi,'<a href="$1">$1</a>')
.replace(/(^|\s)@(\w+)/g,'$1<a href="http://wc.wchosting.tk/$2">@$2</a>')
);
});
return $(this);
}
$("#div").tweetify();
});
</script>
</head>
<body>
<div id="div">
@schart - Link
</div>
@schart - Not link
</body>
</html>
Initial URL
http://www.wc.wchosting.tk
Initial Description
Made for WebCloud.
Initial Title
Modified Tweetify for WebCloud
Initial Tags
url, jquery, user
Initial Language
jQuery