DHTML script problem!

This is a discussion on "DHTML script problem!" within the Web Page Design section. This forum, and the thread "DHTML script problem! are both part of the Design Your Website category.



Go Back   Webforumz.com > Main Forums > Design Your Website > Web Page Design

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old Feb 18th, 2007, 17:33
New Member
Join Date: Feb 2007
Location: Italy
Age: 25
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Unhappy DHTML script problem!

Hello everybody! I hope someone will be able to help me.

I'm putting together a website (shocked, aren't you?) and for a section of it I'm tweaking a script for a slide out menu that I found here (where there is listed the code). It wasn't hard, and I got an almost satisfying result, if it wasn't for one thing -

HERE is how far I've come.

Letting the mouse hover on the thumbnail, a tab with a couple of links slides out. So far, so good. What I can't understand is why every time a link ends - after Snow, the small picture and the Jadis31 - a new line is automatically generated, as if there was a <br />. (The only one I actually put in was after the comma.)

Could anyone help me out with that...? Thanks in advance!
Reply With Quote

  #2 (permalink)  
Old Feb 18th, 2007, 20:44
BGarner's Avatar
Reputable Member
Join Date: Oct 2006
Location: In front of the computer.
Posts: 213
Thanks: 0
Thanked 0 Times in 0 Posts
Re: DHTML script problem!

I tweaked the exact same menu for my last website. But, I don't understand your question. Are you asking why the comma is on the next line down?
Reply With Quote
  #3 (permalink)  
Old Feb 18th, 2007, 20:54
New Member
Join Date: Feb 2007
Location: Italy
Age: 25
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Re: DHTML script problem!

Exactly! It shouldn't be - just like the icon and the "jadis31" should both be on the same line.

I'm afraid there might be some kind of conflict with this other script I'm using, Lytebox...
Reply With Quote
  #4 (permalink)  
Old Feb 28th, 2007, 08:41
New Member
Join Date: Feb 2007
Location: Italy
Age: 25
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Re: DHTML script problem!

SOLVED!

And in case someone encounters my same problem - in the CSS section of the "head" portion of the code, look for:

Code: Select all
.dhtmlgoodies_subMenu ul li a{    /* Sub menu items */
        white-space:nowrap;    /* No line break */
        text-decoration:none;    /* No underline */
        color:#000;    /* Black text color */
        
        height:16px;    /* 16 pixels height */
        line-height:16px;    /* 16 pixels height */
        padding:1px;    /* 1px of "air" inside */
        
        display:block;    /* Display as block - you shouldn't change this */
    }
...and erase the display:block; line. At that point, the submenu entries will display as a long long line - you will have to use <br /> to start new lines.
Reply With Quote
  #5 (permalink)  
Old Feb 28th, 2007, 10:49
Ryan Fait's Avatar
SuperMember

SuperMember
Join Date: May 2006
Location: Las Vegas
Posts: 3,786
Thanks: 0
Thanked 0 Times in 0 Posts
Re: DHTML script problem!

Hm. Block should make them stack, not line up horizontally.
Reply With Quote
  #6 (permalink)  
Old Feb 28th, 2007, 10:55
New Member
Join Date: Feb 2007
Location: Italy
Age: 25
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Re: DHTML script problem!

Sadly, I know near to zero when it comes to javascript coding - my only guess is that some other part of the code might be interfering with that.

My approach to the script was kind of the "type something and hope for the best" quality. :P
Reply With Quote
  #7 (permalink)  
Old Feb 28th, 2007, 12:09
Ryan Fait's Avatar
SuperMember

SuperMember
Join Date: May 2006
Location: Las Vegas
Posts: 3,786
Thanks: 0
Thanked 0 Times in 0 Posts
Re: DHTML script problem!

That's not JS, is CSS... And CSS is very straightforward when it comes to the display property.
Reply With Quote
Reply

Tags
dhtml, menu

Thread Tools

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
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem with Action Script shaza2007 Flash & Multimedia Forum 4 Apr 5th, 2007 19:01
Login Script Problem Aaron1988 PHP Forum 5 Nov 20th, 2006 06:15
Slight end of script problem a.jenery Classic ASP 5 Apr 22nd, 2006 00:50
DHTML Event Handler problem katrielalex JavaScript Forum 1 Jan 4th, 2006 11:53
dhtml scroller script help please!! matscott JavaScript Forum 4 Apr 13th, 2004 11:31


All times are GMT. The time now is 08:46.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43