Autor | Zpráva | ||
---|---|---|---|
Lord.Byron Profil * |
#1 · Zasláno: 4. 2. 2009, 13:14:09
Zdravim,
mam tento js kod: var el = document.getElementById('element1'); el.style = "background-image: none; font-weight: normal; color: red; text-decoration: underline"; problem je, ze takovato zmena stylu funguje jen v opere. Nevite, jak priradit elementu vice stylu pri zachovani funkcnosti v prohlizecich pres getElementById? Dik |
||
Chamurappi Profil |
#2 · Zasláno: 4. 2. 2009, 13:22:08 · Upravil/a: Chamurappi
Reaguji na Lorda.Byrona:
el.style.cssText = "background-image: none; font-weight: …"; el.style.backgroundImage = "none"; el.style.fontWeight = "normal"; el.style.color = "red"; el.style.textDecoration = "underline"; |
||
Lord.Byron Profil * |
#3 · Zasláno: 4. 2. 2009, 13:24:53
diky moc, funguje
|
||
Časová prodleva: 15 let
|
0