Digital experiences for all disciplines
Forum Replies Created
Viewing 5 posts - 1 through 5 (of 5 total)
-
Posted in: We hit Power Elite.
-
On point! Thanks David!
Thanks David.
I used the css you gave me to get the drop down box width displayed properly but when you go to a page with an image in a row behind the drop down box (like the homepage: cclmedia.org), the image bleeds through the right half of the box.
See screenshot.
I went ahead and wrote some Javascript code to handle this functionality. If your link would normally be
you instead link to
http://domain.com/page/#tab-Name
It’s a little slow to switch the tab but it works. If anyone can improve on the code feel please post it here.
<script type="text/javascript"> window.onload = function() { if (window.location.href.indexOf("#tab-") > -1) { var url_anchor = window.location.href.substring(window.location.href.indexOf("#tab-") + 5); if (url_anchor.length != 0) { var els = document.getElementsByTagName("a"); for (var i = 0, l = els.length; i < l; i++) { var el = els[i]; if (el.href.indexOf('#' + url_anchor) > -1) { el.click(); window.location.hash = url_anchor; window.scrollTo(0, 0); } } } } }; </script>
I am having the same issue. I would like to link to the second tab on this page from another page by using the URL
http://develop.citizensclimatelobby.org/about-ccl/#Our-Founder
Any suggestions?
-
Posted in: We hit Power Elite.
Viewing 5 posts - 1 through 5 (of 5 total)