Tutorials to .com

Tutorials to .com » Asp » Encoding » Picture gradually show (on entry)

Picture gradually show (on entry)

Print View , by: iSee ,Total views: 12 ,Word Count: 180 ,Date: Wed, 27 May 2009 Time: 10:41 AM

The first step: the following code to <body> region
<img src = "http://my.6to23.com/redriver/helpor/picture/swimming.gif" name = "u" border = 0
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>


Step two: <body> region to be re -
<body bgcolor="#fef4d9" onLoad="fade()">


Asp Script encoding Articles


Can't Find What You're Looking For?


Rating: Not yet rated

Comments

No comments posted.