使用提示
可以将第一步的代码直接复制到需要的位置以确定显示位置。
方法是:在视图编缉状态下将鼠标移到所需位置 点击,然后切换到HTML编缉状态,将代码粘贴到光标所在位置
很酷的变色文字
演示效果:
欢迎光临七色风网页家园:http://www.7wind.net
代码提示:将下面代码复制到<body>中
第一步:把如下代码加入<body>区域中 <style> .F1 {filter: glow(Color=#FF8000,Strength=10); width=200px; height=200px;} .F2 {filter: glow(Color=#00FF00,Strength=9); width=150px; height=200px;} .F3 {filter: glow(Color=#0080FF,Strength=12); width=250px; height=200px;} </style> <SCRIPT LANGUAGE="JavaScript"> <!-- Begin var rate = 1000 // do not edit below this line var i = 0; var F = 'F1'; function doThing() { if (document.getElementById&&document.all) { ok = true; i++; if (i==1) F = 'F1'; if (i==2) F = 'F2'; if (i==3) F = 'F3'; YammaYamma.className = F; if (i > 2) i = 0; timer = setTimeout('doThing()', rate); } } // End --> </script> <span id="YammaYamma"> <b>欢迎光临七色风网页家园:http://www.7wind.net</b> </span> 第二步:修改<body***>中的内容,将下面的代码加入原<body***>中 onLoad="doThing()"
使用提示
返回目录