web_master Posted February 17, 2009 Share Posted February 17, 2009 Hi, Im apsolutely novice in JavaScript so I need a help, I got a script for change picture and text on onmouseover. The script works perfectly in Mozilla, Chrome... but in IE not - cant see nothing ( Take a look at site www.miroslavjovancic.com ) the script is: <script type="text/javascript"><!-- TenPictures var winonload = window.onload; var CurrentText; window.onload = function(){ if(winonload) winonload(); CurrentText = document.getElementById('Text1'); } function SwapText(text_id) { CurrentText.style.display='none'; o=document.getElementById(text_id); CurrentText=o; o.style.display='block'; } // TenPictures --!> </script> Can help me someone, how can I change this script? Quote Link to comment Share on other sites More sharing options...
web_master Posted February 17, 2009 Author Share Posted February 17, 2009 ooh... in meantime I find the problem.... <script type="text/javascript"><!-- TenPictures var winonload = window.onload; var CurrentText; window.onload = function(){ if(winonload) winonload(); CurrentText = document.getElementById('Text1'); } function SwapText(text_id) { CurrentText.style.display='none'; o=document.getElementById(text_id); CurrentText=o; o.style.display='block'; } // TenPictures --!> </script> 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.