expanding menu cursor problem

mikkel / 2009-08-12 21:19:54   

so as the content of my page grows, i have turned to the expanding menu. however, after messing around with the javascript file i have to realize i'm just not java-savvy...

my problem is that the cursor doesn't change to pointer when you mouse-over the menu titles.

i'm using thenine's expanding menu script and my theme is bogh.

i guess it's something like placing this somewhere in the script - but where? i've tried various stuff...

  1. item_title.css({cursor:"pointer"})

link to expanding menu script by thenine

Vaska A / 2009-08-12 21:26:35   

Cursor should have quotes around it.

mikkel / 2009-08-12 21:29:36   

thanks, but do I put it in the java file itself or in the stylesheet? And if in the java file - where (or anywhere)?

Vaska A / 2009-08-13 09:35:11   

I don't know...I thought you just wanted a quick debug. Somewhere in thenine's script.

It's "javascript" not "java". There is a huge difference between the two. Websites rarely use java.

lemathieu A / 2009-08-13 11:35:07   

I've done it with

  1. #menu ul li.section-title { cursor: pointer; }

mikkel / 2009-08-13 11:55:26   

@ vaska

i'll try and sort out my lingo - sorry, just a newbie at this...

@ lemathieu:

great this did the trick... thanks so much.

mikkel / 2009-08-13 12:07:58   

ok, am trying on the horizontal expanding menu layout also (theme folder called bogh2) . It works brilliantly in Firefox and IE but not in Safari.

As the menus expand the width of each column stays fixed which result in scrollbars at the bottom of each menu column... have gone through all my css, javascript and the index.php file, but i can't figure out where I go wrong.

Link to original thread on horizontal expanding menu

Any hints would be greatly appreciated...

lemathieu A / 2009-08-13 12:22:21   

and your site is ?

mikkel / 2009-08-13 12:34:10   

oh sorry!

lemathieu A / 2009-08-13 13:49:57   

hey man, looks great !
I like the way this is "slidding" when you open a section…
Really.

lemathieu A / 2009-08-13 13:58:56   

ok

just play with width:XXpx in #menu ul li.section-title {

lemathieu A / 2009-08-13 14:01:20   

but my solution will exterminate the "slide" effect.
:(

lemathieu A / 2009-08-13 14:04:54   

or…

lemathieu A / 2009-08-13 14:07:42   

… correct your css.

And come back to say what's happening.

mikkel / 2009-08-13 16:40:29   

ok I tried messing around with the css. Now it kinda shows correctly in safari (with small bugs) but I cant the open menu's to be the same width.

this is the part i changed:

  1. #menu ul li {
  2.         width: auto;¬†¬†¬†¬†
  3.         font-family:Georgia, "Times New Roman", Times, serif;
  4. ¬†¬†¬†¬†text-align: left;
  5. ¬†¬†¬†¬†font-size: 8pt;
  6. ¬†¬†¬†¬†margin: 0px 0px 3px 12px;
  7. }
  8. #menu p {
  9.         width: auto;
  10. ¬†¬†¬†¬†color: #1a1a1a;
  11. ¬†¬†¬†¬†font-family:Georgia, "Times New Roman", Times, serif;
  12. ¬†¬†¬†¬†text-align: left;
  13. ¬†¬†¬†¬†padding: 0px 0px 0px 5px;
  14.     margin: 10px 0px 9px 18px;
  15. }

before i had

  1. #menu ul li {
  2.         width: 150px;¬†¬†¬†¬†
  3.         font-family:Georgia, "Times New Roman", Times, serif;
  4. ¬†¬†¬†¬†text-align: left;
  5. ¬†¬†¬†¬†font-size: 8pt;
  6. ¬†¬†¬†¬†margin: 0px 0px 3px 12px;
  7. }
  8. #menu p {
  9.         width: 150px;
  10. ¬†¬†¬†¬†color: #1a1a1a;
  11. ¬†¬†¬†¬†font-family:Georgia, "Times New Roman", Times, serif;
  12. ¬†¬†¬†¬†text-align: left;
  13. ¬†¬†¬†¬†padding: 0px 0px 0px 5px;
  14.     margin: 10px 0px 9px 18px;
  15. }

ideas are very welcome...

monsy / 2011-04-27 04:35:18   

Hi Mikkel,

I'm very interested by the way you've donne your website. can you make a sort of theme of it. i'de like to start on you base if you agree.

I like the horizontal menu with the sliding effect. It is what i want for my website (not exactly the same). And then customize it my way. i'd like my menu to be expandable horizontally. any ideas how i can do that?

Sorry my post give you more questions than answers but i think i'm even more a newbie that you say you are.

Thank you. I'll really appreciate some help here.

This thread has been closed, thank you.