HELP!!!, entries... |
HELP!!!, entries... |
Jun 29 2005, 06:10 PM
Post
#1
|
|
yep, that's me. stop staring. :p Group: Member Posts: 257 Joined: Jun 2005 Member No: 160,969 |
hey um do u kno how to alternate the colors fur the entries? i checked all the help post and found 1 with alternatin the entries but alternates the date too...can u guys giv me a code to alternate the entries ONLY???
|
|
|
Jun 29 2005, 06:19 PM
Post
#2
|
|
define our lives for us. Group: Staff Alumni Posts: 11,656 Joined: Aug 2004 Member No: 43,293 |
Could you give me the code for the one you found? Including the dates and the whole thing; maybe I could modify it.
|
|
|
Jun 29 2005, 06:22 PM
Post
#3
|
|
yep, that's me. stop staring. :p Group: Member Posts: 257 Joined: Jun 2005 Member No: 160,969 |
err... ok....
this in web stats.... and this in header.... plz help me.... |
|
|
Jun 29 2005, 06:37 PM
Post
#4
|
|
define our lives for us. Group: Staff Alumni Posts: 11,656 Joined: Aug 2004 Member No: 43,293 |
That doesn't even work.
|
|
|
Jun 29 2005, 06:43 PM
Post
#5
|
|
You'll find me in your dreams. Group: Official Member Posts: 8,536 Joined: Mar 2005 Member No: 114,010 |
He has them backwards. And you edit the hex codes.... o.O
#40405 is the first color and #383849 is the second. You replace those wherever you see them. |
|
|
Jun 29 2005, 07:20 PM
Post
#6
|
|
yep, that's me. stop staring. :p Group: Member Posts: 257 Joined: Jun 2005 Member No: 160,969 |
huh? o yea i think i hav it backwords....
anyways, i don wanna kno where to put the colors, i wanna kno how to make the DATE not alternate cuz it alternates wit the entries.... |
|
|
Jun 29 2005, 07:44 PM
Post
#7
|
|
You'll find me in your dreams. Group: Official Member Posts: 8,536 Joined: Mar 2005 Member No: 114,010 |
...... =/ There's not a apparent way to do that. I don't think you could do that anyways..... Althought setting the color for it with CSS might work.
|
|
|
Jun 29 2005, 07:52 PM
Post
#8
|
|
Senior Member Group: Member Posts: 148 Joined: Jan 2005 Member No: 78,650 |
if(i % 2 != 0){
if(blogheaders[i].previousSibling.tagName.toLowerCase().indexOf("div")!=-1){ blogheaders[i].previousSibling.style.backgroundColor = "#404051";} /* <--- this for the odd entry's date background */ blogheaders[i].style.backgroundColor = "#404051"; /* <-- this for the odd entry's background */ blogheaders[i].nextSibling.style.backgroundColor = "#404051"; } else{ if(blogheaders[i].previousSibling.tagName.toLowerCase().indexOf("div")!=-1){ blogheaders[i].previousSibling.style.backgroundColor = "#383849";} /*<--- this for the even entry's date background*/ blogheaders[i].style.backgroundColor = "#383849"; /* <--- this for the even entry's background*/ blogheaders[i].nextSibling.style.backgroundColor = "#383849"; } is it better for you ?? anyway, this script work for xanga., test page |
|
|
Jun 29 2005, 07:58 PM
Post
#9
|
|
yep, that's me. stop staring. :p Group: Member Posts: 257 Joined: Jun 2005 Member No: 160,969 |
umm.... it changes the date too though.....
QUOTE ...... =/ There's not a apparent way to do that. I don't think you could do that anyways..... sigh... i think shes right..... |
|
|
Jun 29 2005, 08:17 PM
Post
#10
|
|
Senior Member Group: Member Posts: 148 Joined: Jan 2005 Member No: 78,650 |
|
|
|
Jun 30 2005, 05:29 PM
Post
#11
|
|
yep, that's me. stop staring. :p Group: Member Posts: 257 Joined: Jun 2005 Member No: 160,969 |
QUOTE(ckling @ Jun 29 2005, 9:17 PM) err.... when i tried both ur examples, just a bunch of code appeared.... i first put it in header, but some code went to the top of the page an when i put it in web states, a bunch of code went to the BOTTOM of the page..... HELP!!! |
|
|
Jun 30 2005, 05:41 PM
Post
#12
|
|
You'll find me in your dreams. Group: Official Member Posts: 8,536 Joined: Mar 2005 Member No: 114,010 |
There's no script tags. Try this.
|
|
|
Jun 30 2005, 05:46 PM
Post
#13
|
|
yep, that's me. stop staring. :p Group: Member Posts: 257 Joined: Jun 2005 Member No: 160,969 |
huh? i tried that code wit the script tags, but nothin happend and the caution sign on the status bar appeared.....sigh..... need.... help....
|
|
|
Jun 30 2005, 05:47 PM
Post
#14
|
|
You'll find me in your dreams. Group: Official Member Posts: 8,536 Joined: Mar 2005 Member No: 114,010 |
Use the original in the Javascript box. The one ckling provided.
|
|
|
Jun 30 2005, 05:50 PM
Post
#15
|
|
yep, that's me. stop staring. :p Group: Member Posts: 257 Joined: Jun 2005 Member No: 160,969 |
still no use.....
|
|
|