The Warring States of NPF  

Go Back   The Warring States of NPF > Forum Info > Forum related stuff
User Name
Password
FAQ Members List Calendar Today's Posts Join Chat

Reply
  Click to unhide all tags.Click to hide all tags.  
Thread Tools Display Modes
Unread 11-03-2010, 07:41 PM   #1
bluestarultor
Blue Psychic, Programmer
 
bluestarultor's Avatar
 
Join Date: Feb 2007
Location: Home!
Posts: 8,814
bluestarultor is one of Jay-Z's 99 problems. Possibly two. bluestarultor is one of Jay-Z's 99 problems. Possibly two. bluestarultor is one of Jay-Z's 99 problems. Possibly two. bluestarultor is one of Jay-Z's 99 problems. Possibly two. bluestarultor is one of Jay-Z's 99 problems. Possibly two. bluestarultor is one of Jay-Z's 99 problems. Possibly two. bluestarultor is one of Jay-Z's 99 problems. Possibly two. bluestarultor is one of Jay-Z's 99 problems. Possibly two. bluestarultor is one of Jay-Z's 99 problems. Possibly two. bluestarultor is one of Jay-Z's 99 problems. Possibly two.
Visual Arts Implementing glow tags?

I was just futzing around on FF Wiki playing with CSS and was once more reminded of the ability to put a glow effect on text. I've had the idea bumping around for ages, but every time it came to mind, I never asked. Implementing the tags would be pretty easy and the best part is the text and glow colors can be entirely separate.

I have an example set up on FF Wiki using both our post background colors: http://finalfantasy.wikia.com/wiki/U...andbox#For_me:

The code is pretty simple. All you need for a proper glow on NPF is four passes with the same color. The code I used is here:

Code:
<span style="color:white; text-shadow: 0 0 0.2em #0080FF, 0 0 0.2em #0080FF, 0 0 0.2em #0080FF, 0 0 0.2em #0080FF">This is a glow test.</span>
In a more general sense, the needed code to implement it here would be:

Code:
<span style="text-shadow: 0 0 0.2em {color}, 0 0 0.2em {color}, 0 0 0.2em {color}, 0 0 0.2em {color}">[text goes here]</span>

I just thought I'd throw that out there.


As a warning, it doesn't work in Explorer. IE has some other, much more complex, means of getting the same effect. I assume it works in most other browsers, though, since they're more CSS-compliant.
__________________
Quote:
Originally Posted by Drake Clawfang
Aerith is clearly the most badass character ever. She saves the world. Twice. While dead. No one else can claim that, can they?
I'm gone from here for good. This place gave me many memories to take with me and shaped me greatly. I still care about you guys. I just can't stay.

Journal | Twitter | FF Wiki (Talk) | Projects | Site
bluestarultor is offline Add to bluestarultor's Reputation   Reply With Quote
Unread 11-03-2010, 08:04 PM   #2
synkr0nized
synk-ism
 
synkr0nized's Avatar
 
Join Date: Nov 2003
Location: throughout the Wired
Posts: 6,857
synkr0nized isn't just above the law -- they are the law. synkr0nized isn't just above the law -- they are the law. synkr0nized isn't just above the law -- they are the law. synkr0nized isn't just above the law -- they are the law. synkr0nized isn't just above the law -- they are the law. synkr0nized isn't just above the law -- they are the law. synkr0nized isn't just above the law -- they are the law. synkr0nized isn't just above the law -- they are the law. synkr0nized isn't just above the law -- they are the law. synkr0nized isn't just above the law -- they are the law. synkr0nized isn't just above the law -- they are the law.
Send a message via ICQ to synkr0nized Send a message via AIM to synkr0nized Send a message via MSN to synkr0nized Send a message via Skype™ to synkr0nized
Default That won't be abused. :D

Do you know the CSS required for IE to render this as well? I truly hate providing formatting that is not visible regardless of browsers, so if we had both and could drop in CSS that will handle it correctly depending on the client's browser that would be better (in my opinion).
__________________

Find love.
synkr0nized is offline Add to synkr0nized's Reputation   Reply With Quote
Unread 11-03-2010, 08:15 PM   #3
bluestarultor
Blue Psychic, Programmer
 
bluestarultor's Avatar
 
Join Date: Feb 2007
Location: Home!
Posts: 8,814
bluestarultor is one of Jay-Z's 99 problems. Possibly two. bluestarultor is one of Jay-Z's 99 problems. Possibly two. bluestarultor is one of Jay-Z's 99 problems. Possibly two. bluestarultor is one of Jay-Z's 99 problems. Possibly two. bluestarultor is one of Jay-Z's 99 problems. Possibly two. bluestarultor is one of Jay-Z's 99 problems. Possibly two. bluestarultor is one of Jay-Z's 99 problems. Possibly two. bluestarultor is one of Jay-Z's 99 problems. Possibly two. bluestarultor is one of Jay-Z's 99 problems. Possibly two. bluestarultor is one of Jay-Z's 99 problems. Possibly two.
Default

Quote:
Originally Posted by synkr0nized View Post
Do you know the CSS required for IE to render this as well? I truly hate providing formatting that is not visible regardless of browsers, so if we had both and could drop in CSS that will handle it correctly depending on the client's browser that would be better (in my opinion).
I'll have to do some research. I know it's possible from my classes, but I don't know if I still have the code bumping around somewhere. I'll post an edit.
__________________
Quote:
Originally Posted by Drake Clawfang
Aerith is clearly the most badass character ever. She saves the world. Twice. While dead. No one else can claim that, can they?
I'm gone from here for good. This place gave me many memories to take with me and shaped me greatly. I still care about you guys. I just can't stay.

Journal | Twitter | FF Wiki (Talk) | Projects | Site
bluestarultor is offline Add to bluestarultor's Reputation   Reply With Quote
Unread 11-03-2010, 08:34 PM   #4
synkr0nized
synk-ism
 
synkr0nized's Avatar
 
Join Date: Nov 2003
Location: throughout the Wired
Posts: 6,857
synkr0nized isn't just above the law -- they are the law. synkr0nized isn't just above the law -- they are the law. synkr0nized isn't just above the law -- they are the law. synkr0nized isn't just above the law -- they are the law. synkr0nized isn't just above the law -- they are the law. synkr0nized isn't just above the law -- they are the law. synkr0nized isn't just above the law -- they are the law. synkr0nized isn't just above the law -- they are the law. synkr0nized isn't just above the law -- they are the law. synkr0nized isn't just above the law -- they are the law. synkr0nized isn't just above the law -- they are the law.
Send a message via ICQ to synkr0nized Send a message via AIM to synkr0nized Send a message via MSN to synkr0nized Send a message via Skype™ to synkr0nized
Default or if there already is an IE stylesheet

I know I have come across some CSS in pages that would have a section like "/* LOL IE Fix */ <some non-standard CSS here>", but those are often hacks.

I wonder if we do have or could make a conditional in our stylesheet declarations that adds an additional CSS file if the browser is IE. Anything redeclared in this file would overwrite the styles in the default CSS (if I am remembering this correctly) but only for IE.

Of course, that's a lot of fussing for just glowing text and would best help if we had a few different style discrepancies.
__________________

Find love.
synkr0nized is offline Add to synkr0nized's Reputation   Reply With Quote
Unread 11-03-2010, 08:48 PM   #5
bluestarultor
Blue Psychic, Programmer
 
bluestarultor's Avatar
 
Join Date: Feb 2007
Location: Home!
Posts: 8,814
bluestarultor is one of Jay-Z's 99 problems. Possibly two. bluestarultor is one of Jay-Z's 99 problems. Possibly two. bluestarultor is one of Jay-Z's 99 problems. Possibly two. bluestarultor is one of Jay-Z's 99 problems. Possibly two. bluestarultor is one of Jay-Z's 99 problems. Possibly two. bluestarultor is one of Jay-Z's 99 problems. Possibly two. bluestarultor is one of Jay-Z's 99 problems. Possibly two. bluestarultor is one of Jay-Z's 99 problems. Possibly two. bluestarultor is one of Jay-Z's 99 problems. Possibly two. bluestarultor is one of Jay-Z's 99 problems. Possibly two.
Default

Well, I found the code. Only issue is that it's Microsoft-specific and Wikia doesn't seem to play nicely with it, so I can't get it to show there. I CAN get it to show just making an HTML page, though.

https://dl.dropbox.com/u/466762/glowtest.html

Hopefully Dropbox fares better in that department.

Edit: Mind you, I did it in two span tags just because that didn't break my Wikia code. What I used was:

Code:
<SPAN STYLE="color: white; filter:progid:DXImageTransform.Microsoft.Glow(Color=#0080FF, Strength=2.75); height=1px"><span style="color:white; text-shadow: 0 0 0.2em #0080FF, 0 0 0.2em #0080FF, 0 0 0.2em #0080FF, 0 0 0.2em #0080FF">This is a glow test.</span></span>

BTW: Having that height thing in there is very important. It won't work without it.



Edit: HOKAY, looks like I've got it figured out!

Code:
<span style="text-shadow: 0 0 0.2em {color}, 0 0 0.2em {color}, 0 0 0.2em {color}, 0 0 0.2em {color}; filter:progid:DXImageTransform.Microsoft.Glow(Color={color}, Strength=3); height=1px">{text}</span>
The above generalized code should work in all instances. Also, I tweaked it from the example shown to look a bit better in Explorer.


Edit: And I updated the example for good measure. Yes, the radius is bigger in Explorer, but that's because there's no way to layer IE glows. The last one just overrides all the others. It's therefore darker and needs the extra pixel of radius to be more visible. Standard is actually five. I'm being generous space-wise with three, since the IE glow is treated as a solid object around the letters. I haven't tested what it'll do in-line in IE, but the method all other browsers use works out just fine, since the glow is treated as a separate object underneath the text. I'll be playing with it more.
__________________
Quote:
Originally Posted by Drake Clawfang
Aerith is clearly the most badass character ever. She saves the world. Twice. While dead. No one else can claim that, can they?
I'm gone from here for good. This place gave me many memories to take with me and shaped me greatly. I still care about you guys. I just can't stay.

Journal | Twitter | FF Wiki (Talk) | Projects | Site

Last edited by bluestarultor; 11-03-2010 at 11:13 PM.
bluestarultor is offline Add to bluestarultor's Reputation   Reply With Quote
Unread 11-03-2010, 08:59 PM   #6
rpgdemon
Not a Taco
 
rpgdemon's Avatar
 
Join Date: May 2005
Posts: 3,313
rpgdemon has apparently made an impact on one or two people over the years. rpgdemon has apparently made an impact on one or two people over the years. rpgdemon has apparently made an impact on one or two people over the years. rpgdemon has apparently made an impact on one or two people over the years. rpgdemon has apparently made an impact on one or two people over the years. rpgdemon has apparently made an impact on one or two people over the years. rpgdemon has apparently made an impact on one or two people over the years. rpgdemon has apparently made an impact on one or two people over the years. rpgdemon has apparently made an impact on one or two people over the years. rpgdemon has apparently made an impact on one or two people over the years. rpgdemon has apparently made an impact on one or two people over the years.
Default

While we're shooting for some nice 90s-esque look, can I suggest implementing blink, too? :P

In all seriousness, cool stuff.
__________________
I did a lot of posting on here as a teenager, and I was pretty awful. Even after I learned, grew up, and came to be on the right side of a lot of important issues, I was still angry, abrasive, and generally increased the amount of hate in the world, in pretty unacceptable ways. On the off chance that someone is taking a trip down memory lane looking through those old threads, I wanted to devote my signature to say directly to you, I'm sorry.

Thank you for letting me be better, NPF.
rpgdemon is offline Add to rpgdemon's Reputation   Reply With Quote
Unread 11-05-2010, 12:01 AM   #7
Nikose Tyris
Trash Goblin
 
Nikose Tyris's Avatar
 
Join Date: Jul 2004
Location: Coldwater, Ontario
Posts: 6,433
Nikose Tyris will now be known as Freedom Friday, but still on a Tuesday! Nikose Tyris will now be known as Freedom Friday, but still on a Tuesday! Nikose Tyris will now be known as Freedom Friday, but still on a Tuesday! Nikose Tyris will now be known as Freedom Friday, but still on a Tuesday! Nikose Tyris will now be known as Freedom Friday, but still on a Tuesday! Nikose Tyris will now be known as Freedom Friday, but still on a Tuesday! Nikose Tyris will now be known as Freedom Friday, but still on a Tuesday! Nikose Tyris will now be known as Freedom Friday, but still on a Tuesday! Nikose Tyris will now be known as Freedom Friday, but still on a Tuesday! Nikose Tyris will now be known as Freedom Friday, but still on a Tuesday! Nikose Tyris will now be known as Freedom Friday, but still on a Tuesday!
Send a message via AIM to Nikose Tyris Send a message via MSN to Nikose Tyris Send a message via Yahoo to Nikose Tyris Send a message via Skype™ to Nikose Tyris
Default

one sec, I've got the blink text down pat, I think.

Code:
<blink> </blink>
There, that should work.

/endarguement.

Edit:
Protip- Marquee is the same thing.
__________________
Quote:
Originally Posted by K-Re$ha View Post
Nikose is a known quantity and that quantity is jerk. Do not trust the sandwich.
Nikose Tyris is offline Add to Nikose Tyris's Reputation   Reply With Quote
Unread 11-05-2010, 12:45 AM   #8
bluestarultor
Blue Psychic, Programmer
 
bluestarultor's Avatar
 
Join Date: Feb 2007
Location: Home!
Posts: 8,814
bluestarultor is one of Jay-Z's 99 problems. Possibly two. bluestarultor is one of Jay-Z's 99 problems. Possibly two. bluestarultor is one of Jay-Z's 99 problems. Possibly two. bluestarultor is one of Jay-Z's 99 problems. Possibly two. bluestarultor is one of Jay-Z's 99 problems. Possibly two. bluestarultor is one of Jay-Z's 99 problems. Possibly two. bluestarultor is one of Jay-Z's 99 problems. Possibly two. bluestarultor is one of Jay-Z's 99 problems. Possibly two. bluestarultor is one of Jay-Z's 99 problems. Possibly two. bluestarultor is one of Jay-Z's 99 problems. Possibly two.
Default

Quote:
Originally Posted by Nikose Tyris View Post
one sec, I've got the blink text down pat, I think.

Code:
<blink> </blink>
There, that should work.

/endarguement.

Edit:
Protip- Marquee is the same thing.
Marquee still works, but blink doesn't in IE, which is what the argument was over. I know from experience it takes Javascript to implement.

The issue is that Synk said it would be desirable if it worked across all browsers. Personally, I don't see why anyone still uses IE, since my experience with IE8 has been utter shit when I've been forced to use it, but if the demand is to support it on the forum, it'll take more work.

Edit: Apparently you can add the functionality to the tag itself in the CSS through a script as of IE5, unless it's been changed. On a break from homework ATM.
__________________
Quote:
Originally Posted by Drake Clawfang
Aerith is clearly the most badass character ever. She saves the world. Twice. While dead. No one else can claim that, can they?
I'm gone from here for good. This place gave me many memories to take with me and shaped me greatly. I still care about you guys. I just can't stay.

Journal | Twitter | FF Wiki (Talk) | Projects | Site

Last edited by bluestarultor; 11-05-2010 at 12:58 AM.
bluestarultor is offline Add to bluestarultor's Reputation   Reply With Quote
Unread 11-05-2010, 01:21 AM   #9
Flarecobra
Burn.
 
Flarecobra's Avatar
 
Join Date: Dec 2003
Location: *Classified*
Posts: 11,017
Flarecobra has apparently made an impact on one or two people over the years. Flarecobra has apparently made an impact on one or two people over the years. Flarecobra has apparently made an impact on one or two people over the years. Flarecobra has apparently made an impact on one or two people over the years. Flarecobra has apparently made an impact on one or two people over the years. Flarecobra has apparently made an impact on one or two people over the years. Flarecobra has apparently made an impact on one or two people over the years. Flarecobra has apparently made an impact on one or two people over the years. Flarecobra has apparently made an impact on one or two people over the years. Flarecobra has apparently made an impact on one or two people over the years. Flarecobra has apparently made an impact on one or two people over the years.
Send a message via AIM to Flarecobra Send a message via Yahoo to Flarecobra
Default

Well, Firefox ain't the say-all for everyone. I've had some very bad exparances with FF, that I have not had with IE.
__________________
"Only the fool wishes to go into battle to beat someone for the satisfaction of beating someone." -A Thousand Sons

Rules. Read them, know them, love them.
Flarecobra is offline Add to Flarecobra's Reputation   Reply With Quote
Unread 11-05-2010, 08:19 AM   #10
bluestarultor
Blue Psychic, Programmer
 
bluestarultor's Avatar
 
Join Date: Feb 2007
Location: Home!
Posts: 8,814
bluestarultor is one of Jay-Z's 99 problems. Possibly two. bluestarultor is one of Jay-Z's 99 problems. Possibly two. bluestarultor is one of Jay-Z's 99 problems. Possibly two. bluestarultor is one of Jay-Z's 99 problems. Possibly two. bluestarultor is one of Jay-Z's 99 problems. Possibly two. bluestarultor is one of Jay-Z's 99 problems. Possibly two. bluestarultor is one of Jay-Z's 99 problems. Possibly two. bluestarultor is one of Jay-Z's 99 problems. Possibly two. bluestarultor is one of Jay-Z's 99 problems. Possibly two. bluestarultor is one of Jay-Z's 99 problems. Possibly two.
Default

Quote:
Originally Posted by Flarecobra View Post
Well, Firefox ain't the say-all for everyone. I've had some very bad exparances with FF, that I have not had with IE.
That still leaves Opera, Chrome, and Safari.


In all seriousness, though, my main gripe with Explorer is as a developer due to its terrible CSS compliance. Microsoft sees fit to duplicate half of standard CSS in inane custom code. Heck, even basic things like margins vs. padding, which is used in literally every text element. It's fine to want to do your own thing, but that thing should at least be in addition to the standard, not to thumb your nose at it and make developers write two sets of code just to accommodate you at a basic level.
__________________
Quote:
Originally Posted by Drake Clawfang
Aerith is clearly the most badass character ever. She saves the world. Twice. While dead. No one else can claim that, can they?
I'm gone from here for good. This place gave me many memories to take with me and shaped me greatly. I still care about you guys. I just can't stay.

Journal | Twitter | FF Wiki (Talk) | Projects | Site
bluestarultor is offline Add to bluestarultor's Reputation   Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 08:17 PM.
The server time is now 01:17:37 AM.


Powered by: vBulletin Version 3.8.5
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.