lehula
Junior Member
Posts: 4
Registered: 3/10/2007
Member Is Offline
|
| posted on 3/10/2007 at 06:39 AM |
|
|
img/blueh_sl.gif shows when menu is closed
I have my slider in a menu that fold and unfolds. The problem is that the img/blueh_sl.gif shows in the middle of the webpage even when the menu is
closed. Have you ever had this problem, and if so, how do I remedy it? Keep in mind that the img/blueh_bg.gif hides when the menu is closed.
|
|
|
tigra
Administrator
Posts: 1926
Registered: 6/17/2002
Location: US, CO
Member Is Offline
|
| posted on 3/10/2007 at 08:20 PM |
|
|
the slider's handle is positioned in the document's layer, it's not under the control of the visibility property of the tag that hosts the slider.
You'll need to add the code that switches the visibility of the handle together with the visibility of the form.
|
|
|
lehula
Junior Member
Posts: 4
Registered: 3/10/2007
Member Is Offline
|
| posted on 3/12/2007 at 08:15 PM |
|
|
this.e_slider.style.visibility = 'hidden';
Is this the part I should focus on? Should I put this in the form in my actual website, or did you mean to put it someplace else in the .js file?
|
|
|
tigra
Administrator
Posts: 1926
Registered: 6/17/2002
Location: US, CO
Member Is Offline
|
| posted on 3/13/2007 at 03:55 PM |
|
|
yes, that's the code, but it will not work outside of the slider's code because of the "this" reference.
you can save the reference to the slider's object at the initialization time:
var mySlider = new slider (... params ...);
and then access e_slider via it:
mySlider.e_slider.style.visibility = 'hidden';
|
|
|
lehula
Junior Member
Posts: 4
Registered: 3/10/2007
Member Is Offline
|
| posted on 3/13/2007 at 07:36 PM |
|
|
I appreciate the help. When I get my website up and running, I would like to upgrade to the pro version. Looks handy. I follow what you are saying
so far, but am confused on where to put the new mySlider.e_slider.style.visibility = 'visible' ?Should I put it in the form? Also, would
the parameters of 'mySlider' be document.myform.myinput? Thanks again.
|
|
|
tigra
Administrator
Posts: 1926
Registered: 6/17/2002
Location: US, CO
Member Is Offline
|
| posted on 3/13/2007 at 11:10 PM |
|
|
if you have a slider in your page then you already nave "new slider (..)" statement, just save the reference this statement returns by having "var
mySlider =" in front of it. Then you can use
mySlider.e_slider.style.visibility = 'hidden';
to switch the visibility of the slider handle.
|
|
|
lehula
Junior Member
Posts: 4
Registered: 3/10/2007
Member Is Offline
|
| posted on 3/14/2007 at 06:44 PM |
|
|
ok I finally got what you were saying. Wasn't that complicated.
var myslider = new slider(A_INIT1h, A_TPL1h); ----for my website
myslider.e_slider.style.visibility = 'visible'; -----------for the .js file
Is this right? Because now the handle isn't even showing.
|
|
|
tigra
Administrator
Posts: 1926
Registered: 6/17/2002
Location: US, CO
Member Is Offline
|
| posted on 3/15/2007 at 02:21 PM |
|
|
Yes, that should work if implemented properly. see the browser's JavaScript error console for details about the problem.
|
|
|