I'm having problems with this bit of code.
index.html
Code:
<a href="index.php?id=home" onmouseover="writeinfo('home')">Home </a>|
<div id="information">
modules <br />
modules <br />
modules <br />
modules <br />
modules <br />
</div>
js file
Code:
function writeinfo(type)
{
var info;
if(type=='home')
{
info = "<div align='center'><b>Home Page</b></div><br />
News is displayed<br />";
}else if(type=='flash')
{
info = "<div align='center'><b>Flash</b></div><br />
All of my flash creations, good or bad<br />
I've just started to learn flash.<br />
If you want to use something, tell me<br />
Questions and comments are welcome<br />";
}else if(type=='web')
{
....
}
document.getElementById('information').innerHTML=info;
return;
}
Any help?
|