Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Сылка изменяющая цвета
- <script>
- var colors = new Array(
- "#008000",
- "green",
- "#000000",
- "#D3CF18",
- "#C6C68C",
- "green",
- "blue",
- "darkblue",
- "purple",
- "black",
- "red",
- "lime",
- "yellow");
- var colorCounter=0;
- var timeoutId;
- var hoverLink;
- window.onload=function(){
- var as=document.getElementsByTagName("a");
- for(var i=0;i<as.length;i++){
- as[i].onmouseover=function(){
- if(this.style)hoverLink=this;
- hoverLink.style.color=colors[colorCounter++];
- colorCounter%=colors.length;
- timeoutId=setTimeout(hoverLink.onmouseover,400);
- }
- as[i].onmouseout=function(){clearTimeout(timeoutId);hoverLink.style.color=document.linkColor;}
- }
- }
- </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement