|
|
 |
RE: FN-FORUM: Onclick event
date posted 1st March 2006 14:37
>>> 1) Have separate pages for each different page you
>>> present - this is probably the best way
>>
>>Out of interest, could you have hidden DIVs and use JavaScript to
>>show/hide them when the visitor clicks on the links? And would this
>>affect search engines?
>
>If both DIVs are visible in the source the search
>engine should pick up the content of both.
So, if I had a page with 5 DIVs, and in the stylesheet file marked 4 of them
as hidden and 1 as visible, would search engines know that 4 were actually
hidden and ignore them? Or, if I used JavaScript to hide 4 of them, would
this do the same?
The reason I'm asking is that some of my clients have an "our team" page and
it's nice to use JS to toggle layers instead of load new pages each time.
However, the biogs have some useful text in them which could benefit SE
work.
I know hidden DIVs are a little "black hat" but I was wondering what the
current thinking was.
Thanks
Edward
|
 |
|