Editing post colors via Javascript - Won't work now
3 posters
Page 1 of 1
Editing post colors via Javascript - Won't work now
So, yesterday, I stumbled upon this thread... https://help.forumotion.com/t127662-how-to-change-post-text-background-color-change
I followed the steps and they all worked like a charm. The code was perfect and didn't seem to slip up.
However, today, after changing a bit of the CSS (not much, just working on hovers)... the post color went back to normal and I can't seem to get the colors to work again.
This is bugging me... and I need help...
I have a Phpbb2 base, if you couldn't tell from the post or what not.
Thanks in advance!
I followed the steps and they all worked like a charm. The code was perfect and didn't seem to slip up.
However, today, after changing a bit of the CSS (not much, just working on hovers)... the post color went back to normal and I can't seem to get the colors to work again.
This is bugging me... and I need help...
I have a Phpbb2 base, if you couldn't tell from the post or what not.
Thanks in advance!
Re: Editing post colors via Javascript - Won't work now
Check and see if you have these variables used anywhere other than the script provided by Ange:
- Code:
td.row1.jaune-post:nth-child(2),td.row2.jaune-post:nth-child(2){
background:#f0f0f0 url('http://i56.servimg.com/u/f56/18/21/60/73/jaune10.png') repeat-y
}
td.row1.vert-post:nth-child(2),td.row2.vert-post:nth-child(2){
background:#f0f0f0 url('http://i56.servimg.com/u/f56/18/21/60/73/vert10.png') repeat-y
}
Re: Editing post colors via Javascript - Won't work now
Sadly, I did not put this code anywhere else. I didn't even mess with any code like it. I only edited the CSS and Javascript... I still can't figure it out...
Re: Editing post colors via Javascript - Won't work now
Hello MDillon,
I have check your CSS and you're making the selectors invalid by placing 2 slashes a text before it.
Example :
That is commonly a single line comment for languages like javascript. This is NOT supported in CSS. Instead you must write comments as :
Review your CSS and edit the single line comments to fix any errors.
I have check your CSS and you're making the selectors invalid by placing 2 slashes a text before it.
Example :
- Code:
//END CHATBOX td.row1.jaune-post:nth-child(2), td.row2.jaune-post:nth-child(2) {
background:#f0f0f0 url(http://i62.tinypic.com/dr436u.png) repeat-y
}
That is commonly a single line comment for languages like javascript. This is NOT supported in CSS. Instead you must write comments as :
- Code:
/* THIS IS A COMMENT */
td.row1.jaune-post:nth-child(2), td.row2.jaune-post:nth-child(2) {
background:#f0f0f0 url(http://i62.tinypic.com/dr436u.png) repeat-y
}
Review your CSS and edit the single line comments to fix any errors.
Re: Editing post colors via Javascript - Won't work now
Thank you very much! I'm so used to using comments in my coding that I didn't realize that it doesn't work on CSS... Simple mistake, but thank you!
Similar topics
» Javascript Won't Work for "All Pages"
» Colorize cell wont work
» Editing A Snow Javascript
» Add name colors via JavaScript?
» Javascript Codes don't work
» Colorize cell wont work
» Editing A Snow Javascript
» Add name colors via JavaScript?
» Javascript Codes don't work
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum