|
-
Jun 20th, 2004, 03:03 PM
#1
Thread Starter
New Member
Javascript: Passing text
Hi, I have a really basic question, but I'm just learning Javascript. I want to be able to have 4 links that have text assigned to them. for example, when you click on 'home' another part of the page will display the name 'home'. I have 1 page called index, and I have an iframe that i load all of the content into. I want one part of the index page to display what page that you are on in the iframe. Here is my code if it helps. If this is confusing, then just tell me and I will try to explain better.
<a href="home.htm" target="contentframe" onMouseover="nameofpage('Home')">Home</a>
<td class="nameofpage" background="images/nameofpage.gif" align="center" valign="center" name="NOP">
<script type="text/javascript">
function nameofpage(message)
{
document.NOP.write(message)
}
</script>
</td>
Thanks guys.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|