ID:162774
 
How would I go about changing the colours of my links in a pop-up window? From what I've tried so far, they just remain the default.I would prefer to do it globally from a .dms file.


Example:
client/Topic(href)
if(href == "rock")
src << "Rock!"

if(href == "scissors")
src << "Scissors!"

if(href == "paper")
src << "Paper!"

if(href == "close")
src << browse(null, "window=Ronald")


mob/Ronald
verb/Talk()
set src in oview(1)
usr << browse(Ron,"window=Ronald")


var
Ron = {"<html><head><title>Ronald</title>

<body bgcolor=#202020 text=#C9C9C9>

<center><u>Options</u></center> <br>

<a href=?rock>Rock</a> <br> <br>
<a href=?scissors>Scissors</a> <br> <br>
<a href=?paper>Paper</a> <br> <br>
<a href=?close>Close</a> <br> <br>
"}
Bump.

I've looked around and fooled around with the code, but still can't seem to find a way to change the colour globally. Any help?
In response to Zythyr
Leaning how to use CSS is a good first step (either that or you can always search for a CSS generator...)
In response to Zythyr
In response to YMIHere
I am already using CSS in a script file, however it doesn't seem to affect pop-ups. Perhaps I am piecing it wrongly, any chance of an example?
In response to Zythyr
CSS in the script file (which, by the way, is outdated - even though it still works) effects the interface of the window elements (talking about 3.5, not sure about in 4.0+)... this means that the script file does NOT effect what is outputted via browse(); you have to add it in manually.

You can always have a constant variable or a quick #define for the CSS style, rather than keep copying and pasting the styles, if it is used repeatedly