Log in

View Full Version : From that changes all text colour on site.



spamburger
01-10-2011, 12:40 PM
Hi im currently working on a project and would like to have a drop down form that would have a list of colours within it. When the user clicks on a colour it would then change all the text on that page to the selected colour.

The form would be situated at the top of every page of my site letting the user customise the colour as they need.

The website im working on if for Dyslexic users so changing text colour is very important. I have already used a similar idea to change the background colour but i can't seem to carry this across for text colour.

Any help would be extremely helpfull

Thanks, spam.

cindylou
01-10-2011, 04:36 PM
it depends on the software you're using to create it and the language you're using...i mean programming language...for example when using ASP on Macromedia Dreamweaver or PHP perhaps, there are tutorials available on the net and easy to find... videos are availble too...i won't be able to give you links on tutorials since you haven't specified tha language you're using....

spamburger
01-10-2011, 05:18 PM
Hi thanks for your reply.

I'm currently using Dreamwaver 8. Im only really using HTML, this is what i was wondering if it is possible to do with just html.

I have used some ASP on Dreamweaver before so i could probably use that but i would prefer if there was a solution to use HTML soley.

cindylou
01-10-2011, 06:14 PM
try these sites...


http://www.echoecho.com/htmlforms11.htm
http://www.htmlcodetutorial.com/linking/linking_famsupp_114.html
http://www.noupe.com/css/multilevel-drop-down-navigation-menus-examples-and-tutorials.html

those might help you :)

spamburger
01-11-2011, 11:11 AM
Hi thanks for the links Cindylou, but they don't really have what im looking for.

Basically i want to use the forms within dreamweaver to change all the colour of the text on that specfic page.

My problem isn't creating the form or in this case drop down menu. its the specifics of the code to change the colour of the text.

Thanks again Spam.

cindylou
01-11-2011, 11:42 AM
spam,

changing the color, right?.. you mean like this one?

<FONT SIZE="5" COLOR="FF0000">

that includes the size though...

spamburger
01-11-2011, 12:25 PM
Hi ill show you my code that i'm using to change the color of my background on my site.


onmouseclick="document.bgColor='ffffcc'" onMouseOver="document.bgColor='ffffcc'"><

basically i want to have an option on my site like this but instead of the user changing the background color i want them to be able to change the color of the text.

it's probably easier if i show you how it works on my site. http://thedyslexicgamer.co.uk/ when you hover over the colours it will change the background colour, so i want to have a similar system but to change the text colour aswell.

cindylou
01-11-2011, 02:21 PM
is the event still on onmouseclick or not?..

have you tried this one?

document.font color = ' ffffcc '

spamburger
01-11-2011, 02:44 PM
If you change it document.font color = ' ffffcc ' it doesnt work.

this is why i wanted to try and find out if there is some html code that can be used and connect somehow to a form button or drop down menu.

There is probably a real easy way of doing it but there is almost nothing about this online.

spamburger
01-11-2011, 03:06 PM
Here is a good example of what im looking for

http://www.dyslexiaaction.org.uk/Pages/DisplayC.aspx?c=ColourPicker

I want this type of system, but only for font colour and i will use it on the top of everypage.

cindylou
01-11-2011, 03:41 PM
yeah..i get that...but so far in using html, that's the one i use but as a constant code... i haven't tried doing that in changing colors in drop down menus...

spamburger
01-11-2011, 03:45 PM
well thanks for your help anyway Cindylou.

hopefully someone will have a solution

spamburger
01-16-2011, 03:46 PM
Hi just an update i have solved this problem by using a button here is the code


<button onclick="document.fgColor='green';">Green</button>

this code changes all the text on the page to green.