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.