tootips

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
christopherO
Advanced
Advanced
Posts: 21
Joined: Wed Dec 21, 2005 3:48 pm

tootips

Post by christopherO »

I have followed the directions but cannot get the tool tips to show on site [http://www.malikonline.co.uk]

In the head/head section I have put:
<script type="text/javascript" src="milonictooltips.js"></script>
(I renamed the js file for easy identification)

In the menu I have added a couple of example tips to test and get started:

with(milonic=new menuname("Hair1")){
style=background;
aI("text=Hair - human;url=store.php?crn=222;tooltip=A beautiful range of wigs and hair pieces<br>made from human hair - please click here wait for us to search and display the products;");
aI("text=Hair - synthetic;url=store.php?crn=224;tooltip=A beautiful range of synthetic wigs and hair pieces<br>- please click here wait for us to search and display the products;");
aI("text=Clips & Accessories;url=store.php?crn=206;");

They do not show - what have I missed???
Migru
Milonic Guru
Milonic Guru
Posts: 669
Joined: Tue Nov 01, 2005 8:22 pm
Location: Hamburg - Germany
Contact:

tooltips

Post by Migru »

Hi

don´t put this file into the head section. Place it after the other menu-definition files, which should be placed just after the body tag.

<body>
javaScript....milonic files
javaScript....menu_data file
<SCRIPT language=JavaScript src="tooltips.js" type=text/javascript></SCRIPT>


This should work
Michael
christopherO
Advanced
Advanced
Posts: 21
Joined: Wed Dec 21, 2005 3:48 pm

Post by christopherO »

Thanks for the fast response.
I had all my Milonic script in the head section.
I have moved these to the BODY section and added the tooltips line as recommended:

<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<script type="text/javascript" src="milonic_src.js"></script>
<script type="text/javascript">
if(ns4)_d.write("<scr"+"ipt type=text/javascript src=mmenuns4.js><\/scr"+"ipt>");
else _d.write("<scr"+"ipt type=text/javascript src=mmenudom.js><\/scr"+"ipt>");
</script>
<script type="text/javascript" src="menu_data.js"></script>
SCRIPT language=JavaScript src="milonictooltips.js" type=text/javascript></SCRIPT>


Unfortunately the tips still do not appear.
These should be at
Afro Caribbean Shop > Hair Wigs Etc > Hair - human & Hair - synthetic

There must be something simple that I am doing wrong?

Thanks

Chris
Migru
Milonic Guru
Milonic Guru
Posts: 669
Joined: Tue Nov 01, 2005 8:22 pm
Location: Hamburg - Germany
Contact:

tooltip

Post by Migru »

Hi

try if this works:

ai=("...........;onfunction=showtip('text');url=filepath/file;");


Michael
User avatar
Andy
Milonic
Milonic
Posts: 3308
Joined: Sun May 19, 2002 8:23 pm
Location: Menu Developer
Contact:

Post by Andy »

I've just posted a demo of the new tooltips at http://milonic.com/tooltips.php

Still no Docs yet, should be tomorrow but you can do a view source.

Just make sure that you download the new menu and the new tooltips.js file.

Hope this helps,
Andy
Migru
Milonic Guru
Milonic Guru
Posts: 669
Joined: Tue Nov 01, 2005 8:22 pm
Location: Hamburg - Germany
Contact:

tooltips

Post by Migru »

Great !!!!!!!!!!!!

Michael
christopherO
Advanced
Advanced
Posts: 21
Joined: Wed Dec 21, 2005 3:48 pm

Post by christopherO »

Migru

Thanks for the tip. Sadly I still have a problem getting it to show.

I have added the following item to my menu in the form you suggested (I hope I got this right):

aI=("text=Hair - human;onfunction=showtip('A beautiful range of wigs and hair pieces<br>made from human hair - please click here wait for us to search and display the products');url=store.php?crn=222;");

The item shows on the menu -- but not the tool tip. I have to admit to getting just a little frustrated :?

Thanks
Migru
Milonic Guru
Milonic Guru
Posts: 669
Joined: Tue Nov 01, 2005 8:22 pm
Location: Hamburg - Germany
Contact:

tooltips

Post by Migru »

Test result:

Your syntax you are using
- in submenu "Afro Caribbean shop" and there
- sub Hair Wigs etc the first two sub items

a) hair human and
b) hair syntetic

is correct.

The tooltips pop up on my monitor, when I am running the testpage using
Standard HTML setup as follows

Code: Select all

<HTML>
<HEAD>
   <TITLE>tooltips test</TITLE>
</HEAD>
<BODY>
<SCRIPT language=JavaScript src="milonic_src.js" type=text/javascript></SCRIPT>
<script language=JavaScript>
if(ns4)_d.write("<scr"+"ipt language=JavaScript src=mmenuns4.js><\/scr"+"ipt>");
else _d.write("<scr"+"ipt language=JavaScript src=mmenudom.js><\/scr"+"ipt>"); </script>
<SCRIPT language=JavaScript src="menu_data.js" type=text/javascript></SCRIPT>
<SCRIPT language=JavaScript src="tooltips.js" type=text/javascript></SCRIPT>

<BR>
<BR>
<BR>
<FONT SIZE="-2" FACE="Arial">
<A href="http://websites.milonic.com/milonic.com/">JavaScript Menu Courtesy of Milonic.com<!--/SELECTION--></A></FONT>

</BODY>
</HTML>
Pls take care that you are using the newest tooltips.js code.
For testing only, I downloaded your menu_data.js file, made a simple HTML file as listed above and there, the tooltips worked as reported.
There may be some other syntax errors with regard to tooltips in other submneu items, so pls. look into that.

Michael
christopherO
Advanced
Advanced
Posts: 21
Joined: Wed Dec 21, 2005 3:48 pm

Post by christopherO »

I have spent a lot of time trying to resolbe this without success.
So I have created a 'MINIMALIST' page :
http://www.malikonline.co.uk/indextest.php with no possibility of conflicting scripts.

The html is:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Malik Stores Online</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link href="squirrelcart/themes/squirrelcart/store.css" rel="stylesheet" type="text/css">
</head>

<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<script type="text/javascript" src="milonic_src.js"></script>
<script type="text/javascript">
if(ns4)_d.write("<scr"+"ipt type=text/javascript src=mmenuns4.js><\/scr"+"ipt>");
else _d.write("<scr"+"ipt type=text/javascript src=mmenudom.js><\/scr"+"ipt>");
</script>
<script type="text/javascript" src="menu_data2.js"></script>
<SCRIPT language=JavaScript src="milonictooltips.js" type=text/javascript></SCRIPT>
</body>
</html>


Then I created a new menu_data2 with just one menu column to reduce the possibility of syntax errors.
This is:

with(milonic=new menuname("Main Menu")){
alwaysvisible=1;
itemheight=25;
itemwidth=183;
left=0;
orientation="horizontal";
overflow="scroll";
followscroll=0;
style=background;
top=0;
aI("bgimage=images/xp_button_turq.gif;image=images/xp_eject.gif;overbgimage=images/xp_button_purpon.gif;showmenu=AfroShop;text=Afro-Caribbean SHOP;");
}

with(milonic=new menuname("AfroShop")){
alwaysvisible=0;
itemheight=25;
itemwidth=182;
orientation="vertical";
overflow="scroll";
style=background;
top=32;

aI("showmenu=Hair1;status=Solutions, as used by Milonic;text=Hair, Wigs, etc;");
}
with(milonic=new menuname("Hair1")){
style=background;
overflow="scroll";
aI("text=Hair - human;url=store.php?crn=222;tooltip=A beautiful range of wigs and hair pieces<br>made from human hair - please click here wait for us to search and display the products;tipdelay=200;tipfollow=1;");
aI("text=Hair - synthetic;url=store.php?crn=224;tooltip=A beautiful range of synthetic wigs and hair pieces<br>- please click here wait for us to search and display the products;tipdelay=200;tipfollow=1;");
}

drawMenus();

Yet I still do not get the tooltips working! :?
Migru
Milonic Guru
Milonic Guru
Posts: 669
Joined: Tue Nov 01, 2005 8:22 pm
Location: Hamburg - Germany
Contact:

Test - minimalist page

Post by Migru »

Tested your files in my PC
had to add the reference to Milonic to make it work with my milonic files.
Even have made a copy of my tooltips.js, to have it named as you do.

I´m using FF 1.5 and IE 6.01, the two tooltips both are visible not only using one of these browsers but in Opera 8.5 too!!

So this code is ok, too.
Do you have a license and really the latest version 5-738 ?


Michael
christopherO
Advanced
Advanced
Posts: 21
Joined: Wed Dec 21, 2005 3:48 pm

Post by christopherO »

Yes - I am licenced for this domain - which is why the menu does not have a return to Milonic; and I am using version 5.735 of November 16, 2005 so that should be OK?

It feels that I cannot use the tooltips [but that's ridiculous] - I just don't know what I can do to resolve this but many thanks for all your time and help. :)
Migru
Milonic Guru
Milonic Guru
Posts: 669
Joined: Tue Nov 01, 2005 8:22 pm
Location: Hamburg - Germany
Contact:

Version

Post by Migru »

Hi

This is the reason, I think, why this code is not working within your files setup. There were some modifications in the past versions. When I introduced some tooltips e.g. , that worked only using the code ....onfunction=showtip..etc. . as I noted earlier.
I did not test it using the 5-735 files but 738 only.

Michael
christopherO
Advanced
Advanced
Posts: 21
Joined: Wed Dec 21, 2005 3:48 pm

Post by christopherO »

Migru

I have downloaded the latest version and it works!!

Perhaps Milonic should put a note with tooltips download that this version is needed?

Many thanks
Migru
Milonic Guru
Milonic Guru
Posts: 669
Joined: Tue Nov 01, 2005 8:22 pm
Location: Hamburg - Germany
Contact:

Versions

Post by Migru »

Please do not blame Milonic,
they are doing an excellent job for an excellent product, and if you go through this forum, you get so many hints and indirect replies to most of your questions. And it is most difficult, to develop a product and improve it permanently, when the requirements by software, operating systems and users are growing permanently too. And I think, that somewhere you can read, that always the latest version only can be subject of any support to be expected !

Michael
christopherO
Advanced
Advanced
Posts: 21
Joined: Wed Dec 21, 2005 3:48 pm

Post by christopherO »

Please don't misunderstand me - it was intended as a recommendation to help users. I am also very impressed with Milonic and consider this one of the best investments I have made. :)
User avatar
John
 Team
 Team
Posts: 5967
Joined: Sun May 19, 2002 8:23 pm
Location: Phoenix, AZ
Contact:

Post by John »

christopherO wrote:Perhaps Milonic should put a note with tooltips download that this version is needed?
From the top of the tooltips file itself...
Milonic DHTML Menu Tooltips Module tooltips.js version 2.1 - 20th December 2005
This module is only compatible with the Milonic DHTML Menu version 5.738 or higher
John
Kristamk2447
Beginner
Beginner
Posts: 8
Joined: Fri Dec 30, 2005 9:02 pm

Tooltips

Post by Kristamk2447 »

Just a suggestion if you cannot get the Tooltips to work.
Link removed by Moderator
Migru
Milonic Guru
Milonic Guru
Posts: 669
Joined: Tue Nov 01, 2005 8:22 pm
Location: Hamburg - Germany
Contact:

no alternative

Post by Migru »

Hi

Thats not an alternative !!
We talk about a menu system, tooltips are accessory parts.
And you are not following rules of this forum.

Michael
Kristamk2447
Beginner
Beginner
Posts: 8
Joined: Fri Dec 30, 2005 9:02 pm

Tooltips

Post by Kristamk2447 »

Yikes, my apologies. Yes, it does not have to do with menus, simply tool tips.
pieter53
Super Advanced
Super Advanced
Posts: 44
Joined: Sat Nov 18, 2006 9:49 am
Location: Schoonoord, The Netherlands
Contact:

Post by pieter53 »

Sorry, English is not my native language. I hope you will understand my problem.
I have a tooltip in a 'main'menu, but now the submenu doesn't show.
Is there a way to make that work?

btw. I think your menus are GREAT. Thanks a lot!
Post Reply