Hot!Ajax

...because open source matters

  • Increase font size
  • Default font size
  • Decrease font size

Semitransparent rollovers made easy with JQuery

E-mail
(6 VOTITALY_VOTES, VOTITALY_AVERAGE: 4.67 VOTITALY_OUTOF)
Image

Background has a gradient effect, so you can see that the glowing borders flow smoothly on rollover. Try that with a gif!

Place Your Text Here

from:coderseye.com

demo:http://www.hotajax.org/download/jquery/pngrollover/index.html

download:http://www.hotajax.org/download/jquery/pngrollover.zip

Semitransparent rollovers made easy with JQuery
This article shows a simple method for enabling semi-transparent rollovers which actually work on IE 6. Yes, you could use a .gif file for a crude version, but many effects, especially “glowing” effects just look much better if you use a format which supports alpha channel transparency.

How to use my solution:

Make your images and rollovers. Put them in the same directory, and make sure to name the rollover images with an “_on.png” suffix. For example, if your main image is “btn_home.png”, your rollover image should be named “btn_home_on.png”. Markup your image tags with IDs that match the stem of the button name. For example, if your button is named “btn_home.png”, then the id should be “home”. Note that you need the height and width for the images, as pngfix requires that information. Then, wrap those images in a list tage, all surrounded with an element of class “nav”.


Comments (0)add comment

Write comment
You must be logged in to post a comment. Please register if you do not have an account yet.

busy

LBL_NEWERNAME
LBL_OLDERNAME

 

Google Translator

link

  • jQuery

  • MooTools

  • boygj.com

  • Ajax技术论坛

  • QQ网址大全
  • Joomla!-开源天空
  • Web Development (Scripts) - TOP.ORG

We have 41 guests online