Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Difficulty configuring DHTML menu script

Status
Not open for further replies.

JProg

Programmer
Apr 4, 2002
88
0
0
JP
Hi Everyone,

I have found a freely available menu script on the internet and am having some difficulty understanding how to declare menu and sub-menu hierarchy using the script. The script can be downloaded from:


I am particularly interested in altering the bottom example, which resembles the start button from Windows. To this end I have succeded in changing the graphic for the button and in changing some of the menu item graphics. I am now attempting to change the menu structure but I am being faced with script errors. If somebody could please explain how to declare menu items and their corresponding sub-menu items (where applicable) I will be very appreciative. Thanks for your time.

Kind Regards

Davo
 

Why not use the "If you have any questions, feel free to contact us" link right under the menu you chose?

Dan

 
BillyRayPreachersSon,

Thanks for the suggestion. I have already done as you suggested and I am hoping for a response from the creators of the menu, however none has yet been forthcoming. From a quick search on the internet I have determined that the methods employed by this script are not exclusive to this script, however I have not as yet been able to locate any reasonable tutorials on these methods. If you have any further suggestions they will be appreciated. Thanks again.

Regards

Davo
 

Can you give us some useful debugging info... Things like:

- What script errors you are getting

- What browser(s) you are testing in

- What operating system you are testing on

- What line(s) the errors are appearing on (try using the Firefox JS console to find this out)

- How you are declaring your submenu items (the demo on their page works fine)

- Your code

are all helpful things that could help solve this issue.

Dan

 
Hello Dan,

I am wanting to alter the "start button" metaphor, however I just can't get a handle on how to declare menu and sub-menu items. Ideally I want to create a menu similar to the "start button", however with the following important differences.

1). Different graphics (which I have succeeded in) and,
2). A menu structured as below (where "*" indicates sub-menu items, which are to belong to the primary menu item dirrectly above)....

Home Page
Company Profile
Browse Catalogues
* Catalogue 1
* Catalogue 2
* Catalogue 3
* Catalogue 4
* Catalogue 5
Business Stamps
* Self Inkers
* Type Sets
Scrapbooking
* Papers
* Frames
Coming Events
Forms
* Survey Form
* Craft Stamp Order Form
* Business Stamp Order Form
My Preferences

This makes a total of eight primary menu items which are to be visible on first pressing the menu "button". If you could help me to understand how to alter the appropriate parts it will be greatly appreciated. I have included the section that requires modification below.

Thanks for your time.

Regards

Davo

<script type="text/javascript" language="JavaScript1.2">
<!--
stm_bm(["ngcwfhr",400,"","blank.gif",0,"","",0,1,250,0,1229,1,0,0,""],this);
stm_bp("p0",[1,4,0,0,0,0,0,0,100,"",-2,"",-2,90,0,0,"#ffffff","transparent","",3,0,0,"#ffffff"]);
stm_ai("p0i0",[2,"","navbutton2.gif","navbutton1.gif",200,46,0,"","_self","","","","",0,0,0,"","",0,0,0,0,1,"#ffffff",1,"#ffffff",1,"","",3,3,0,0,"#ffffff","#ffffff","#000000","#000000","9pt Arial","9pt Arial",0,0]);
stm_bp("p1",[1,3,3,0,3,1,32,16,100,"",-2,"",-2,88,2,3,"#cccccc","#ffffff","",3,1,1,"#75737c #bbb7c7 #75737c #bbb7c7"]);
stm_aix("p1i0","p0i0",[0,"Page","","",-1,-1,0,"","_self","","","home.gif","home.gif",50,30,0,"","",0,0,0,0,1,"#ffffff",0,"#316ac5",0,"","",3,3,0,0,"#edeae6 #666666 #666666 #edeae6","#666666 #edeae6 #edeae6 #666666","#333333","#ffffff","bold 12pt Arial","bold 12pt Arial"]);
stm_aix("p1i1","p1i0",[0,"E-mail","","",-1,-1,0,"","_self","","","email1.gif","email.gif",]);
stm_aix("p1i3","p0i0",[0,"Windows Media Player","","",-1,-1,0,"","_self","","","player1.gif","player.gif",32,32,0,"","",0,0,0,0,1,"#ffffff",0,"#bbb7c7",0,"","",3,3,0,0,"#edeae6 #666666 #666666 #edeae6","#666666 #edeae6 #edeae6 #666666","#666666"]);
stm_ai("p1i2",[6,1,"transparent","bar.jpg",186,1,0]);
stm_aix("p1i4","p1i3",[0,"Tour Windows XP","","",-1,-1,0,"","_self","","","tour1.gif","tour.gif"]);
stm_aix("p1i5","p1i2",[]);
stm_aix("p1i6","p1i0",[0,"All Programs","","",-1,-1,0,"","_self","","","","",32,32,0,"all.gif","all.gif",16,22]);
stm_bp("p2",[1,2,-2,-75,5,2,18,0,100,"",-2,"",-2,90,2,3,"#cccccc","#ffffff","bar2.gif",2,1,1,"#000000 #000000 #000000 #999999"]);
stm_aix("p2i0","p0i0",[0,"SourceTec","","",-1,-1,0,"","_self","","","18a.gif","18c.gif",18,18,0,"","",0,0,0,0,1,"#ffffff",0,"#666666",0,"","",2,3,0,0,"#edeae6 #666666 #666666 #edeae6","#666666 #edeae6 #edeae6 #666666","#666666","#ffffff"]);
stm_aix("p2i1","p2i0",[0,"Microsoft Office "]);
stm_aix("p2i2","p2i0",[0,"Games","","",-1,-1,0,"","_self","","","18b.gif","18c.gif",18,18,0,"","",0,0,0,0,1,"#feeab6"]);
stm_ep();
stm_ep();
stm_ep();
stm_em();
//-->
</script>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top