This is probably a thread I'll be updating periodically, as I'm sure to have more than one question relevant to this subject.
<p class="colorblue">text that should be blue but isn't</p>
I just steal stuff others have made. Hopefully some more knowledgeable members chime in.I did have issues trying to use classes as well, but I imagine there's some way to do it. There's no way the tedious approach is the only option, right?
P.S. Ain't that funny? It works!
I tried to play with this a few months back. From what I've seen html/js/css code only worked when changing the page text variable:
$PAGETEXT:= $PAGETEXT+"(cool HTML/JS/CSS stuff)"
I think you can even use values from the site %VARIABLES for js calculations but not vice versa. For example:
$PAGETEXT:= "(script)var foo= " +%PARAM+ ";
document.write('This is Foo: '+foo);
(p class='colorblue')text that should be blue(/p)"
Just checked that code and it worked. Just switch the () to <>, and also if you want to use "" for strings inside it would only let you use ' ' instead. Because all the terms are already inside a big " ". At least that's how I understand it.
Hope this helps.
1) This should work, but the cascading nature of CSS means that some other selector might be overriding it. You can always use the inspect element tool, and specifically the "computed" tab, to see exactly how an element's final style is chosen.
2) Using styles and scripts in the forums is limited, but you are given a bit more free rein in storygames. Though lack of classes/ids does make referencing specific elements tricky, lol.
Thanks everyone for the suggestions!
Zake: Weird, I'm not sure why the text looks like that for you. On my screen it's showing up as regular text. What browser are you using?
Ogre: Thanks, I'll try that.
Elad: Thanks, I'll try that too.
Bradin: Thanks, I'll use the inspect tool for troubleshooting.