[ acky.net logo ]




Acky.net Tips

Shell Accounts: 3 logins - 9 backgrounds
Shell Accounts: 3 logins - 9 backgrounds

 

Let your visitors choose colors for your pages
Why not let visitors to your page choose the background color of your pages? Checkout the following example:

will not work if you have an iamge as a bg like we do:

 

The basic idea here is to use JavaScript to change the background color using the following command (FFFFFF being the hex representation of the color we want):

document.bgColor = '#FFFFFF';

If you like the idea, you can have what you see in the above example simply by inserting the following tags in to your page:

<form name="test" method="post">





 <input type=button 

     OnClick="document.bgColor = '#FFFFFF';" 

       value="White">





 <input type=button 

     OnClick="document.bgColor = '#00FFFF';"

       value="Cyan">





 <input type=button 

     OnClick="document.bgColor = '#FF00FF';"

       value="Purple">





 <input type=button 

     OnClick="document.bgColor = '#FFFF00';"

       value="Yellow">





</form>