ilikephp Posted June 8, 2008 Share Posted June 8, 2008 hi, I have this code: <script type="text/javascript"> <!-- function mv(){ window.status=''; return true; } if(document.all){ document.onmouseover=mv; } else if(document.layers){ window.captureEvents(Event.MOUSEOVER); window.onmouseover=mv; } //--> </script> BUT my website is composed from different pages that uses .php: example: header, main and footer.php where should I put this code to be activated automatically in all the pages? I put it in the index.php, only in that page the status bar is disabled. ??? Thx a lot... Quote Link to comment Share on other sites More sharing options...
wwfc_barmy_army Posted June 8, 2008 Share Posted June 8, 2008 Try creating a javascript file and including it in each file using: <script type="text/javascript" src="external.js"></script> ? Quote Link to comment Share on other sites More sharing options...
Buddski Posted June 8, 2008 Share Posted June 8, 2008 Do you have a global header file that you include on all the pages? Quote Link to comment Share on other sites More sharing options...
ilikephp Posted June 8, 2008 Author Share Posted June 8, 2008 I have an index.php and it includes everything Quote Link to comment Share on other sites More sharing options...
ilikephp Posted June 8, 2008 Author Share Posted June 8, 2008 should I need to put this code in a file.js and in all the pages I should create a link to it? Quote Link to comment Share on other sites More sharing options...
Buddski Posted June 8, 2008 Share Posted June 8, 2008 The would be your best bet. Quote Link to comment Share on other sites More sharing options...
ilikephp Posted June 8, 2008 Author Share Posted June 8, 2008 yeah it works with the .JS file BUT I have 2 problems: 1. when I put the mouse over the link, there is nothing in the status bar, but when I click, the whole link will appear :S 2. In Firefox, it is not working :S Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.