Notices

Go Back   Dynamic Drive Forums > DD Scripts > Dynamic Drive scripts help > Submit a DHTML or CSS code
Search Dynamic Drive Forums:

Closed Thread
 
Thread Tools Search this Thread
  #1  
Old 05-06-2007, 03:25 PM
Ictinus Ictinus is offline
Junior Coders
 
Join Date: Apr 2007
Location: Australia
Posts: 76
Thanks: 0
Thanked 3 Times in 3 Posts
Lightbulb

Moved From Thread: http://www.dynamicdrive.com/forums/s...ad.php?t=14497

Ok so here's a link http://www.ictinus.com/sdNestedMenu/menu1.html

As it is based on DimX's sdmenu and therefore isn't all my original work, I wasn't sure if it should be submitted to DD.

Cheers,
Ictinus

Last edited by thetestingsite; 05-06-2007 at 03:55 PM.
  #2  
Old 05-16-2007, 12:46 PM
slisar slisar is offline
New Comer (less than 5 posts)
 
Join Date: May 2007
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Smile slashdot menu fix looks great

Hi Ictinus,

I have followed a couple threads on the slashdot menu and I think your link: http://www.ictinus.com/sdNestedMenu/menu1.html is a great demo of what can be done with it.

I am not an experienced programmer in java and am not even sure about css programming and i was wondering if there is a way of editing this meny system simply to include on a website.

Looking forward to hearing from you.

Steve Slisar
  #3  
Old 05-17-2007, 09:42 AM
Ictinus Ictinus is offline
Junior Coders
 
Join Date: Apr 2007
Location: Australia
Posts: 76
Thanks: 0
Thanked 3 Times in 3 Posts
Default

Steve,
I've created a 'simple example' page which is just the menu with Slashdot styling without all the demo bits.
http://www.ictinus.com/sdNestedMenu/simple_example.html

If you include the: link, script, and body 'onload' elements from this example in your page, along with the 'sdmenu' div somewhere on your page, you should be just about there.

The files required along with the example are:

sdnestedmenu.js
sdcollapsed.gif
sdcollapsedOn.gif
sdexpanded.gif
sdexpandedOn.gif

and these if you want the Slashdot style:
sdnestedmenu1.css
sdtitle.gif
sdtitle2.gif

or this if you want the Flatdot style:

sdnestedmenu2.css

The only file you should *need* to modify is the html file for you menu contents, but you may want to modify the .css files to change the colours/images.

I hope that helps.
ps. I think you meant 'Javascript' not 'Java'. Two different things.
  #4  
Old 06-11-2007, 02:13 PM
pilotsnipes pilotsnipes is offline
New Comer (less than 5 posts)
 
Join Date: Jun 2007
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Thanks!

Thanks so much for doing this menu. I really needed the nested facility and it works lovely.

However I have 2 small problems.

1) When a user clicks on one of the menu items that links to another page on my website, How can I get the menu to show what levels had already been open?

What I mean is, that everytime I go to a new page, my menu is completely collapsed. I would like to to remember the explaned state it was in when the user clicked the link.

2) Is there much work to make this a horizontal menu? I've tried but failed badly. Would you be able to point me in the right direction?

Thanks for sharing this.
  #5  
Old 06-14-2007, 11:41 PM
Ictinus Ictinus is offline
Junior Coders
 
Join Date: Apr 2007
Location: Australia
Posts: 76
Thanks: 0
Thanked 3 Times in 3 Posts
Default

Pilotsnipes,

1. Can you provide a link to your site which uses sdNestedMenu? Then I may be able to identify your problem.

2. I would not try and make this menu into a horizontal menu. It would probably be more worthwhile using one of the existing horizontal menus and perhaps modifying it if required.

Cheers.
  #6  
Old 07-03-2007, 08:23 AM
axscorpio axscorpio is offline
New Comer (less than 5 posts)
 
Join Date: Jul 2007
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Question Add hover Tooltip to buttons

Very nice script
How can I do a tooltip to buttons Collapse/Expand
- something like this on "Simple Menu" http://www.4thorder.us/Scripts/Scripts/JS.MDME/

AX
  #7  
Old 07-03-2007, 09:23 AM
Ictinus Ictinus is offline
Junior Coders
 
Join Date: Apr 2007
Location: Australia
Posts: 76
Thanks: 0
Thanked 3 Times in 3 Posts
Default

axscorpio,
you can add a tooltip by including a 'title' attribute to any of the spans tags within the menu.
e.g.
HTML Code:
<span class="title" title="A Tooltip message"><span class="tt">Menu 1</span></span>
  #8  
Old 07-03-2007, 10:26 AM
axscorpio axscorpio is offline
New Comer (less than 5 posts)
 
Join Date: Jul 2007
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by Ictinus View Post
axscorpio,
you can add a tooltip by including a 'title' attribute to any of the spans tags within the menu.
e.g.
HTML Code:
<span class="title" title="A Tooltip message"><span class="tt">Menu 1</span></span>
I know this solution.
I mean, I'd like to add a tooltip only to buttons "Collapse all" and "Expand all" in javascript, something like onmouseover = "TEXT".
I think this is a good idea

Last edited by axscorpio; 07-03-2007 at 11:03 AM.
  #9  
Old 07-10-2007, 07:13 PM
Sliight Sliight is offline
Regular Coders
 
Join Date: Jul 2007
Location: California
Posts: 177
Thanks: 2
Thanked 0 Times in 0 Posts
Default Newbie

Figured it out, but now I have another question in it's place...

Last edited by Sliight; 07-11-2007 at 07:29 AM.
  #10  
Old 07-11-2007, 07:33 AM
Sliight Sliight is offline
Regular Coders
 
Join Date: Jul 2007
Location: California
Posts: 177
Thanks: 2
Thanked 0 Times in 0 Posts
Default

I figured out how to get the menu on the page and make it work, very cool btw, thank you.

There was mention of validation earlier, and I'm not sure if that removes this but...

When I preview in a browser I get the message "IE has restricted this webpage from running scripts or activeX controls" Granted I have my settings set to do this because I don't always trust sites, however when I view the demo of this I don't get the message.

Does anyone know how to eliminate this issue in case someone uses higher security settings than the typical default?

Thank you!
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 03:13 AM.

Home - Contact Us - Archives - Link to DD - Top 

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.