Log In · Register

 
 
Closed TopicStart new topic
Collapsible Nav - Horizontal, no clue
TheKnell
post Mar 9 2005, 06:45 PM
Post #1


Sucker for Caramel
****

Group: Member
Posts: 162
Joined: Sep 2004
Member No: 47,875



Okay, I'm using the collapsible module code for my navigation, but I want it to be displayed horizontally instead of vertically. I'm not good with javascript at all, so could someone help? :)

Xanga: http://www.xanga.com/home.aspx?user=TinksieBelle

Code:
 
waccoon
post Mar 9 2005, 06:50 PM
Post #2


We are the cure.
*******

Group: Staff Alumni
Posts: 4,936
Joined: Jan 2004
Member No: 1,456



The only thing I can think of is to increase the size of your div.
 
largosama
post Mar 9 2005, 06:55 PM
Post #3


Happy Person
******

Group: Member
Posts: 1,729
Joined: Feb 2004
Member No: 4,674



hmmm use a visibility toggler and then absolute position 2 divs to give and illusion of a menu i guess
 
TheKnell
post Mar 9 2005, 06:58 PM
Post #4


Sucker for Caramel
****

Group: Member
Posts: 162
Joined: Sep 2004
Member No: 47,875



Hrrrmm...I tried increasing the size of the submenu, but it just moved the whole thing to the left. What do you the size of the div? I'm not seeing how that would help. It's not that the submenu is too wider or anything. I need to change the script, but I have no clue how to javascript works. Lol.

hmmm use a visibility toggler and then absolute position 2 divs to give and illusion of a menu i guess

^^??? Very lost on that. Sorry.
 
largosama
post Mar 9 2005, 07:19 PM
Post #5


Happy Person
******

Group: Member
Posts: 1,729
Joined: Feb 2004
Member No: 4,674



well you have your script that goes in website stats:



Then you position a div
CODE
<div style="position:static;margin-left:###px; margin-top:###px; width:###px; height:###px; background:#fff;"><a href="#" onClick="toggle('Navigation')">Navigation>></a></div>

which will have the link to enable the second div, which will be invisible and next to the first, meaning the margin-left number will be greater

CODE
<div id="Navigation" style="position:static;margin-left:###px; margin-top:###px; width:###px; height:###px; background:#fff; visibility:hidden;">NAVIGATION LINKS</div>
 
TheKnell
post Mar 9 2005, 07:28 PM
Post #6


Sucker for Caramel
****

Group: Member
Posts: 162
Joined: Sep 2004
Member No: 47,875



Oh, I get it! I gotta go, but I'm gonna try that!
 
largosama
post Mar 9 2005, 11:38 PM
Post #7


Happy Person
******

Group: Member
Posts: 1,729
Joined: Feb 2004
Member No: 4,674



heh good luck don't get frustrated
 
TheKnell
post Mar 10 2005, 01:42 PM
Post #8


Sucker for Caramel
****

Group: Member
Posts: 162
Joined: Sep 2004
Member No: 47,875



It worked! It was really easy, too. I never knew that code existed. Heh. I like it a lot. :D
 
souldreamers
post Mar 10 2005, 04:07 PM
Post #9


mmm hmmm
******

Group: Member
Posts: 1,591
Joined: Sep 2004
Member No: 47,325



QUOTE(TheKnell @ Mar 10 2005, 1:42 PM)
It worked! It was really easy, too. I never knew that code existed. Heh. I like it a lot. :D
*


- Topic Closed -
 

Closed TopicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members: