| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
Use Javascript and CSS to hid / flip visibilty of elements | ||||
|
|
Thread Tools | Search this Thread |
#21
|
|||||||
|
|||||||
Re: Use Javascript and CSS to hid / flip visibilty of elements
This used to work really great in Explorer, Firefox and Opera.
Unfortunately it doesn't in Internet Explorer 7.0, I just noticed. Displaying the hidden content by clicking the radiobutton works fine, but clicking the hide radiobutton doesn't hide the content anymore... Anybody knows how to get this also working for Explorer 7.0? Many thanks in advance!
__________________
X-Cart 4.0.12 Heavy modified with paid, free and forum mods. PHP 5.2.5 | MYSQL 5.0.51a |
|||||||
#22
|
|||||||||
|
|||||||||
Re: Use Javascript and CSS to hid / flip visibilty of elements
Just wanted to note, in 4.0.x and later of X-Cart a function to flipDiv's is already implemented.
Take a peek at skin1/common.js and you'll find: function visibleBox(id,skipOpenClose) Example in X-Cart that uses it is the search.php page "Advanced Search" opens the entire search form. Just setup your links for the open/close toggle with an id="closeX" and id="openX" the actual area that is hidden and appears would be id="boxX" X for all id's being an incremental number starting at 1 to whatever. Kudos!
__________________
Cart-Lab - 100+ Social Bookmarks for X-Cart. |
|||||||||
|
#23
|
|||||||
|
|||||||
Re: Use Javascript and CSS to hid / flip visibilty of elements
Quote:
Yes, you are right. I just noticed this a few weeks ago and had to change the code to make it work. Right now, it's just a band aid and I'm not really sure why IE7 doesn't like the original. My opinion, IE7... still sucks.
__________________
No longer using Xcart, was good while it lasted. |
|||||||
#24
|
|||||||
|
|||||||
Re: Use Javascript and CSS to hid / flip visibilty of elements
Quote:
And that is why he is an Xcart Guru. Thanks B00MER.
__________________
No longer using Xcart, was good while it lasted. |
|||||||
#25
|
|||||||||
|
|||||||||
Re: Use Javascript and CSS to hid / flip visibilty of elements
wow that is a full waste of code right there.. Basically
onMouseover and onMouseCLick on the <a> and then call the appropriate css on off commands for the divs. simple.. no php no nothing.. just simple three lines of java, and css
__________________
X-Cart Gold 4.1.3 | 4.1.5 | 4.16 PHP/4.4.4 MySQL version 4.1.21 |
|||||||||
|
|||
X-Cart forums © 2001-2020
|