|
Post by Wormopolis on May 5, 2012 15:38:08 GMT -8
glad you like it!
Im eventually releasing the new version that does a double smear (color1 -> color2 -> color1)
|
|
kila
Not New Member
Posts: 16
kila said 0 great things
|
Post by kila on May 30, 2012 8:20:50 GMT -8
I'm baffled, I put this code on my site: <script type="text/javascript"> <!-- // colorSmear usergroups v1.0 // by Wormopolis - [url]www.wormocodes.com[/url] // idea by Nightwalker
function nameSmearUG(groupid,stcolor,endcolor) { for (lnks=document.links, d=0; d<lnks.length; d++) { if (!lnks[d].className.match(/nosmear/) && lnks[d].className.match(new RegExp(groupid+'$','i'))) { tmpv=lnks[d].innerHTML.replace(/<\/?font(.*?)>/gi,''); tmpret=colorSmear(stcolor,tmpv,endcolor); lnks[d].innerHTML=tmpret; } } }
// must have colorSmear function in Global Header above this script // use format nameSmearUG("groupID","startcolor","endcolor");
nameSmearUG("group3","03FF12","103399");
// --> </script> And I read the stuff on the group1 and group11 when I realized I was doing something I shouldn't and it looked all funny and I know it works (now that I loaded explore lol) and it looks pretty sweet but why does only a select few work in chrome, safari, and FF while the rest of them won't work in the same three but all of them work in explore? Is there a way to have the code work for all the browsers? I know I should have it on my test page but I don't have the accounts to check the colors. lol. Ominous Aeon EDIT: okay so Explore will show most of them but not all of them. so out of my curiosity, is there a limit as to how many groups can run with that code?
|
|
|
Post by Wormopolis on May 30, 2012 23:06:27 GMT -8
well its both our faults.
one of your side tables has a link " Kila." that goes to her profile, and is surrounded by bold tags. my code is supposed to strip those tags out but its hitting a glitch for some reason. Im working on that.
but part of this is because if you look at how you edited the code, you have half the calls as nameSmearUG and half of them as nameSmearUF for some reason.
Im looking into fixing my bug, but you will need to fix those function calls.
|
|
|
Post by Wormopolis on May 30, 2012 23:54:38 GMT -8
ok.. updated the global header function to better deal with tags inside of the smear target. grab version 2.0
|
|
kila
Not New Member
Posts: 16
kila said 0 great things
|
Post by kila on May 31, 2012 7:51:24 GMT -8
Thanks again, you rock!!
I'm not sure how I managed to change those but it's corrected and it works. I also learned wherever I have class:"groupID" in the header and/or footer it places in that color smear group. lol.
|
|
|
Post by Wormopolis on May 31, 2012 19:49:44 GMT -8
The code is affecting you header/footer pages?
|
|
kila
Not New Member
Posts: 16
kila said 0 great things
|
Post by kila on Jun 1, 2012 9:52:00 GMT -8
I wouldn't say it effects the head/footer exactly. Like it doesn't mess up any other code. but i had: <a href="http://hogwartsaeon.proboards.com/index.cgi?action=viewprofile&user=admin" class="group8">Kila</a> <a href="http://hogwartsaeon.proboards.com/index.cgi?action=viewprofile&user=kanita" class="group9">Kanita</a>
and the class="group8" used the colorsmear on the names. I don't know if it's suppose to do that but it's neat anyway.
|
|
|
Post by Wormopolis on Jun 1, 2012 19:37:10 GMT -8
Oh thats what you mean. I thought you meant it was converting stuff while you were editing the h/f.
yeah its supposed to go after any link that goes to a profile and has a group name associated with it. if you dont want it to do that, simply add "nosmear" into the group name like
<a href="http://hogwartsaeon.proboards.com/index.cgi?action=viewprofile&user=kanita" class="group9 nosmear">Kanita</a>
|
|
kila
Not New Member
Posts: 16
kila said 0 great things
|
Post by kila on Jun 12, 2012 18:56:31 GMT -8
Ah Okays! ^_^ I don't mind it, I just didn't know it'd do that. lol. Everyone on the site thinks it's pretty sweet.
|
|
|
Post by Wormopolis on Jun 12, 2012 20:00:15 GMT -8
when I get around to it, I will update the sub-codes so they can take advantage of the double smear option that the main header code can do.
|
|
|
Post by Wormopolis on Jun 17, 2012 1:30:59 GMT -8
version updates
header code 2.01: new modes for changing how smear works
UBBC in posts code 1.75: new modes for smear as well as attached to window.onload to speed up page display
|
|