show/hide - Post ID 253001

User 306597 Photo


Registered User
33 posts

Is there a setting window / tab / feature I might be missing in RSD to define the href tags?

I would like to be able to add a bit of custom script for show/hide - just some simple menu and content div type stuff.
It is simple enough to define all of my IDs and lay everything out... even set all the elements up to be hidden upon initial browse, therefore I am assuming there is some way to 'unhide' them via linking using internal RSD tools, but I am not seeing it.

Normally, in my manual code brain, I would just use a call back to a tiny script. Something along the lines of:
<script> A bit of java defining a show/hide toggle. We'lll call it toggle-div. It activates by id</script>
When clicking an appropriate link, say a menu icon... it would link out to a hidden div as such:
<a href="#" style = "display:none" onclick="toggle_visibility('menu');">whatever is here - menu icon, text, whatever</a>
Then the hidden div:
<div menu>All your menu div content here</div>

Result is anytime you click on the 'menu icon' - anything with the container ID of 'menu' will show/hide itself. If any of this made any sense to anyone... has anyone used RSD specifically for this?
I've seen some jQuery stuffs, etc. but I'd rather not include extra items I don't need.
Thanks!
User 187934 Photo


Senior Advisor
20,190 posts

Hi John,
Your probably looking for this.
http://www.coffeecup.com/forums/respons … post251647
I can't hear what I'm looking at.
It's easy to overlook something you're not looking for.

This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com
User 306597 Photo


Registered User
33 posts

Thanks Eric, I don't need a mobile or tab menu, although it is a 'mobilesque design' I am creating...

I went ahead and used a jQuery method to do it though... I uploaded an example to a subdomain of mine if anyone would like to see what I am talking about. Here is the example: http://slider.jmchaffie.com

Well - I typed up a nice quick howto here, but it tells me I don't have permission to post here when I try to do so. Perhpas some kind of character combo or the length? Weird.

I just used the google api of jQuery - for people that might scratch their heads looking at the source. There would be no difference using your own local copy of the script - I just whipped this up real fast for proof of concept and referencing a cloud resource is just quicker for testing.

Yes, the main 'www' site is my one and only surviving VSD site that is live on the web. Every time I go to replace and update it I just can't do it. I'm sure most of you recognize the theme too. It's just sweet minimalist vCard on the web man. :)

Later!
User 187934 Photo


Senior Advisor
20,190 posts

I was referring to the accordion.;)
I can't hear what I'm looking at.
It's easy to overlook something you're not looking for.

This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com

Have something to add? We’d love to hear it!
You must have an account to participate. Please Sign In Here, then join the conversation.