NameSilo

HTML questions

NamecheapNamecheap
Watch

Farls

New Member
Impact
0
I'm new to building sites, so be easy on me. :)
Is there a way to reference only part of a table to change only it's text when a link is selected?

For example, 80% of this particular website is static, but in one section of the table, the text needs to change when the user clicks on "Services" or "More Info."

Thank you for your help.
 
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
GoDaddyGoDaddy
depending how the html is there are many options. you can add a class to the text or to the table cell the text is in and apply the style specifically to that class. for example say you have a paragraph you wanted the text to be red, you could do something like:

<p class="red">this text is red</p>

then in the css file you would define the class by:

.red {color:red;}

hope that helps :P
 
0
•••
I'm sorry, I'm not sure if I understand.
I would like a section of the table that reads "This is the home page." to be replace by "This is the info page." when someone clicks on "Info." The part I can't figure out is how to reload the text in one section without reloading the entire page.


Thank you for your quick response!
 
0
•••
Maybe this could be accomplished with rollover graphics? If not, then try a Javascript replacer.
 
0
•••
Appraise.net

We're social

Escrow.com
Spaceship
Rexus Domain
CryptoExchange.com
Domain Recover
CatchDoms
DomDB
NameFit
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back