Forums

CSS

This topic is locked

changing text at same location using css

Posted 25 May 2009 10:17:25
1
has voted
25 May 2009 10:17:25 ps sheba posted:
Hi everyone,
I have a page with links. Each link, once clicked, should show different text on the same location at the main page.
text blocks are organized within "divs" for example:
<div id=text1>aaaaaaaaaaaaaaaaaaaaa</div>
<div id=text2>bbbbbbbbbbbbbbbbbd</div> etc...
If a user click "link1" i want him to see "aaaaaaaaaaaaaaaaaaaaaa" on the page.
link2 should show:"bbbbbbbbbbbbbb" etc...
Can i do it using css ? can anyone show me how ?
Thanks

Reply to this topic