mhh...
I need a script that could do different functions depending on the class name of a element being moused over.
for example:
<img src="my moma.jpg" class="FADEIT">
from this class my code will know to fade it in or out and i can do that just fine by doing something like e.className=="FADEIT"
however how can i do something like this:
<img src="my moma.jpg" class="FADEIT+BLINK">
from this class name my js should know to do something that corrospons to FADEIT and to BLINK but i do NOT want it to check for the className="FADEIT+BLINK" i want it to check weather or not FADEIT is in the class name or not, if it is in then do something.
so how could i approach this? (Maybe index of?--> I dont know how to use that on className tho, so if you think that is a possibility please explain it to me, thx)
thanks for any help and please post back to me if you did NOT understand me
(happens quit often
)
thanks
I need a script that could do different functions depending on the class name of a element being moused over.
for example:
<img src="my moma.jpg" class="FADEIT">
from this class my code will know to fade it in or out and i can do that just fine by doing something like e.className=="FADEIT"
however how can i do something like this:
<img src="my moma.jpg" class="FADEIT+BLINK">
from this class name my js should know to do something that corrospons to FADEIT and to BLINK but i do NOT want it to check for the className="FADEIT+BLINK" i want it to check weather or not FADEIT is in the class name or not, if it is in then do something.
so how could i approach this? (Maybe index of?--> I dont know how to use that on className tho, so if you think that is a possibility please explain it to me, thx)
thanks for any help and please post back to me if you did NOT understand me


thanks
Comment