How To Have Your Links Change Color When The Mouse Is Moved Over Them The following is a DHTML method which functions when a page is viewed using the Internet Explorer browser. It's a style declaration located in the HEAD section of the HTML document: Make certain that the script's link color, #ff0000 (red), matches the link color specified in the BODY tag. In this example, your red links will turn green when the mouse is moved over them.