When loading a new page or leaving the old page, you can use the meta tag to control the transition effect. Similarly, the DIV (or table) tag can also use the transition effect.
The script is as follows:
Function gos (o, cur ){
O. innerHTML = "content displayed here"
Str = "this is a test in the webpage transition Application ID"
If (cur = undefined ){
// Fade-in and fade-out effect
O. filters. blendTrans. duration = 2
O. filters. blendTrans. apply ()
O. innerHTML = str
O. filters. blendTrans. play ()
} Else {
// Normal effect
O. filters. revealTrans. duration = 2
O. filters. revealTrans. Transition = cur
O. filters. revealTrans. apply ()
O. innerHTML = str
O. filters. revealTrans. play ()
}
}
</Script>
Function Description:
Gos (o, cur)
The first parameter is the object for the transition effect, such as div.
The second parameter is 0-23.
When the second parameter is not input, the transition effect is fade in and out.
Add the following style to the object for the transition effect.
Style = "FILTER: revealTrans (duration = 2, transition = 1) blendTrans (duration = 2 );"
For example, <div id = "ss" style = "FILTER: revealTrans (duration = 10, transition = 1) blendTrans (duration = 10 ); "> content shown here </div>
Duration is the transition time. In revealTrans, it controls the transition time of the general transition effect, and in blendTrans, it controls the transition time of Fade-in and fade-out.
You can also control the time in the script:
O. filters. revealTrans. duration = 2
O. filters. blendTrans. duration = 2