I'm trying to change a CSS attribute by using a java-script function so This code is not working in firefox / works with Safari/Chrome
<html>
<head>
<style type="text/css">
#hide {
display: none ;
}
</style>
</head>
<body>
<div onmouseover="document.getElementById('hide').style.display = 'compact';" onmouseout="document.getElementById('hide').style.display = 'none';" >
Move Over Mouse here
</div>
<div id="hide"> THIS I开发者_如何学编程S HIDDEN TEXT</div>
</body>
</html>
Any Ideas ?!
Try display style 'inline' rather than 'compact'.
精彩评论