...

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



gigax
03-10-2009, 09:04 PM
Hello,
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!";
}

</script>


and one html code:


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


Thank you in advance.

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



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum