Topic: [help] Javascript within php?
Hi there, I'll start with a little background to my problem so it's easier to understand. Basically I managed to modify functions.php so that instead of the navigation header links (Index/User list/Rules etc etc) images are shown. What I would like to do is create a mouseover effect, so that when a user hovers the cursor over the image of say Index, it is replaced by another image. I did try adding the javascript code to the beginning of functions.php (before <?php) and adding the necessary code in my <img> tag, unfortunately this resulted in the following error: (although the mouseover did work)
Warning: Cannot modify header information - headers already sent by (output started at /forums/include/functions.php:1) in /forums/header.php on line 31
Warning: Cannot modify header information - headers already sent by (output started at /forums/include/functions.php:1) in /forums/header.php on line 32
Warning: Cannot modify header information - headers already sent by (output started at /forums/include/functions.php:1) in /forums/header.php on line 33
Warning: Cannot modify header information - headers already sent by (output started at /forums/include/functions.php:1) in /forums/header.php on line 34
Is there any way I can do this? Being able to use an external js file would be a bonus
Thanks for any help