Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/andrew--r/pseudohover
Highlight on hover all links with the same href
https://github.com/andrew--r/pseudohover
Last synced: about 6 hours ago
JSON representation
Highlight on hover all links with the same href
- Host: GitHub
- URL: https://github.com/andrew--r/pseudohover
- Owner: andrew--r
- Created: 2015-09-19T16:35:39.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2015-09-19T16:47:56.000Z (about 9 years ago)
- Last Synced: 2024-05-14T00:44:46.639Z (6 months ago)
- Language: JavaScript
- Homepage: http://codepen.io/andrew-r/full/pjbzMM/
- Size: 113 KB
- Stars: 4
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# PSEUDOHOVER
A tiny script that makes you able to highlight on hover all links with the same `href` attribute.Works in all modern browsers (IE10+ due to usage of classList API).
## Usage
Just put script into your page:```html
```
When link will be hovered, script will add class `.js-hovered` to all links with the same `href` attribute. So in your CSS it must be something like that:
```css
a {
text-decoration: underline;
color: blue;
}/* add selector for .js-hovered class */
a:hover, a.js-hovered {
text-decoration: none;
}
```