Web Graphics Special Effects tips

Source: Internet
Author: User
Tricks | special Effects | Pictures Special Effects | Web page These several pages of special effects tips mainly use a few mouse control statements, CSS Filter code, plus a simple JavaScript statement implementation, simple and interesting, can be used as a help to some friends of JavaScript beginners small example.

  picture loops fade Fade

Effect Description: Picture circulation fade fade ...

Implementation method:

1. Add the following code to the area:

alt= "Image" style= "Filter:alpha (opacity=0)" >
<script language= "JavaScript" >
var b = 1;
var C = true;
function Fade () {
if (document.all);
if (c = = True) {
b++;
}
if (b==100) {
b--;
c = False
}
if (b==10) {
b++;
c = true;
}
if (c = = False) {
b--;
}
U.filters.alpha.opacity=0 + b;
SetTimeout ("Fade ()", 50);
}
</script>

2. Change the to read:

<body bgcolor= "#ffffff" >

  Note: The picture's filename and path can be modified by itself.

  Prohibit picture download

Effect Description: Set a picture prohibit downloading, the mouse moved to the picture above will give a hint, this method is not a cure, only cheat rookie.

Implementation method:

<a href= "javascript:void (0)" >
</A>

  Note: The picture's filename and path can be modified by itself.

Mouse control picture looming effect

The effect shows: The picture is initially blurred display, when the mouse moved to the picture above the picture will be clearly displayed.

Implementation method:

1. Add the following code to the area:

<script language= "JavaScript" >
<!--
function Makevisible (Cur,which) {
if (which==0)
cur.filters.alpha.opacity=100
Else
Cur.filters.alpha.opacity=20
}
-->
</SCRIPT>

2. Add the following code to the area:


>

  Note: The picture's filename and path can be modified by itself.

  Mouse control of picture size transformation

Effect Description: The beginning of the picture by setting the proportion of zoom out, the mouse moved to the top of the picture, the picture will be set in a large proportion of the preset display.

Implementation method:

Add the following code to the area:

<span id= "S1" style = "width:100" >
<a href= "index.shtml"

>

</a>
</span>

Note: The picture's filename and path can be modified by itself.



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.