Forum Moderators: mack
I am in the middle of redesigning the interface and appearance of a website for a group of close friends. I need to be able to change a block of text on this website for another block of text which is stored in a separate file (which will be cross referenced and read from multiple locations). Now I could do this with iframes. But I really really want to be able to have the text wrap around the bottom of a navigation menu on the righthand side. It seems I should be able to do this, probably even simply but I can't find a direct explanation anywhere!
the progression should be as follows: User loads a page describing the contents of a section. Links on the upper right to the contents. User clicks a link and the page clears the description and loads an external file (html or whatever works, as long as it is transparent to the user) with the contents.
With iframes this would happen exactly like this, but I can't wrap the text in an iframe.
Seems I should be able to call on javascript to write a line to make php load the file, but I can't find information on how I might do that either.
Someone said DHTML and pointed me to a website. I went there, but nothing was a direct explanation of what I was looking for. If something was a less direct route to it, I'm afraid I lost it in alphabet soup.
Thanks for any help you can give.
edit:
This also needs to be easily updateable by someone who doesn't understand the code. I don't mind if it's tricky to implement as long as new pages (and links) can be added easily, but if they can't be, it's no good..
if (!isset($content)) {
echo ("Here are the descriptions about the content..blah blah blah.")
} elseif ($content=="a") {
echo ("Information about content a");
} elseif ($content=="b") {
echo ("Information about content a");
}
?>
==============================
Now what you can do is set the url of your links to something like ' index.php?content=a ' that way when the index.php page is loaded the php script above checks the value on $content and prints out "Information about content a".
Make sense?