Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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;
}
```