Simple code depicting web personality mouse pointer

Source: Internet
Author: User
Tags define
Mouse | mouse pointer | Web page

Many gamers are sure to have a deep impression of the dynamic mouse pointer in the game, as long as a simple CSS (cascading style sheet), you can also achieve this effect on the Web page.

First, you need a mouse pointer file, you can click "Start" → click "find" → type ". Ani" or ". Cur" (without double quotes), you can also download your favorite pointers online. Note:. ANI is a pointer file for dynamic effects;. Cur is a pointer file for static effects.

Here are two ways to implement a personalized mouse.

1. Define a pointer to all hyperlinks

Add the Cursor:url (path to the pointer file) to the CSS file for the hyperlink.

such as: a {color: #000000; cursor:url (path to pointer file);} 

2. Define pointers to individual links

Place the style= "Cursor:url (Path of the pointer file)" into the container.

such as: "A style=" cursor:url (' Path of pointer file ') "href=" Specify link Address ">

Now save the file and preview your website's personalized mouse pointer!



Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.