jquery Picture background transparency (support IE5/IE6/IE7)

Source: Internet
Author: User
Tags set background

Set background picture to highlight transparency effects and jquery png background transparent plugin instance tutorial

<title>toggle () </title>
<style type= "Text/css Tutorial" >
<!--
body{

Background:url (bg.jpg);
margin:20px; padding:0px;
}
img{
border:1px solid #ffffff;
}
-->
</style>
<script language= "Web Effects" src= "Jquery.min.js" ></script>
<script language= "JavaScript" >
$ (function () {
$ ("img"). Toggle (
function (oevent) {
$ (oevent.target). CSS ("opacity", "0.5");
},
function (oevent) {
$ (oevent.target). CSS ("opacity", "1.0");
}
);
});
</script>
<body>

</body>

See a jquery PNG background transparent plugin below

...
<script type= "Text/javascript" src= "Jquery-1.3.2.min.js" ></script>
<script type= "Text/javascript" src= "Query.pngfix.pack.js" ></script>
<script type= "Text/javascript" >
$ (document). Ready (function () {
$ (document). PngFix ();
});
</script>
...

Plug-ins not only support IE5/IE6/IE7 under the IMG tag PNG background transparent, background-image background transparent, but also support the image type of input PNG background transparent, but also achieve precise control, That is, you can make any PNG picture on the page transparent and otherwise unaffected.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.