I also just found this:
---
page.includeJS {
file1 = fileadmin/js/sprungmenu.js
}
lib.jsmenu = HMENU
lib.jsmenu{
wrap (
<form name="js_form" action="index.php" id="js_form">
<select name="tl_jsmenu1"
onchange="MM_jumpMenu('parent',this,0)"><option>...Bitte
auswählen!</option>|</select>
</form>
)
1 = TMENU
1{
expAll = 1
NO = 1
NO{
doNotLinkIt = 1
stdWrap.cObject = COA
stdWrap.cObject{
10 = TEXT
10{
field = nav_title // title
case = upper
dataWrap = <option value="index.php?id={field:uid}"
class="optlev1a">|</option> |*| <option value="index.php?id={field:uid}"
class="optlev1b">|</option> |*| <option value="index.php?id={field:uid}"
class="optlev1c">|</option>
}
}
}
}
---
This looks roughly like the kind of menu I want, but for pages. Ho would
I go about adapting this for languages? The option value should contain
the current url with only the L= parameter changed, and the text between
the option tags should of course be the name of the language.
Walrick
Walrick Bosch wrote:
> Walrick Bosch wrote:
>> Hmm, but is there a way to use HMENU "special = language" to create a
>> selection list (like in the extension). So no css or javascript dropdown
>> menu, but a form with a select element?
>
> Something like this would perhaps do the trick:
>
> *********
>
> // The following function is placed in the HTML head
> function nav()
> {
> var w = document.myform.mylist.selectedIndex;
> var url_add = document.myform.mylist.options[w].value;
> window.location.href = url_add;
> }
>
>
> // This code is placed in the HTML body
> <FORM NAME="myform">
> Jump to:
> <SELECT NAME="mylist" onChange="nav()">
> <OPTION VALUE="../../index.html">Home Page
> <OPTION VALUE="../../basics/index.php3">Basics
> <OPTION VALUE="../../tutorials/index.php3">Tutorials
> <OPTION VALUE="../../templates/index.php3">Web Design Templates
> <OPTION VALUE="../../graphics/index.php3">Web Graphics Design
> <OPTION VALUE="../index.php3">Tips and Tricks
> <OPTION VALUE="../../design/index.php3">Web Page Design
> <OPTION VALUE="../../services/index.php3">Services
> </SELECT>
> </FORM>
>
> ************
>
> But how to I get HMENU/TMENU to produce such a list instead of links
> with A-tags?
>
> Walrick
>
--
webmaster Global Healing Circle
www.globalhealingcircle.net
_______________________________________________
TYPO3-english mailing list
[email protected]
http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-english