ControlC
· Pastebin
Login
Register
ControlC
/
Create paste
Paste content
Up to 100 KB of text. BBCode formatting is supported.
Title
- optional
Content
B
I
U
S
</>
Colors ↓
Sizes ↓
Size 1
Size 2
Size 3
Size 4
Size 5
Size 6
Size 7
<script type='text/javascript'>\r\nfunction smartLink(){\r\n this.keywdHref = new Object();\r\n this.add = function(keyword, href){\r\n if(keyword.substr(0,1) != " "){keyword = " " + keyword;}\r\n this.keywdHref[keyword] = href;\r\n }\r\n this.createAnchor = function(){\r\n var objs = document.getElementsByTagName("div");\r\n for(var i=0; i<objs.length; i++){\r\n var obj = objs[i];\r\n if(obj.className.indexOf("post-body")>-1){\r\n var content = obj.innerHTML;\r\n for(var keyword in this.keywdHref){\r\n var href = this.keywdHref[keyword];\r\n var newstr = content.replace(keyword, "<a href='"+href+"'>"+keyword+"</a>", "gi");\r\n obj.innerHTML = newstr;\r\n content = newstr;\r\n }\r\n }\r\n }\r\n }\r\n this.startScript = function(){\r\n var onLoad = window.onload;\r\n window.onload = function(){\r\n if(onLoad){onLoad();}\r\n setTimeout("f.createAnchor()", 100);\r\n }\r\n }\r\n}\r\n</script>\r\n<script type='text/javascript'>\r\nvar f = new smartLink();\r\nf.add("Komunikasi", "http://www.hainusantara.com");\r\nf.startScript();\r\n</script>
Password
Anyone with the link will still need this password to view.
Expires
1 hour
3 hours
6 hours
12 hours
24 hours
48 hours
72 hours
Sign in to enable "Never expires".
Create paste
Please verify you are human
Cancel