webForumDet fria alternativet

class istället för backgroundcolor

3 svar · 175 visningar · startad av oyster

oysterMedlem sedan feb. 20014 inlägg
#1

Finns det nåt sätt att använda stylesheets i stället för att skriva
onMouseOver="this.style.backgroundColor='#EEEEEE';"
T.ex
onMouseOver="this.style='class1';" onMouseOut="this.style='class2';">
Eller båt sånt?

RGBMedlem sedan dec. 1999419 inlägg
#2
<html>
<head><title></title>
<style type="text/css">
.red {color: red;}
.blue {color: blue;}
</style></head>
<body>

<span class="blue" 
onmouseover="this.className='red'"
onmouseout="this.className='blue'"
>texten här!</span>
Engine^Medlem sedan dec. 20003 887 inlägg
#3

Fungerar className i NS oxå?

...orkar inte installera Netscape nu ;)

------------------
Vem släckte lyset?

RGBMedlem sedan dec. 1999419 inlägg
#4

I NS6...

130 ms totalt · 3 externa anrop · v20260731065814-full.30151723
0 ms — hämta forumlista (cache)
0 ms — hämta statistik (cache)
127 ms — hämta tråd, inlägg och bilagor (db)