Forum Discussion
Seb_Daubert
2 months agoCommunity Member
Interactive Dynamic Shadows Script
This JavaScript code automatically generates a realistic drop shadow that reacts to mouse movements, simulating a moving light source.
How it works:
Paste the code into an "Execute JavaScript" ...
Seb_Daubert
24 days agoCommunity Member
Hi, You can target the object ID directly instead...
KnutCollettJrge
24 days agoCommunity Member
Yes, but then that exact ID needs to be added to the JS, and you have no control of the ID.
The best thing is to be able to have a prefix to the name of the object (For instance: blurMe_ObjectName). Then you can have the script find all the objects where the name begins with "blurMe", add them to an array/nodelist and loop through them, adding the effect.
The alt text will be picked up by screen readers etc. and is not ment to locate objects in a js :)