Jump to content
  • Advertisement
Sign in to follow this  

[web] Change color script

This topic is 5201 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Regarding my articles basic newbie information, kazgorath said it hurted in the eyes, but I like the black background and green text color so I need a javascript to change the text and background color on the pages, so people who experience that can change the colors on it. It was a long time since I wrote any html and javascript. is it possible to have a popup window with the option menus that changes it parents window? do you know how the code for it should be? thanks in advance!!

Share this post

Link to post
Share on other sites
I'm using a css style sheet document for all my pages.

I thought a input field for hexadecimal color values.

in changecolor.js:

function changeColor(text,background)
document.bgColor = background;
document.body.textColor = text;

I think it's something like this, but I can't remember, it doesn't look right,
can anybody who know javascript better correct me.

or a better idea, is to let the viewer type in the hexadecimal color values for the text and background, and then it should be these colors on all pages.

how do I do that?

Share this post

Link to post
Share on other sites
Sign in to follow this  

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!