View Full Version : x's and o's (nav. menus)


Bebe x Baby Luv
06-01-2003, 08:00 PM
go to any HTML viewer, page builder...and put in this code

<html>
<head>
<style>
<!--
#foldheader{cursor:pointer;cursor:hand ; font-weight:bold ;
list-style-image:url(fold.gif)}
#foldinglist{list-style-image:url(list.gif)}
//-->
</style>
<script language="JavaScript1.2">
<!--

//Smart Folding Menu tree- By Dynamic Drive (rewritten 03/03/02)
//For full source code and more DHTML scripts, visit http://www.dynamicdrive.com
//This credit MUST stay intact for use

var head="display:''"
img1=new Image()
img1.src="fold.gif"
img2=new Image()
img2.src="open.gif"

var ns6=document.getElementById&&!document.all
var ie4=document.all&&navigator.userAgent.indexOf("Opera")==-1

function checkcontained(e){
var iscontained=0
cur=ns6? e.target : event.srcElement
i=0
if (cur.id=="foldheader")
iscontained=1
else
while (ns6&&cur.parentNode||(ie4&&cur.parentElement)){
if (cur.id=="foldheader"||cur.id=="foldinglist"){
iscontained=(cur.id=="foldheader")? 1 : 0
break
}
cur=ns6? cur.parentNode : cur.parentElement
}

if (iscontained){
var foldercontent=ns6? cur.nextSibling.nextSibling : cur.all.tags("UL")[0]
if (foldercontent.style.display=="none"){
foldercontent.style.display=""
cur.style.listStyleImage="url(open.gif)"
}
else{
foldercontent.style.display="none"
cur.style.listStyleImage="url(fold.gif)"
}
}
}

if (ie4||ns6)
document.onclick=checkcontained

//-->
</script>
<head>


<font face="Verdana" color="000000" size="1.5">
<ul>
<li id="foldheader">--> me</li>
<ul id="foldinglist" style="display:none" style=&{head};>
<li><a href="http://www.google.com">yeah</a></li>
<li><a href="http://www.google.com">yeah</a></li>
<li><a href="http://www.google.com">yeah</a></li>
</ul>

<li id="foldheader">--> you</li>
<ul id="foldinglist" style="display:none" style=&{head};>
<li><a href="http://www.google.com">yeah</a></li>
<li><a href="http://www.google.com">yeah</a></li>
<li><a href="http://www.google.com">yeah</a></li>
</ul>

<li id="foldheader">--> site</li>
<ul id="foldinglist" style="display:none" style=&{head};>
<li><a href="http://www.google.com">yeah</a></li>
<li><a href="http://www.google.com">yeah</a></li>
<li><a href="http://www.google.com">yeah</a></li>
</ul></ul>
</font>


ok then, display result and if your seein what I'm seein, your gonna be lookin at circles. Instead of those circles, i wanna [x] and [o]. Any way you can do it?

Bebe x Baby Luv
06-12-2003, 09:09 PM
???????

umbra
06-14-2003, 02:52 AM
try replacing the <li> to [x]

bobxp
06-14-2003, 11:18 AM
where did my post go????????????//

NO ADVERTISING

Bebe x Baby Luv
06-15-2003, 04:18 AM
it doesnt work

bobxp
06-15-2003, 11:12 AM
Now i think this No advertising is OTT, dont you? I mean, i give one web address so that someone can see the code, and it gets blanked out. I'll just have to do this.

Posting your own URL is advertising, you dont have to like it but you will follow the rule like everyone else, please dont do it again, thank you.

Now please stop this OTT no advertising. Got that? >

pb&j
06-15-2003, 03:01 PM
this is about the open and closed images? perhaps just create new images for "fold.gif" and "open.gif"?

or is it the list item spots? if so you can create images for those and use css to put them in...

<style type="text/css">
ul {list-style-type: url (SomeImage.gif);}
</style>