function glowit2(which) { if (document.all.glowtext.filters[0].strength==2) { document.all.glowtext.filters[0].strength=1; document.all.glowtext.filters[0].color='red'; } else { document.all.glowtext.filters[0].strength=2 document.all.glowtext.filters[0].color='green'; } } function startglowing() { if (document.all.glowtext&&glowtext.length) { for (i=0;i<glowtext.length;i++) eval('setInterval("glowit('+i+')",150)') } else if (glowtext) setInterval("glowit2(0)",150) }
function glowit2(which) { if (document.all.glowtext.filters[0].strength==2) document.all.glowtext.filters[0].strength=1 else document.all.glowtext.filters[0].strength=2
document.all.glowtext.filters[0].color=step==1?"reg":"green" step=(step+1) % 2 } function startglowing() { if (document.all.glowtext&&glowtext.length) { for (i=0;i<glowtext.length;i++) eval('setInterval("glowit('+i+')",150)') } else if (glowtext) setInterval("glowit2(0)",150) }
<HEAD>
<style>
#glowtext{
filter:glow(color=red,strength=2);
width:100%;
}
</style>
<script language="JavaScript1.2">
var step=0;
function glowit(which){
document.all.glowtext[which].filters[0].color = (step==0)?"red":"green"
if (document.all.glowtext[which].filters[0].strength==2)
document.all.glowtext[which].filters[0].strength=1
else
document.all.glowtext[which].filters[0].strength=2
step = (step+1)%2
}
function glowit2(which) {
document.all.glowtext.filters[0].color = (step==0)?"red":"green"
if (document.all.glowtext.filters[0].strength==2)
document.all.glowtext.filters[0].strength=1
else
document.all.glowtext.filters[0].strength=2
step = (step+1)%2
}
// ...
<HEAD>
<style>
#glowtext{
filter:glow(color=green,strength=2);
width:100%;
}
</style>
<script language="JavaScript1.2">
function glowit(which){
if (document.all.glowtext[which].filters[0].strength==2) {
document.all.glowtext[which].filters[0].strength=1;
document.all.glowtext[which].filters[0].color='red';
}
else {
document.all.glowtext[which].filters[0].strength=2
document.all.glowtext[which].filters[0].color='green';
}
}
function glowit2(which) {
if (document.all.glowtext.filters[0].strength==2) {
document.all.glowtext.filters[0].strength=1;
document.all.glowtext.filters[0].color='red';
}
else {
document.all.glowtext.filters[0].strength=2
document.all.glowtext.filters[0].color='green';
}
}
function startglowing() {
if (document.all.glowtext&&glowtext.length) {
for (i=0;i<glowtext.length;i++)
eval('setInterval("glowit('+i+')",150)')
}
else if (glowtext)
setInterval("glowit2(0)",150)
}
if (document.all)
window.onload=startglowing
</script></HEAD><BODY>
<DIV id="glowtext">yuxuemei.yeah.net1</DIV>
<DIV id="glowtext">yuxuemei.yeah.net2</DIV>
<DIV id="glowtext">yuxuemei.yeah.net3</DIV>
</BODY>
</HTML>
<HEAD>
<style>
#glowtext{
filter:glow(color=red,strength=2);
width:100%;
}
</style>
<script language="JavaScript1.2">
var step=0;
function glowit(which){
if (document.all.glowtext[which].filters[0].strength==2)
document.all.glowtext[which].filters[0].strength=1
else
document.all.glowtext[which].filters[0].strength=2
document.all.glowtext[which].filters[0].color=step==1?"red":"green";
step=(step+1) % 2;
}
function glowit2(which) {
if (document.all.glowtext.filters[0].strength==2)
document.all.glowtext.filters[0].strength=1
else
document.all.glowtext.filters[0].strength=2
document.all.glowtext.filters[0].color=step==1?"reg":"green"
step=(step+1) % 2
}
function startglowing() {
if (document.all.glowtext&&glowtext.length) {
for (i=0;i<glowtext.length;i++)
eval('setInterval("glowit('+i+')",150)')
}
else if (glowtext)
setInterval("glowit2(0)",150)
}
if (document.all)
window.onload=startglowing
</script></HEAD><BODY>
<DIV id="glowtext">yuxuemei.yeah.net1</DIV>
<DIV id="glowtext">yuxuemei.yeah.net2</DIV>
<DIV id="glowtext">yuxuemei.yeah.net3</DIV>
</BODY>
</HTML>
filter:glow(color=red,strength=2);
filter:glow(color=green,strength=2);
width:100%;
}
里面的glow(color=red,strength=2);是什么意思???glow()是内部函数还是什么???
怎么我把你们的代码全copy下来就不行呢?
<SCRIPT LANGUAGE="JavaScript">
setInterval("blink.style.color=(blink.style.color=='green')?'red':'green'",200)
</SCRIPT>
ssm1226(雨中人)的
http://hazeline.vip.sina.com/example03.htm
我,hazeline(砸死我)的
http://hazeline.vip.sina.com/example02.htm
temp_i=1;
function flash_sms()
{ for (i=1;i<=4;i++)
{
if (i==temp_i) temp_str="red"; else temp_str="black";
eval("java"+i+".style.color='"+temp_str+"';");
}
temp_i++;
if (temp_i>4) temp_i=1;
}
setInterval("flash_sms()",300);
</script>