Logged Out
Create an Account
Login:
Password:

Forgot your password?
Embedding Commands in Menus?

Embedding Commands in Menus?
[Back to Index]
Thread Tags
Primary: [Advanced Layout]
Secondary: None

What I was wondering..

is there a way to say.. create a menu item that can display the results for
<!-- System:TopStats -->

??

I'd like to see the info . .but not necessarly always on the front page type thing..


--
Louis T.

The Spreading Taint - WoW Group Admin
Rough Trade - Assistant Admin
Well that's a new thing.

Here's an idea for ya, would take a bit of javascript though (not sure how comfortable you are with it), but here goes:


Something to this effect:

<script language=javascript>

var showingstats = false;
function togglestats()
{
showingstats = !showingstats;
document.getElementById("statsthinger").style.display = (showingstats ? "" : "none");
}
</script>

<a href="javascript:togglestats()">Statistics</a>
<div id=showingstats style="display:none">
<!--System:TopStats-->
</div>



This will give you a link labeled "Statistics" that when clicked will enabled the div with the id "showingstats". When clicked again it will hide the stats.

You could easily make a menu similar in looks to the ones you currently have and and just make the label of the menu be that "Statistics" link. Then put the <!--System:TopStats--> inside the body of that.

Just an idea.

Otherwise, no, not a this time.

Note: I did not check for typos.


--
It's all in the reflexes.
feel rather silly now. I should have thought of that. brain is cooked..

working like a charm.. though I'm having difficulties getting stat fonts to shrink down. but minor thing


--
Louis T.

The Spreading Taint - WoW Group Admin
Rough Trade - Assistant Admin
Quote
feel rather silly now. I should have thought of that. brain is cooked..

working like a charm.. though I'm having difficulties getting stat fonts to shrink down. but minor thing


It's cool man. I spend all day working on stuff like this, on this website, no less, so it's always fresh on the mind.

Take a nap!


--
It's all in the reflexes.


[Back to Index]