![]() |
Button Scripting Help
Hey all - I'm back with another coding question - been all over the site looking at examples of syntax for button scripts - should be easy (and probably is lol) but so far I cant get it to work - I've put a button in my start button mod that opens my socials page, that much works great - but I want it to close again when I press the button a second time - no luck making it work so far...
any help is appreciated |
You need to make two buttons and have them turn each other on and off as needed. Or do like I did and use a checkbox. I hate doing things twice. Then u can do OnCheck=show_window and OnUncheck=Hinde_window. Then if the window you are opening is in the same set of windows u can make that window uncheck the button if closed by other means then the button.
If you dealing with pages inside the same window just have the page assigned the proper values to the button via the OnShow and OnHide handles. |
Or, how I prefer to do it:
OnPress="(show) OnPress=Press2" Press1="(show) OnPress=Press2" Press2="(hide) OnPress=Press1" |
Thanks Guys :)
Many thanks to you both for responding - works like I know what I'm doing lol -
/salute |
Quote:
|
| All times are GMT -5. The time now is 06:55 AM. |
vBulletin® - Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
© MMOUI