![]() |
if a:active else condition problem!
I'm trying to hide the navbar menu by replacing it with an active button, when the button is clicked I want the active button to go away and the navbar menu to replace the active button. I figured it would be as simple as using an if statement, but for the life of me I have no idea what sort of if statement to use.
To get it started I have used the standard (if condition equals show), as below: Code:
<!-- nav buttons bar --> This is the css for the menuselectnav button Code:
.menuselectnav { --------------- Added [DATE]1246088101[/DATE] at [TIME]1246088101[/TIME] --------------- |
No one has any ideas!
|
$show is a variable that gets defined in the code. I am guessing that $show['menuselectnav a:active'] was never defined (and I wouldn't use a variable name like that either). Basically your condition is not a valid one (which you already figured out). When someone clicks on the link, are they going to a new page? If so, you can use THIS_SCRIPT in the condition.
|
1 Attachment(s)
No, a new page is not to load up, it's a little difficult for me to explain, perhaps the best thing is to show you the function working on a live site:
http://ggweb-fr.com/phpbbfre/ If you scrolldown to the very bottom of the forum and look to the right you will see a small graphic with a green arrow and the copyright symbol to the right of it, click that button, you will see the sites copyright appear below. I would like to achieve something like that, except, I would like a three phase effect, the default button would need to look like this: Attachment 101223 then when one loses over the button it is to look like this: Attachment 101224 then when one clicks the button it looks like this: Attachment 101225 |
If you look at the source code for the page, you'll see they are just using javascript for that. You can probably get the script name in the code there.
|
Wow, javascript is horrible, I can't quite get it right, this is what I'm doing:
In the header I have this: Code:
<div id="wrap"> Code:
<script type="text/javascript" src="$stylevar[imgdir_misc]/js_dom_toggle.js"></script> Code:
function _dom_toggle() Code:
.menutoggle { Any ideas on what I have got wrong? |
It's too weird huh, I understand, I do not wish to seem a stress head or anything but for my own sanity, should I consider that no-one knows the solution and move on?
|
All times are GMT. The time now is 03:55 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|