Support Forum Softcomplex logo
About Us  | Services  | Download  | Order  | Support  | |
| Search | Today's Posts | Stats | Board Rules | Not logged in [ Login | Register ]
go to bottom
Last active: Never

Printable Version | Subscribe | Add to Favourites   Post new thread Poll:
Author: Subject: img/blueh_sl.gif shows when menu is closed
lehula
Junior Member

Posts: 4
Registered: 3/10/2007
Member Is Offline
posted on 3/10/2007 at 06:39 AM Reply With Quote
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.
View User's Profile View All Posts By User U2U Member
tigra
Administrator

Posts: 2049
Registered: 6/17/2002
Location: US, CO
Member Is Offline
posted on 3/10/2007 at 08:20 PM Reply With Quote

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.
View User's Profile View All Posts By User U2U Member
lehula
Junior Member

Posts: 4
Registered: 3/10/2007
Member Is Offline
posted on 3/12/2007 at 08:15 PM Reply With Quote

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?
View User's Profile View All Posts By User U2U Member
tigra
Administrator

Posts: 2049
Registered: 6/17/2002
Location: US, CO
Member Is Offline
posted on 3/13/2007 at 03:55 PM Reply With Quote

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';
View User's Profile View All Posts By User U2U Member
lehula
Junior Member

Posts: 4
Registered: 3/10/2007
Member Is Offline
posted on 3/13/2007 at 07:36 PM Reply With Quote

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.
View User's Profile View All Posts By User U2U Member
tigra
Administrator

Posts: 2049
Registered: 6/17/2002
Location: US, CO
Member Is Offline
posted on 3/13/2007 at 11:10 PM Reply With Quote

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.
View User's Profile View All Posts By User U2U Member
lehula
Junior Member

Posts: 4
Registered: 3/10/2007
Member Is Offline
posted on 3/14/2007 at 06:44 PM Reply With Quote

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.
View User's Profile View All Posts By User U2U Member
tigra
Administrator

Posts: 2049
Registered: 6/17/2002
Location: US, CO
Member Is Offline
posted on 3/15/2007 at 02:21 PM Reply With Quote

Yes, that should work if implemented properly. see the browser's JavaScript error console for details about the problem.
View User's Profile View All Posts By User U2U Member
Post new thread Poll:

Related Links:
Product Page
Product Demonstrations Live Demos
Multiple Designs
Equalizer
Free Download Free Download
Product Documentation Documentation:
Documentation Page
Change Log
Support Forum Support Forum

Go To Top


Powered by XMB 1.9.1 Nexus
Developed By Aventure Media & The XMB Group © 2002-2004