Change bgColor

heymeca / 2012-01-26 11:51:26   

Hello all,

First of all thank you for Indexhibit, simply amazing!

Now my question is, how can i make a background color change like in this website: http://www.herrpeter.ch/

I've already tried this code in the index.php page on Head section:

  1. < div style="position:fixed; width:150px; left:25px; top:10px; ">
  2.   < a href="" onmouseover="document.bgColor='dodgerblue'">.</a>
  3.   < a href="" onmouseover="document.bgColor='hotpink'">.</a>
  4. < a href="" onmouseover="document.bgColor='white'">.</a></a>
  5. < /div>

(without the spaces beetwen "< a")

The little color dots appear, but they dont work. How can i make it work?

My website: andremeca.com

Thank's,
Andre Meca

heymeca / 2012-01-27 05:21:55   

Could anyone give me a little help here?

Thank's,
Andre Meca

heymeca / 2012-01-28 17:16:25   

Ok i've found a solution:

  1. <style type="text/css">
  1. body {background-color:#F2F2F2; }
  2. body.gray {background-color:#f2f2f2;}
  3. body.yellow {background-color:#ffff00;}
  4. body.blue {background-color:#0000ff;; text-decoration: none; color: #f2f2f2;}
  5. body.white {background-color:#ffffff;}
  6. </style>
  7. <div style="position:fixed; width:200px; left:25px; top:1px; ">
  8. <a href=""style="text-decoration: none"; onmouseover="body.className='gray';"><FONT SIZE=5><FONT FACE="Verdana"><FONT COLOR='#999999'>.</a></FONT></FONT></FONT></STYLE>
  9. <a href=""style="text-decoration: none"; onmouseover="body.className='yellow';"><FONT SIZE=5><FONT FACE="Verdana"><FONT COLOR='#ffcc00'>.</a></FONT></FONT></FONT>
  10. <a href=""style="text-decoration: none"; "color: #f2f2f2"; onmouseover="body.className='blue';"><FONT SIZE=5><FONT FACE="Verdana"><FONT COLOR='#0000CC'>.</a></FONT></FONT></FONT>
  11. <a href=""style="text-decoration: none"; onmouseover="body.className='white';"><FONT SIZE=5><FONT FACE="Verdana"><FONT COLOR='#ffffff'>.</a></FONT></FONT></FONT>
  12. </div>

Now my question is how can it keep the backgrounf color when i click on a link to other page?

Thank's,
André Meca

heymeca / 2012-01-30 15:22:16   

C'mon, is there any kind soul that would like to help? Please?

(Question above) - Now my question is how can it keep the background color when i click on a link to other page?

Thank once again,
André Meca

rickykappa / 2012-01-31 04:03:09   

as far as I know css only wouldn't work, you would need more complex solutions to keep the choice through the pages, like setting cookies and/or javascripts.
but this go far beyond the indexhibit forum, you should google for these scripts for changing style
;-)

This thread has been closed, thank you.