CåñåÐå™
Senior Poster
[M:0]
v5 Beta Tester
Posts: 74
|
Post by CåñåÐå™ on Nov 28, 2010 7:48:29 GMT
|
|
edenwax
VIP
v5 Beta Tester[M:5000]
Posts: 1,266
|
Post by edenwax on Nov 28, 2010 8:19:14 GMT
a:hover { color: #randomcolor; }
|
|
Cam
Administrator
[M:5000]
Posts: 6,381
|
Post by Cam on Nov 28, 2010 8:28:41 GMT
But don't you want it in a post??
|
|
|
Post by Nightwalker on Nov 28, 2010 16:56:19 GMT
If it is in a post you would use this
[url=www.urlhere.com][color=randomcolor]whatever you want the url to say[/color][/url]
|
|
CåñåÐå™
Senior Poster
[M:0]
v5 Beta Tester
Posts: 74
|
Post by CåñåÐå™ on Nov 28, 2010 17:25:19 GMT
Thanks for the help guys .
|
|
russellr
Elite Level 1
[M:5000]
rCs?
Posts: 525
|
Post by russellr on Nov 28, 2010 21:23:25 GMT
I could adjust the prompt link code to add the colour part in if you want?
|
|
CåñåÐå™
Senior Poster
[M:0]
v5 Beta Tester
Posts: 74
|
Post by CåñåÐå™ on Nov 28, 2010 21:26:57 GMT
That will be great . Thanks Russell .
|
|
russellr
Elite Level 1
[M:5000]
rCs?
Posts: 525
|
Post by russellr on Nov 28, 2010 21:33:58 GMT
Ok here you go <script type="text/javascript"> //Written By Russell //rjb.im //Better Linking
var link_img = "http://images.proboards.com/new/url.png";
function show_prompt() { var title=prompt("Link Title","..."); var url=prompt("Like URL","http://"); var col=prompt("Colour?","Red"); if (title!=null && title!="" && url!=null && url!="" && col!=null && col!="") { document.postForm.message.value += "[url=" + url + "][color="+col+"]" + title + "[/color][/url]"; } } var lKt = document.getElementsByTagName('td'); for(k=0;k<lKt.length;k++){ if(lKt[k].className=="windowbg2" && lKt[k].innerHTML.match(/Message/i) && lKt[k].width=="30%"){ lKt[k].innerHTML += "<p><a href='javascript: void(0)' onclick='show_prompt()'><img src='"+link_img+"' border='0' /></a></p>"; }} </script>
|
|
CåñåÐå™
Senior Poster
[M:0]
v5 Beta Tester
Posts: 74
|
Post by CåñåÐå™ on Nov 28, 2010 23:12:53 GMT
It works perfect thank you Russell .
|
|