Milonic provide full featured pull down web menus for some of the worlds largest companies
click here to see what it can do for you

Download Milonic DHTML Menu
Buy Milonic DHTML Menu

Back To Start Of Archive
Taken From The Forum: Help & Support for DHTML Menu Version 5+
Forum Topic: Click to view post
Last Updated: Thursday February 8 2018 - 06:02:25

Mouse pointer when no url is specified


Poster: alexdresko
Dated: Tuesday September 16 2003 - 20:14:38 BST

Is there a way to change the mouse pointer to the standard arrow pointer when the user hovers the mouse over a menu item that does not have the url parameter specified (ie, the parent menu of a group of sub menus).

It is confusing to users who don't understand why clicking on a menu item doesn't always work. At this point, the only alternative that I can think of is to make sure that all menu items have a corresponding url parameter. This way, no matter where a user clicks on the menu, they are always redirected to a web page. The biggest problem I see with that is the slight increase in file size. My menu is quite large though and it is becoming difficult to keep the file size down.


Poster: Hergio
Dated: Tuesday September 16 2003 - 20:34:44 BST

declare a css style where you specify the cursor to be the default pointer (if you dont know how to do that, search for it on google or I can post it) and then just set those items to have an onClass of the new style class. ;) Best o' luck.


Poster: John
Dated: Tuesday September 16 2003 - 20:57:00 BST

Actually it should operate that way now - at least mine do. Arrow cursor for item but no URL, I-beam for headers, hand for URLs.


Poster: Hergio
Dated: Tuesday September 16 2003 - 21:23:21 BST

John, funny, on my menu I have no URL and I still get the pointer....I just have a text and a status. I even removed the status and I still get a pointer. I am using RC10 (built at 18:06 on 9/16/03) with IE6 and Win2000. Hmmm... :?


Poster: John
Dated: Tuesday September 16 2003 - 22:43:56 BST

Haven't put the RC from today up yet. See my www below to see if you get the same thing there. IE6/XP Pro here.


Poster: alexdresko
Dated: Wednesday September 17 2003 - 1:24:46 BST

So here's the deal. I gave it all I could and I still can't get it to work.

My website has a global .css file which is included in every page. Each page also includes my menu.js file. In the css file (styles.css) I added...

.mousePoint
{
cursor:crosshair;
}

.... and in my menu.js, I tested one of the menu items with...

aI("itemwidth=200;text=About SDPC;showmenu=AboutSDPC;onClass=mousePoint");

Any clue?

Unfortunately, I cannot let the mass public in to see the website but if anyone thinks they can figure out what's wrong I'll email you the private URL.


Poster: alexdresko
Dated: Wednesday September 17 2003 - 1:31:49 BST

Oh and is there somewhere I can get the most recent version of the menu other than the main website? I wonder if the problem is because of the menu version...


Poster: alexdresko
Dated: Wednesday September 17 2003 - 3:24:06 BST

Would it be possible to specify the CSS style in-line with onClass attribute?

Something like...

onClass=cursor:auto;

...?


Poster: John
Dated: Wednesday September 17 2003 - 4:04:51 BST

alexdresko wrote:aI("itemwidth=200;text=About SDPC;showmenu=AboutSDPC;onClass=mousePoint");

Missing a closing ; after mousePoint...

Code: Select all

aI("itemwidth=200;text=About SDPC;showmenu=AboutSDPC;onClass=mousePoint;");

...but I don't really think that's it.
alexdresko wrote:Oh and is there somewhere I can get the most recent version of the menu other than the main website? I wonder if the problem is because of the menu version...

You haven't given us a clue what version and build (date) you're running, or a URL to look at.

No, the only place to get v5 right now is from the main site by buying a license.


Poster: Hergio
Dated: Wednesday September 17 2003 - 4:47:46 BST

I cannot seem to get onclass and offclass working correctly either. May be a bug, I'll have to confer with Andy.

Also you cannot declare the style inline, it must be a pre-defined style class, as per the documentation quick references.


Poster: Romeo
Dated: Monday September 22 2003 - 12:06:38 BST

Has anyone managed to get this to work yet ?
I would love to implement this on my site as a hand over a non url item is a little confusing.


Poster: Hergio
Dated: Monday September 22 2003 - 13:58:27 BST

It SHOULD work, I havent used RC11 with it yet so I can't tell ya. I will try it momentarily. If it still doesnt work, it WILL, soon. Because its supposed to be a feature. Hang tight. ;)

BUMP


Poster: alexdresko
Dated: Thursday October 9 2003 - 15:16:45 BST

Still not working. http://www.pickens.k12.sc.us. The first menu level should display the pointer and not the hand.

Beware.. extensive use of the menu :)


Poster: Hergio
Dated: Thursday October 9 2003 - 17:11:33 BST

First you need to update your menu code. YOu are using RC 6.0 and we are currently at RC15 I believe. Alots changed since then. Update your milonic_src, your mmenudom, and your mmenuns4. Make sure you've gotten rid of scriptpath stuff and read the included to docs to make sure you are set. Then see if it doesn't work.

Also, I see you are using ASP.NET. I know this isnt an .NET forum, but your viewstate is HUGE. This slows down the load time of your page unnecessarily if you don't need alot of stateful objects. You really don't seem to have any controls on your page which require state, so you may want to consider turning off the enableViewstate of most of your controls. Just a suggestion. ;) But anyways upgrade to RC 15 of the Milonic DHTML menu.


Poster: Andy
Dated: Thursday October 9 2003 - 17:39:36 BST

RC16 will include a property called "pointer" that will allow you to change the mouse pointer for each menu item.

Should be release in a day or so.

Cheers
Andy


Poster: Hergio
Dated: Friday October 10 2003 - 1:34:29 BST

excellent, how will it work with onclass? What will override what if they both have a pointer set? If I specify some styles in a class (no pointer) and use it, and then also specify a pointer (with the menu option), will they both show through?


Poster: Andy
Dated: Friday October 10 2003 - 12:50:18 BST

The menu parameter will override the CSS value.

Cheers
Andy


Poster: John
Dated: Friday October 10 2003 - 21:48:05 BST

Andy, do you have the new parameters for RC16 posted on the main site yet?


Poster: bzeitner
Dated: Tuesday October 14 2003 - 20:04:57 BST

Just a note for those interested-

You can change the pointer of any menu item now (as of RC17) using the following syntax:

Code: Select all

pointer=blah;

Where blah= any CSS pointer name (ie cursor)

This goes into the individual menu item's line.

Thanks Andy!