Sure thing!
****************************************************************************
***
<html>
<head>
<title></title>
<style>
.myStyle { filter: Alpha(Opacity=0); font-family: Arial, Helvetica,
sans-serif; font-size: 45px}
</style>
<script>
var styleID = ""
var lager = 0
var timer = 0
var alphaVal = 10
var arrayVar = new Array()
var yy
function changeColor() {
if (document.all) {
setStyleProperties(".myStyle")
}
}
//*** Set properties on styles for animation on object
function setStyleProperties(ID) {
styleID = ID
document.styleSheets\[0\].addRule(styleID, "filter:
Alpha(Opacity="+alphaVal+")");
//for (i=1;i<arguments.length;i++) {
//for (Li=0;Li<arrayVar.length;Li++) {
//if (arguments==arrayVar[Li]) {
//document.styleSheets[0].addRule(styleID,
"filter: Alpha(Opacity="+alphaVal+")");
//}
//}
//}
timer++;
alphaVal += 10;
setProperties = setTimeout("setStyleProperties('"+styleID+"')", 200)
if (timer>9) {
timer = 0
alphaVal = 10
clearTimeout(setProperties);
}
}
</script>
</head>
<body bgcolor="#FFFFFF" text="#000000">
<a href="#" onMouseover="changeColor()">Visa text</a>
<div id="hamngot" style="position:absolute; left:50px; top:50px; width:22px;
height:17px; z-index:18" class="myStyle">Lite text om nåt, eller så...</div>
</body>
</html>
*********************************************************
Eller nåt. Typ funkar bara i IE4+. Måste skrivas om för Netscape.
[Redigerat av mirre den 23 okt 2001]