javascript - Body bgcolor attribute weightage -
I have written in CSS that there will be a blue color in the body, but in javascript I have changed the body to every other color Until I joined the global CSS, I worked. I can not remove CSS because it has many rules which I can not unlink. I want in a way that all CSS rules will be loaded but the color of my body will not be affected.
There is a screenshot to prove that a change is being done on the body script but it is not shown:
Can someone show that I am using that external How can I incorporate the global CSS, but still BG can change colors in my script and CSS can not stop it.
PS: I noob :)!
Edit:
My code:
Help!
You have to change your code in this document instead of document.bgColor.
For example working
function cc () {Window.setInterval ("Farbe ()", 500); } Farbe = 1; Festival Farbe () {if (farbe == 1) {document.body.style.background = "indigo"; Farbe = 2; } And if (farbe == 2) {document.body.style.background = "red"; Farbe = 3; } And if (farbe == 3) {document.body.style.background = "orange"; Farbe = 4; } And if (farbe == 4) {document.body.style.background = "blue"; Farbe = 1; }}
Comments
Post a Comment