When the mouse moves over a hyperlink, the cursor will revert to For example: Applying a Custom Cursor to a Hyperlink The style can be applied to the paragraph tag itself. To apply a cursor to a single paragraph, such as this one, The style to the body tag: Applying a Custom Cursor to a Paragraph To apply a cursor to an entire page, the simplest way is to apply Internet Explorer for Windows, but not in Netscape or IE 5.0 for Unix. Some possibleįile types that may work are. browser) must be able to handle the type of cursor. The following HTML code will display a custom cursor: Some of the cursor styles may not work, depending on the browser. These showĪ number of built-in cursor styles that you can use: The following links should change the pointer after being 'moused-over'. Way to change the cursor type is to add a style="cursor: crosshair" property Note that the cursor path and filename has to be in quotes.Ī custom cursor is defined by the "cursor:" style property CSS (cascading style sheets). Style="cursor: url('cursors/mycursor.cur')" The style definition would be something like: The style is then defined by referring to the cursor's path and filename. You must upload the cursor file(s) to your web site. The cursor is defined through an HTML style, so it can be applied to any element on a page that accepts HTML style definitions. How can I change the mouse pointer on a Web page?
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |