|
Post by Streamstrider on Jul 18, 2011 12:51:50 GMT -8
Alrighty, so what I'm thinking about doing is adding a link to, say, a c-box, at the right of the In Character category bars. (But I want to keep the title of the category on the left as usual.)
Possible?
|
|
|
Post by Wormopolis on Jul 18, 2011 21:09:25 GMT -8
do the links go to different places or all to the same place?
|
|
|
Post by Streamstrider on Jul 18, 2011 21:36:23 GMT -8
They would all be different links. Basically, I want to put a link to an IC-Box specifically for each of the role play categories.
|
|
|
Post by Wormopolis on Jul 18, 2011 23:43:38 GMT -8
possible!
it will require an array of the cat ids in order to put unique links in the correct places.
stay tuned.
|
|
|
Post by Streamstrider on Aug 20, 2011 20:38:06 GMT -8
|
|
|
Post by Streamstrider on Sept 23, 2011 21:44:50 GMT -8
Bumping, as I often do after a month. XD
|
|
|
Post by Wormopolis on Sept 24, 2011 9:27:43 GMT -8
crap I totally forgot about this one. adding to the list for the weekend.
|
|
|
Post by Streamstrider on Sept 24, 2011 15:27:31 GMT -8
Lol. It's okay. I'm forgetful about a lot of things so I can understand. XD No rush!
|
|
|
Post by Wormopolis on Sept 24, 2011 19:15:15 GMT -8
<script type="text/javascript"> <!-- // add link to right of specific categories // by Wormopolis - www.wormocodes.com // do not repost - keep header intact
var catLinkArray=new Array(); catLinkArray['general']=['<font color="#FF0000">Hooray</font>','http://www.yahoo.com']; catLinkArray['categ4']=['<font color="#00FFFF">Wormo</font>','http://www.wormocodes.com']; catLinkArray['CATID']=['INNERHTML FOR LINK','HREF FOR LINK'];
for (td=document.getElementsByTagName('td'), tt=0; tt<td.length; tt++) { if (td[tt].className=='catbg' && td[tt].getElementsByTagName('a')[0] && td[tt].getElementsByTagName('a')[0].name) { if (catLinkArray[td[tt].getElementsByTagName('a')[0].name]) { var holdme=catLinkArray[td[tt].getElementsByTagName('a')[0].name]; var nwlnk=document.createElement('a'); nwlnk.style.cssFloat="right"; nwlnk.href=holdme[1]; nwlnk.innerHTML=holdme[0]; td[tt].appendChild(nwlnk); } } }
// --> </script>
try that in main footer.
|
|
|
Post by Streamstrider on Sept 25, 2011 16:46:14 GMT -8
Awesome! It works! Is there any way to have it so that it opens in a new window (or tab, first, if able)?
|
|
|
Post by Wormopolis on Sept 25, 2011 18:01:16 GMT -8
after thi sline
nwlnk.style.cssFloat="right"; nwlnk.href=holdme[1]; nwlnk.innerHTML=holdme[0];
put this
nwlnk.target="_blank";
|
|
|
Post by Streamstrider on Sept 25, 2011 19:12:52 GMT -8
Woot! Do you think it would be okay for me to add this code to my forum's database? (since you have "do not repost" in the title) It would link back to this thread (and later to the database thread here if it's added).
|
|
|
Post by Wormopolis on Sept 25, 2011 19:15:41 GMT -8
that would be fine. sent you a PM
|
|
|
Post by Streamstrider on Sept 25, 2011 19:23:01 GMT -8
Thank you! And thanks for the awesome colorsmear.
|
|
|
Post by Wormopolis on Sept 25, 2011 19:25:11 GMT -8
it actually gave me an idea for a new version of smear display names...
|
|