Autor Beitrag
WeBsPaCe
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 2322
Erhaltene Danke: 1

FireFox 3, Internet Explorer 6 SP1
D1, D3Prof, D6Pers, D7Pers+Indy, VisualStudio Express
BeitragVerfasst: So 12.06.05 14:53 
Moin... ;)

Ich würde gern per JavaScript den Hintergrund meines HTML-Dokuments ändern. ;) Sollte doch machbar sein, oder? Im Moment wühle ich grad die SELFHTML-Referenz durch aber bis jetzt ohne Erfolg... :(

Kann mir bitte jemand helfen?

Danke! :D
Aya
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 1964
Erhaltene Danke: 15

MacOSX 10.6.7
Xcode / C++
BeitragVerfasst: So 12.06.05 15:00 
Hi,

wirst du wohl über CSS machen müßen und diese dann entsprechend mit JS anpassen.

ausblenden Quelltext
1:
document.all.DynText.style.backgroundColor = "yellow";					


SelfHTML -> de.selfhtml.org/java...pt/objekte/style.htm

Au'revoir,
Aya~

_________________
Aya
I aim for my endless dreams and I know they will come true!
WeBsPaCe Threadstarter
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 2322
Erhaltene Danke: 1

FireFox 3, Internet Explorer 6 SP1
D1, D3Prof, D6Pers, D7Pers+Indy, VisualStudio Express
BeitragVerfasst: So 12.06.05 15:05 
Hmmm... Jop... Ich mach's jetzt auch über CSS:
ausblenden Quelltext
1:
2:
3:
4:
5:
6:
document.write("<style type=\"text/css\">");
document.write("body");
document.write("{");
document.write("background-image: url(../graphic/bkgrnd.jpg);");
document.write("}");
document.write("</style>");


Danke! ;)