Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Run javascript through CSS?

Status
Not open for further replies.

WhiteTiger

Programmer
Jun 26, 2001
605
US
IS it possible to make all of a certian tag call a javascript function via CSS? Regards,
Anth:cool:ny
----------------------------------------
"You say [red]insanity[/red] like it's a BAD THING!"
 
not via css & not in nc4x, but its really possible :) regards, vic
 
ok, now i gotta go, so i wont make u wait till tomorrow:
here is a simple example:

make a function from this code & call it onload:

var obj=document.all.tags("span")
for (var ii=0; ii<obj.length; ii++){
obj[ii].onkeyup=func
}

but i am not shure how u can paqss smth to that function: u c, if u'll write obj[ii].onkeyup=func(param) then this function wuld be called imidiatly, but not onkeyup.. :-(
but i'm shure it can be done.. regards, vic
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top