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... Link to comment https://forums.phpfreaks.com/topic/109259-disable-status-bari-have-the-code/ 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> ? Link to comment https://forums.phpfreaks.com/topic/109259-disable-status-bari-have-the-code/#findComment-560427 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? Link to comment https://forums.phpfreaks.com/topic/109259-disable-status-bari-have-the-code/#findComment-560428 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 Link to comment https://forums.phpfreaks.com/topic/109259-disable-status-bari-have-the-code/#findComment-560429 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? Link to comment https://forums.phpfreaks.com/topic/109259-disable-status-bari-have-the-code/#findComment-560432 Share on other sites More sharing options...
Buddski Posted June 8, 2008 Share Posted June 8, 2008 The would be your best bet. Link to comment https://forums.phpfreaks.com/topic/109259-disable-status-bari-have-the-code/#findComment-560434 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 Link to comment https://forums.phpfreaks.com/topic/109259-disable-status-bari-have-the-code/#findComment-560567 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.