Skip to content

Instantly share code, notes, and snippets.

@skipjac
Created January 31, 2011 22:38
Show Gist options
  • Save skipjac/804987 to your computer and use it in GitHub Desktop.
Save skipjac/804987 to your computer and use it in GitHub Desktop.
this adds the dropbox to the main zendesk menu bar
Event.observe(window, 'load', function() {
$j('#top-menu .tab_forums').after($j('<li class="main clazz tab_idea"><a href="http://www.google.com/" onClick="script: Zenbox.show(); return false;" class="tab">ASK US</a></li>'));
});
</script>
<script type="text/javascript" src="//asset0.zendesk.com/external/zenbox/zenbox-2.0.js"></script>
<style type="text/css" media="screen, projection">
@import url(//asset0.zendesk.com/external/zenbox/zenbox-2.0.css);
</style>
<script type="text/javascript">
if (typeof(Zenbox) !== "undefined") {
Zenbox.init({
dropboxID: "123",
url: "https://something.zendesk.com",
tabID: "questions",
tabColor: "#9060C1",
hide_tab: true,
tabPosition: "Right"
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment