PDA

View Full Version : Removing bullets from menu list



Ulysses
Aug 18th, 2007, 10:51 AM
Hi,

I have tried putting list-style-type: none; in various places to remove the circle bullets from the list style in the code but I must be doing something wrong. I've been at it all day without any joy. :confused:

How can I remove the circle bullets from the expanding menus on this page (http://apcinternet.com/ftp/zahmaci/) ?

Thanks

Ulysses
Aug 18th, 2007, 11:09 AM
I found the code. It wasn't the CSS, it was the JavaScript!!!

Now I'm in the wrong forum. But in case anyone knows how to just take the bullets out, here's the offending code:


if(otherLinksz[shzi]==this){
this.style.color="#006600";
if(currentLinkTextz.indexOf("o ")=="0"){
this.innerHTML = "o " + currentLinkTextz.split("o ")[1];
}else{
this.innerHTML = "o " + currentLinkTextz.split("o ")[0];
}
}else{
otherLinksz[shzi].style.color="#6D951A";
if(otherLinksTextz.indexOf("o ")=="0"){
otherLinksz[shzi].innerHTML = otherLinksTextz.split("o ")[1];
}else{
otherLinksz[shzi].innerHTML = otherLinksTextz.split("o ")[0];
}
}

The colour change can stay. I just want the bullets gone. :rolleyes:

Thanks.

effpeetee
Aug 18th, 2007, 02:55 PM
http://sg.answers.yahoo.com/question/index?qid=20070813122011AAgzEIj

I don't know if this will help you, but it will only take a few moments to find out.

Regards,

Frank

Ulysses
Aug 18th, 2007, 03:01 PM
Thanks Frank. Appreciate the link.

abduraooft
Aug 18th, 2007, 04:39 PM
The colour change can stay. I just want the bullets gone.


Hope adding a line

this.style.listStyle="none"; will solve the issue!
Have a look for details..
http://www.w3schools.com/htmldom/prop_style_liststyle.asp

Ulysses
Aug 20th, 2007, 12:25 AM
Hope adding a line

this.style.listStyle="none"; will solve the issue!
Have a look for details..
http://www.w3schools.com/htmldom/prop_style_liststyle.asp

Thanks. We found and removed the offending bit of code, which was:

if(otherLinksz[shzi]==this){
this.style.color="#006600";
if(currentLinkTextz.indexOf("o ")=="0"){
this.innerHTML = "o " + currentLinkTextz.split("o ")[1];
}else{
this.innerHTML = "o " + currentLinkTextz.split("o ")[0];
}
}else{
otherLinksz[shzi].style.color="#6D951A";
if(otherLinksTextz.indexOf("o ")=="0"){
otherLinksz[shzi].innerHTML = otherLinksTextz.split("o ")[1];
}else{
otherLinksz[shzi].innerHTML = otherLinksTextz.split("o ")[0];
}
}

That got rid of it!