This is a discussion on "Need Help with this Dropdown Content" within the JavaScript Forum section. This forum, and the thread "Need Help with this Dropdown Content are both part of the Program Your Website category.
|
|
|
|
|
![]() |
||
Need Help with this Dropdown Content
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
|||
|
Need Help with this Dropdown Content
Hi everyone,
I try to use this script for Dropdown Content and i am almost ready except some few errors. I am not an advanced webmaster, so be understanding with me, please...I was try to fix my problem and i work on it about 3 days ago, i make a lot changes on the script with no result... This is the website where the script is installed : http://www.arcademania.ro and i use Firefox. If you press the "Test meniu" from the top of the page you will see how it`s work and my problem is evident too: i want to "cut" this grey segment but i don`t know how. If i set the slidedown speed lower(for ex. to 3) this grey portions come out just 1 px height; if i set it to 300, the grey portion come out about 200 px height like right now. My CSS:
Finally, the script dont work in other pages, except the home page. I will be profoundly thankful to any one give me a little sugestion how do i fix my problem!!! Thanks a lot! P.S. Sorry for my bad english... |
|
|
|
||||
|
Re: Need Help with this Dropdown Content
The reason you are getting such a bit space at the top is because when you are setting the speed
<script type="text/javascript"> setSlideDownSpeed(300); </script> this value will be added to the content height each time the function is called. So it will run only once because it will already be 300 pixels high. You should change this to something like 10-30px and change var slidedownTimer = 1; // Lower value = faster script to something like 10-20. Cheers.. Absolutely nothing on your page loads in IE
Last Blog Entry: The wannabe juggler's quest (Oct 27th, 2007)
|
|
|||
|
Re: Need Help with this Dropdown Content
Quote:
Thanks for your sugestion but, i forget to mention my wish: i want to keep this faster speed without the grey space at the top, if this is possible or, if is not, suggest me please another script wich do the same thing, i mean a dropdown content. Best Regards! |
|
||||
|
Re: Need Help with this Dropdown Content
You could have the instant opening effect by setting the speed to the height of your content.
In your case, your table is 100px high so set the speed to 100. The reason for this is that the speed you set is the amount of pixels the box increases each x amount of time. If this is the only function you want you could have a much simpler script that just changes the display css setting of the box. Hope that helps.
Last Blog Entry: The wannabe juggler's quest (Oct 27th, 2007)
|
|
|||
|
Quote:
It was so simple for you...this is nice....I am very happy and i dont know if a simple "thank you" will be enough... Please be more exactly , or explain me in other words (becouse of my english) what do you mean with this:"If this is the only function you want you could have a much simpler script that just changes the display css setting of the box."? This is only function i want, indeed. Thanks again Rakuli, you do a great job.... |
|
||||
|
Re: Need Help with this Dropdown Content
Okay, what I mean would require you to do the following.
Change the css to something like :
You can add this to the bottom of your HTML or just add the function to the bottom of that script you have already.
onclick="toggleDisplay('dhtmlgoodies_slidedown')" And it should do what you want but with less than half the code.
Last Blog Entry: The wannabe juggler's quest (Oct 27th, 2007)
|
|
|||
|
Like i said, you are incredible!!!
All works PERFECT NOW thanks to you!!! My links are visible on I.E. and the script work on all of my pages too, not just on the home page Thanks, thanks, thanks, thanks!!!! P.S. I hope you already have a great job with big earnings, becouse you deserve it heartily! |
|
||||
|
Re: Need Help with this Dropdown Content
Quote:
Last Blog Entry: The wannabe juggler's quest (Oct 27th, 2007)
|
![]() |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Expandable Content Script (Swtich Content) | Matc | JavaScript Forum | 0 | Apr 8th, 2008 10:53 |
| Content Placement + Content Dividing | josephman1988 | Website Planning | 2 | Jan 22nd, 2008 05:02 |
| menu, dropdown | everland | Flash & Multimedia Forum | 2 | Aug 21st, 2007 14:58 |
| Dropdown lists | psrujan | JavaScript Forum | 1 | Jun 30th, 2007 22:37 |
| Dropdown Problem | leewad | JavaScript Forum | 1 | Jul 27th, 2006 21:51 |