Hi,

I have got some code that allows me to click an image map link that then changes text in a DIV further down the page though this is only doing plain text and i can't get it to write in links can any one help with the code????

Cheers

Matthew

</head>
<!-- php code start -->
<? 
 
$aabb='Meeteing Matrix';

 
?>
<!-- php code end -->

<html>

<head>
	<script type="text/javascript" src="swfobject.js"></script>
</head>

<style>
	div, a { 
		padding:3px;
		margin:3px 3px 3px 3px;}
	#scriptVars1 {
		text-align:Left;
		font:Arial;
		width:635px; 
		height:240px;}
</style>
 
<script>
	function changeDivContent( nameOfDiv, newContent )
	{
		var div = document.getElementById( nameOfDiv );
		if( div )
		{
			div.innerHTML = newContent;
		}
	}
</script>......


......<p>
  <map name="Map" id="Map">
    <area shape="poly" coords="170,9,170,95,141,101,113,122,45,70,60,54,80,38,99,26,122,17,145,11" href="#" onclick=
    "changeDivContent( 'scriptVars1', '<? echo $aabb; ?>' )/>
  </map>

Welcome to the forum, Magic8Computing.

Wrap up source code with bb code tags.
For example,

[code=PHP] ...statements..

[/code]

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.