View Full Version : Problem adding java script to php fusion...

03-10-2009, 10:04 PM
there is one script that i have problem to implement to php fusion site,
the code have to make when mouse is over menu in separate table is shown latest content
of my site,

can you please tell me exactly how to add it and in which files
i have to add it , there are one java code:

script type="text/javascript">
function news(n) {
if (n == "games")
document.getElementById("news").innerHTML = "Yay, games!";
else if (n == "soft")
document.getElementById("news").innerHTML = "Yay, software!";
else if (n == "other")
document.getElementById("news").innerHTML = "Yay, other stuff!";


and one html code:

<li><a href="" onmouseover="news('games')"/>Games</li>
<li><a href="" onmouseover="news('soft')"/>Software</li>
<li><a href="" onmouseover="news('other')"/>Other</li>
<div id="news">

Thank you in advance.

03-11-2009, 12:47 AM
That code looks like it should work, although it is Javascript and therefore belongs in the Javascript forum... so... what was your question?