有什么问题请到评论中发表<br> <!-- http://www.mb5u.com/ --> <!-- http://wWw.mb5u.com--> <!--完成此效果需要把下面代码放到<body>区域中--> <div align="left"> <SCRIPT language=JavaScript> <!-- //----------------------- Start Customizable Variables -----------------------// //=== Positioning ===// var left = 100; // Starting left position var top = 20; // Starting left position //=== Curve and Distance ===// var topInc = 5; // Incriment of top position var leftInc = 5; // Incriment of left position /* Make both the horizontal curve and the vertical curve the same to.. .. get an increasing gap with no curve. */ var hor_curve = 20; // Horizontal curve - 0 for no curve var ver_curve = -20; // Vertical curve - 0 for no curve //=== Timing and Other ===// var noTimes = 50; // Number of times the picture is shown var waitTime = 1; // Time delay var layer = 2; // Layer level var picture = '/images/logo.gif'; // Picture to display (Smaller images work better) var start_retracted= true; // Start the image retracted (true / false) var retract= true; // Retract from behind after expanding (true / false) //=== Fade options (Only IEusers see fade) ===// var fade = true; // Gradual Fade (true / false) - Only works if retract =true var fd_destop = 0; // Destination transparency level (ie 80, for mostly solid) var fd_rate = 10; // Time in milliseconds between trasparency changes (best under 100) var fd_delta = 5; // Amount of change each time (ie 5, for 5% change in transparency) var event_init = 'onClick'; // Event at which the script is initiated var left_formula = '(left + leftInc) + ((count/100) * hor_curve)'; // Left position formula var top_formula = '(top + topInc) + ((count/100) * ver_curve)'; // Top position formula //----------------------- End Customizable Variables -----------------------// //--------------------- DO NOT EDIT BEYOND THIS POINT! ---------------------// var count = 0; var count2 = 0; var timeOutVal = waitTime * 10; var txt; var image; var imageName; var lay = new Array; function addLayer(){ left = eval(left_formula); top = eval(top_formula); txt = "<div id='Layer" + count + "' style='position:absolute; visibility:hidden; left:" + left + "; top:" + top + "; z-index:" + layer + "'>"; txt += "<a href='#' " + event_init + "='replay()'><img src='" + picture + "' border=0 style='filter:alpha(opacity=100)' name = 'Image" + count + "'></a>"; txt += "</div>"; document.write(txt); lay[count]=new lib_obj("Layer"+count); } function logoCurveInit(){ while (count < noTimes) { addLayer(); count++; } count = 0; lay[0].showIt(); if (!start_retracted) animate(); } function animate(){ if (start_retracted) { if (!retract){ if (count > 0){ setTimeout('animate()',timeOutVal); lay[count].hideIt(); count--; } } else{ if (count >= 0){ setTimeout('animate()',timeOutVal); lay[count].showIt(); if (count != 0) fadeImage(); count--; } } if (retract){ if(count==0) retractIt(); } } else{ if (count < noTimes){ setTimeout('animate()',timeOutVal); lay[count].showIt(); if (count != noTimes-1 && retract) fadeImage(); count++; } if (retract){ if (count == noTimes) retractIt(); } } } function replay(){ if ((count == noTimes || (count == 0 || count == -1)) &&(count2 == noTimes-1 || count2 =</body></html>