| Antville Help |
|
Tuesday, 23. August 2005
Trick: Topics as Dropdown Menu
kris
10:59h
Here is what you put into the main skin or wherever you want the menu to show up:
<form>
<select onChange="showSelectedEntry(this);" >
<option selected="selected">Rubriken</option>
<script type="text/javascript">
var a = new Array ("" <% topiclist itemprefix=",'" itemsuffix="'" %>);
renderTopicsOptions(a);
</script>
</select>
</form>
Then you need to add these two functions to the JavaScript skin.
function showSelectedEntry(menu) {
window.location.href = menu.options[menu.selectedIndex].value;
}
function renderTopicsOptions (a) {
for (var i=1;i<a.length;i++) {
var t = /".+</.exec(a[i]);
document.writeln("<option value="+ t +"/option>");
}
}
I hope everything is escaped properly. Kudos to Tobi. ... Comment
tibun, 2005-08-24 16:24
Trick 17?
Sagen Sie mal - ich hab's ja noch nicht probiert - aber würde das ganze auch mit den "/images/topics" gehen, wenn man da ein bisschen die Worte vertauscht? Oder müssen Sie dazu im System rumfummeln?
... Link
kris, 2005-08-25 11:43
imagetopics mag ich nicht
die sind irgendwie schlecht durchdacht und ich habe sie mir noch nicht so richtig angeguckt.
aber vermutlich geht es. EDIT: ich kann keine makro finden, dass alle image-topics auflistet. gibt es sowas? ... link
tibun, 2005-08-25 17:45
Das Makro scheint ja
dasselbe zu sein, das auch die Topics listet. Nach meinem Verständnis müsste man ihm ja lediglich beibringen wo es schauen soll.
var a = new Array ("" <% topiclist ... etwa mit prefix"images/" oder so ... Aber mit meinem Verständnis liege ich manchmal auch arg daneben. ... link ... Comment |
Online for 2295 days
Last modified: 2008-05-15 18:49 Status
Youre not logged in ... Login
Menu
Search
Calendar
Recent updates
Your site was missing the
Site#contribnavigation skin; thus, I added it and the missing...
by tobi (2008-05-15 18:49)
Thank you Tobi!, sorry, yes,
I'm talking about http://turba.antville.org.
Speciffically, in the administrator's menu...
by Jime (2008-05-15 18:21)
Dear Jime
Sorry to hear about that. It has been a little bit rough...
by tobi (2008-05-15 15:22)
Administrator´s menu Dear Antville staff:
During the last few days I haven't been able to...
by Jime (2008-05-15 14:35)
Temporarily disabled features (will
be back, soon)
* Referrers and backlinks
http://tobi.antville.org/stories/1792576/
by swen (2008-05-08 20:00)
Referrer Logs Hello oh wise
and helpful ones.
Back in the day, I used to...
by Kate (2008-04-28 05:23)
Danke sehr!! :o)
by DieBeatrix (2008-04-23 20:54)
wer hätte gedacht, dass
es so einfach ist :-)
Vielen Dank!
by sharlene (2008-04-21 17:14)
Am Einfachsten geht das mit
dem HTML-Element <strike> (oder alternativ <s>):
durchstreichen
wird zu:...
by giardino (2008-04-21 16:38)
Worte durchstreichen / strike out
words Wie kann ich denn in meinem Blog Worte durchstreichen?...
by sharlene (2008-04-21 16:24)
Disk was full But here
we go again.
by tobi (2008-04-17 16:11)
"Oops, couldn't save the image
on disk. Please contact the maintainer of this site"
sagen...
by schmerles (2008-04-17 15:58)
Es gab ein problem
im style-skin. Hab mir erlaubt, das zu reparieren.
by hns (2008-04-15 11:59)
warum (so fragt mich mein
kind immer: warum)
sieht es auf der Startseite so aus,...
by mariong (2008-04-15 11:41)
Mit Firefox sieht Ihr Blog
ganz normal aus, Internet Explorer zeigt eine weiße Seite....
by kinomu (2008-04-08 16:55)
Meine Seite erschein nur noch
weiß, seit ewig Seit Wochen ist mein Blog nur noch...
by DieBeatrix (2008-04-08 14:40)
thank you
that was
exactly the problem
that i overlooked
so simple, and yet...
by Kate (2008-03-17 00:39)
Keine Hilfe is auch ne
Hilfe. In diesem Fall für making the internetz a...
by tinto (2008-03-03 22:56)
just "edit" the story and
look if you unchecked the "show this story at...
by dieguteseite (2008-03-03 22:33)
daily entry doesn't show up
in calendar My entry for Feb 29, 2008 does not...
by Kate (2008-03-03 22:21)
bittebitte. ich hoffe, sie
verstehen die form der hilfeleistung.
by sakana (2008-03-03 18:21)
ÜBRIGENS iCH weiss inzwischen wies
geht !!
Für die Umfangreiche Hilfe in diesem Forum bedanke...
by buggle (2008-03-03 18:18)
dafür nich!
by schmerles (2008-03-03 16:52)
danke ,geht wieder !
by dr.nemo (2008-03-03 16:51)
ich kann Ihren Namen
anklicken und appariere dann bei Ihnen
by schmerles (2008-03-03 16:48)
|