You can use VBScript to capture the movement of the mouse, and then let the light go with the movement, which forms the effect of the mouse like the light source. If you do not see the effect after opening, please wait for a while.
<Title> VBScript text mask </title> <p id = "myLightObject" style = "position: relative; height: 336px; width: 336px; top: 10px; left: 0px; color: White; filter: light "> <center> jb51.net provides various programming source code, book tutorials, special JavaScript/CSS code, and frequently used software downloads, make a quality learning Source Code download site. Provides various programming source code, JavaScript/CSS special effects code, and common software downloads for a quality learning Source Code download site. </Center> </p> <script language = "VBScript"> Option Explicit sub window_OnLoad () call myLightObject. filters. light (0 ). addambient (,) call myLightObject. filters. light (0 ). addcone (400,400,200,100,100,200,204,200,) end sub document_onMouseMove () call myLightObject. filters. light (0 ). moveLight (1, window. event. x, window. event. y, 0, 1) end sub script
[Ctrl + A select all Note: If you need to introduce external Js, You need to refresh it to execute]