You are here: Re: Best way to dynamically change background color of a span or div? « HTML « IT news, forums, messages
Re: Best way to dynamically change background color of a span or div?

Posted by dorayme on 10/19/25 11:59

In article <2006092916283116807-boog@felchcom>,
Boonish <boog@felch.com> wrote:

> I have a page with a series of questions as links on the left, and
> paragraphs of answers in a column to the right. What I'd like to have
> happen is when the user clicks on a question to the left, the answer to
> the right changes it's background color slightly to draw attention.
>
> What's the easiest way of going about this? TIA.

One simple way, perhaps there are not too many questions?, is to
make each question link to another almost identical page except
one that has the answer to the right with a background that is
different to the 'previous'. Easy to do. Know what I mean?

Perhaps what you want is a hover effect though, because if the
answers are there staring at people to the right of each
question, why will they think it worth it to click? How to get
such a hover effect on the answer's and not the question's
background? Javascript perhaps, fancy this route?

--
dorayme

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация