Hi All
i tried putting the most informative title as possible. Hope it worked.
I was hoping one of you experts would be able to assist me with my enquiry.
i have built a site using a table, in dreamweaver.
Here is a very basic look at what i have.
[code=php]<table>
<tr>
<td> picture.jpg</td>
</tr>
<tr>
<td><div id=”myDiv”> scrolling text window </div></td>
</tr>
<tr>
<td>picture.jpg</td>
</tr>
</table>
at the bottom of the page i have 2 links
“news” and “contact”
i also have 2 text files with all the relating text.
i am wanting to know, is there a way , that when the user
clicks on ‘news’ ..the news.html file is loaded into the middle table.
when the user clicks on ‘contact’ , the contact.html file replaces it.
Basically, an javascript alternative option to the following text , that you would use when dealing with frames
[code=php]<A HREF=”pagename.htm” TARGET=”MAIN-WINDOW”> link </a>
so far , i have been advised to use
[code=php]
<head>
function changeText(newText){
document.getElementById(“test”).in* nerHTML=newText
}
</head>
<body>
<tr><div id=”myDiv”>scrolling text window</div></tr>
<a href=”#” onClick=document.getElementById(“m* yDiv”).innerHTML=”news.htm”> NEWS </a>
</body>
however, this example requires a string of text , instead of opening an existing text file
any help is greatly appreciated.
Buttahz