看到彩色的色带吗?很Cool哦.
1.将下面的代码复制到内


2.生成参数
createHR(startColor, endColor, steps, width, height
[, crossBrowser, direction [, align ]]])
startColor:开始的颜色; endColor:结束的颜色,steps:渐变的阶数;width:色带的长度;height:色带的宽;crossBrower:跨越浏览器;direction:方向

下面是本页用的参数例子
t1=createHR("00FF00","FF00FF",32,"50%",3, true)
t2=createHR("CCFF00","FF00CC",16,32,16, true)
t3=createHR("FF0000","FFFFFF",32,5,150, true, true, "left")
t4=createHR("FFFFFF","0000FF",32,5,150, true, true, "right")
t5=createHR("FFAA00","AA00EE",32,100,8, true, false, "center")
t6=createHR("00FFFF","FF00FF",32,32,32, true, true)
document.write(t1)
document.write(t2)
document.write(t3)
document.write(t4)
document.write(t5)
document.write(t6)