Dan
The New Helper.Net gives me great Anxiety... o.O;;
- Reaction score
- 160
I am making a bio page for my website. A person's thumbnail is clicked, and then information about them is displayed in a div next to the picture. I am using "innerHTML" to make this happen.
1. what is the difference between innerHTML and Write ?
2. Can I call the bio text from an external document so that I can make it easy to include these paragraphs without having to clutter my javascript?
3. how can I make sure it is formatted?
That is how I am doing it currently.
should i just use an external javascript page to load global string vars and call them?
1. what is the difference between innerHTML and Write ?
2. Can I call the bio text from an external document so that I can make it easy to include these paragraphs without having to clutter my javascript?
3. how can I make sure it is formatted?
PHP:
function fbClick(face)
{
document.getElementById('fbExpand').src = team_images[face];
fbShowContent(face);
}
function fbShowContent(content)
{
var str = "meow moew moew moew meow";
document.getElementById('companyArticle').innerHTML=str;
}
That is how I am doing it currently.
should i just use an external javascript page to load global string vars and call them?