Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

JavaScript effect applying to all linked images?

Featured Replies

Hi there, I just wondered if anyone knows of any cool effects I can add to my site using Javascript or jQuery?

 

I basically want an effect so when you hover any linked image, it fades or changes colour or something cool. I have had a look around on the net but can't seem to find anything. I don't really want to apply script to each individual image, I would like some script that I can pop onto the site and it automatically applies it too all linked images!

 

Look forward to your replies :)

If you just want it to change color you can achieve this through CSS with the pseudo :hover.

 

So you would do something like this:

 

/* Normal links */

a {
 color: #000
}

/* Hovered links */

a:hover {
 color: #ff0000
}

 

Otherwise you may be looking for something like this: http://cssglobe.com/...ks-using-jquery

Edited by .eXist

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.