You did. You forgot to close the function with the end curly bracket
Code:
function updateElement(color,node,change,tag) {
var allDivs=document.getElementsByTagName('a'), i=0,d;
while(d=allDivs[i++])
{
if(d.getAttributeNode('link'))
{
d.style.color= '#'+color
}
}
} // you forgot this one
I shall if I get it working how I have imagined.... I dont want to have to make a exact copy of a function for each element I want to change if possible but if thats what I need to do, then thats what I need to do
change being a parameter such as color or backgroundColor...
So, I am thinking, I will make a function for each type of change.. although that may end up alot... so, color backgroundColor border color (if possible) and others when i think of them
It requires you to login to access the generator. Use username: SampleSimon and password: password this is just for trial purposes and Will remove this user soon but wanted to let you try it out.
The page was designed to allow you to VERY basically design your own website, well the colour scheme anyway. So fiddle around with the colours and then hit generate at the top.
Let me know what you think and thanks for the help
Bookmarks