TYPO3Jack.net - Das TYPO3 Mailinglist Forum Archiv

TYPO3 Mailingliste: nicht fragen - lesen!

TYPO3 Mailingliste: nicht fragen - lesen!_RR_1-->
Zurück   TYPO3Jack.net - Das TYPO3 Mailinglist Forum Archiv > TYPO3-Mailinglists: ENGLISH > typo3-english@lists.netfielders.de

Registrieren Hilfe Benutzerliste Kalender Suchen Heutige Beiträge Alle Foren als gelesen markieren
  #1  
Alt 04.06.2007, 18:27
Anders Kongsted
Gast
 
Beiträge: n/a
Standard [TYPO3] RO_chBgColor & optionSplit

Hi,

I'm trying to create a TMENU where the BGcolor has to be different on
each item when it is active. It work with NO and ACT, but I would like
to have a RO-effect too.

Is that possible?

My code until now:

################################################## ##########
# Menu objects:
temp.menu1 = HMENU
temp.menu1.1 = TMENU
temp.menu1.1 {
expAll = 1
NO {
allWrap.insertData=1
allWrap = <div class="menu"> | <br />
ATagParams = onmouseover="changecolor(this, '{$pageColor}');"
onmouseout="changecolor(this, '{$menuBGColor}');"
wrapItemAndSub = | </div>
}

ACT < .NO
ACT = 1
ACT {
allWrap.insertData=1
allWrap = <div class="menuACT{field:uid}"> | <br />
wrapItemAndSub = | </div>
}
}


temp.menu1.2 = TMENU
temp.menu1.2 {
NO {
allWrap = | <br />
}
}
################################################## ##########

And then there are some CSS to change the colors. Example:
###################
div.menuACT8 {
width: 100%;
background: #ec008c;
margin-bottom: 3px;
}
###################

Regard
Anders Kongsted


_______________________________________________
TYPO3-english mailing list
TYPO3-english (AT) lists (DOT) netfielders.de
http://lists.netfielders.de/cgi-bin/.../typo3-english
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!Spurl this Post!Reddit! Diesen Post bei linksilo.de bookmarken!
  #2  
Alt 05.06.2007, 04:01
Georg Rehfeld
Gast
 
Beiträge: n/a
Standard Re: [TYPO3] RO_chBgColor & optionSplit

Hi Anders,

Anders Kongsted wrote:
> I'm trying to create a TMENU where the BGcolor has to be different on
> each item when it is active. It work with NO and ACT, but I would like
> to have a RO-effect too.
>
> Is that possible?


For sure. I see 2 relatively simple ways to achive this:

1) use ACTRO (which generates some JS, I think, never used that myself)

compare
http://typo3.org/documentation/docum...1.0/view/10/2/

2) simply use CSS

As I see you are using TMENU and CSS anyway (and I'm a CSS guy), I'll
suggest that way, see below

> My code until now:
>
> ################################################## ##########
> # Menu objects:
> temp.menu1 = HMENU
> temp.menu1.1 = TMENU
> temp.menu1.1 {
> expAll = 1
> NO {
> allWrap.insertData=1
> allWrap = <div class="menu"> | <br />
> ATagParams = onmouseover="changecolor(this, '{$pageColor}');"
> onmouseout="changecolor(this, '{$menuBGColor}');"


I don't think this ATagParams line is neccessary. If you would use
ACTRO, TYPO3 would insert the neccessary JS for you. If you follow the
CSS way I suggest this line isn't needed anyway.

> wrapItemAndSub = | </div>
> }
>
> ACT < .NO
> ACT = 1
> ACT {
> allWrap.insertData=1
> allWrap = <div class="menuACT{field:uid}"> | <br />
> wrapItemAndSub = | </div>
> }
> }
>
>
> temp.menu1.2 = TMENU
> temp.menu1.2 {
> NO {
> allWrap = | <br />
> }
> }
> ################################################## ##########
>
> And then there are some CSS to change the colors. Example:
> ###################
> div.menuACT8 {
> width: 100%;
> background: #ec008c;
> margin-bottom: 3px;
> }
> ###################
>
> Regard
> Anders Kongsted


As you have set up a special class for every of your active menu items a
CSS file snippet similar to this should do the job:

/* Format menu items and their hovers/rollovers */
div.menuACT8 {
background-color: yellow;
}
div.menuACT8:hover {
background-color: orange;
}

div.menuACT9 {
background-color: grey;
}
div.menuACT9:hover {
background-color: green;
}

div.menuACT10 {
background-color: purple;
}
div.menuACT10:hover {
background-color: red;
}


HTH, Georg
--
___ ___
| + | |__ Georg Rehfeld Woltmanstr. 12 20097 Hamburg
|_|_\ |___ georg.rehfeld.nospam (AT) gmx (DOT) de +49 (40) 23 53 27 10

(Delete .nospam from mail address)
_______________________________________________
TYPO3-english mailing list
TYPO3-english (AT) lists (DOT) netfielders.de
http://lists.netfielders.de/cgi-bin/.../typo3-english
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!Spurl this Post!Reddit! Diesen Post bei linksilo.de bookmarken!
  #3  
Alt 05.06.2007, 10:18
JoH asenau
Gast
 
Beiträge: n/a
Standard Re: [TYPO3] RO_chBgColor & optionSplit

> Anders Kongsted wrote:
>> I'm trying to create a TMENU where the BGcolor has to be different on
>> each item when it is active. It work with NO and ACT, but I would
>> like to have a RO-effect too.
>>
>> Is that possible?

>
> For sure. I see 2 relatively simple ways to achive this:
>
> 1) use ACTRO (which generates some JS, I think, never used that
> myself)


Doesn't exist in TMENU, since this is a GMENU item state.

> compare
>

http://typo3.org/documentation/docum...1.0/view/10/2/
>
> 2) simply use CSS


+1

Joey

--
Wenn man keine Ahnung hat: Einfach mal Fresse halten!
(If you have no clues: simply shut your gob sometimes!)
Dieter Nuhr, German comedian
openBC/Xing: http://www.cybercraft.de
T3 cookbook: http://www.typo3experts.com


_______________________________________________
TYPO3-english mailing list
TYPO3-english (AT) lists (DOT) netfielders.de
http://lists.netfielders.de/cgi-bin/.../typo3-english
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!Spurl this Post!Reddit! Diesen Post bei linksilo.de bookmarken!
  #4  
Alt 05.06.2007, 18:05
Anders Kongsted
Gast
 
Beiträge: n/a
Standard Re: [TYPO3] RO_chBgColor & optionSplit

Hi,

Thanks! I didn't know that I could use hover on table's.... :|

But anyway, thanks... I used the CSS-way..... )

//Anders

Georg Rehfeld skrev:
> Hi Anders,
>
> Anders Kongsted wrote:
>> I'm trying to create a TMENU where the BGcolor has to be different on
>> each item when it is active. It work with NO and ACT, but I would like
>> to have a RO-effect too.
>>
>> Is that possible?

>
> For sure. I see 2 relatively simple ways to achive this:
>
> 1) use ACTRO (which generates some JS, I think, never used that myself)
>
> compare
> http://typo3.org/documentation/docum...1.0/view/10/2/
>
>
> 2) simply use CSS
>
> As I see you are using TMENU and CSS anyway (and I'm a CSS guy), I'll
> suggest that way, see below
>
>> My code until now:
>>
>> ################################################## ##########
>> # Menu objects:
>> temp.menu1 = HMENU
>> temp.menu1.1 = TMENU
>> temp.menu1.1 {
>> expAll = 1
>> NO {
>> allWrap.insertData=1
>> allWrap = <div class="menu"> | <br />
>> ATagParams = onmouseover="changecolor(this, '{$pageColor}');"
>> onmouseout="changecolor(this, '{$menuBGColor}');"

>
> I don't think this ATagParams line is neccessary. If you would use
> ACTRO, TYPO3 would insert the neccessary JS for you. If you follow the
> CSS way I suggest this line isn't needed anyway.
>
>> wrapItemAndSub = | </div>
>> }
>>
>> ACT < .NO
>> ACT = 1
>> ACT {
>> allWrap.insertData=1
>> allWrap = <div class="menuACT{field:uid}"> | <br />
>> wrapItemAndSub = | </div>
>> }
>> }
>>
>>
>> temp.menu1.2 = TMENU
>> temp.menu1.2 {
>> NO {
>> allWrap = | <br />
>> }
>> }
>> ################################################## ##########
>>
>> And then there are some CSS to change the colors. Example:
>> ###################
>> div.menuACT8 {
>> width: 100%;
>> background: #ec008c;
>> margin-bottom: 3px;
>> }
>> ###################
>>
>> Regard
>> Anders Kongsted

>
> As you have set up a special class for every of your active menu items a
> CSS file snippet similar to this should do the job:
>
> /* Format menu items and their hovers/rollovers */
> div.menuACT8 {
> background-color: yellow;
> }
> div.menuACT8:hover {
> background-color: orange;
> }
>
> div.menuACT9 {
> background-color: grey;
> }
> div.menuACT9:hover {
> background-color: green;
> }
>
> div.menuACT10 {
> background-color: purple;
> }
> div.menuACT10:hover {
> background-color: red;
> }
>
>
> HTH, Georg

_______________________________________________
TYPO3-english mailing list
TYPO3-english (AT) lists (DOT) netfielders.de
http://lists.netfielders.de/cgi-bin/.../typo3-english
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!Spurl this Post!Reddit! Diesen Post bei linksilo.de bookmarken!
  #5  
Alt 05.06.2007, 21:43
Johannes Künsebeck
Gast
 
Beiträge: n/a
Standard Re: [TYPO3] RO_chBgColor & optionSplit

Anders Kongsted wrote:
> Hi,
>
> Thanks! I didn't know that I could use hover on table's.... :|


doesn't work in ie (only for <a>)

>
> But anyway, thanks... I used the CSS-way..... )
>
> //Anders
>
> Georg Rehfeld skrev:
>> Hi Anders,
>>
>> Anders Kongsted wrote:
>>> I'm trying to create a TMENU where the BGcolor has to be different on
>>> each item when it is active. It work with NO and ACT, but I would like
>>> to have a RO-effect too.
>>>
>>> Is that possible?

>>
>> For sure. I see 2 relatively simple ways to achive this:
>>
>> 1) use ACTRO (which generates some JS, I think, never used that myself)
>>
>> compare
>> http://typo3.org/documentation/docum...1.0/view/10/2/
>>
>>
>> 2) simply use CSS
>>
>> As I see you are using TMENU and CSS anyway (and I'm a CSS guy), I'll
>> suggest that way, see below
>>
>>> My code until now:
>>>
>>> ################################################## ##########
>>> # Menu objects:
>>> temp.menu1 = HMENU
>>> temp.menu1.1 = TMENU
>>> temp.menu1.1 {
>>> expAll = 1
>>> NO {
>>> allWrap.insertData=1
>>> allWrap = <div class="menu"> | <br />
>>> ATagParams = onmouseover="changecolor(this, '{$pageColor}');"
>>> onmouseout="changecolor(this, '{$menuBGColor}');"

>>
>> I don't think this ATagParams line is neccessary. If you would use
>> ACTRO, TYPO3 would insert the neccessary JS for you. If you follow the
>> CSS way I suggest this line isn't needed anyway.
>>
>>> wrapItemAndSub = | </div>
>>> }
>>>
>>> ACT < .NO
>>> ACT = 1
>>> ACT {
>>> allWrap.insertData=1
>>> allWrap = <div class="menuACT{field:uid}"> | <br />
>>> wrapItemAndSub = | </div>
>>> }
>>> }
>>>
>>>
>>> temp.menu1.2 = TMENU
>>> temp.menu1.2 {
>>> NO {
>>> allWrap = | <br />
>>> }
>>> }
>>> ################################################## ##########
>>>
>>> And then there are some CSS to change the colors. Example:
>>> ###################
>>> div.menuACT8 {
>>> width: 100%;
>>> background: #ec008c;
>>> margin-bottom: 3px;
>>> }
>>> ###################
>>>
>>> Regard
>>> Anders Kongsted

>>
>> As you have set up a special class for every of your active menu items a
>> CSS file snippet similar to this should do the job:
>>
>> /* Format menu items and their hovers/rollovers */
>> div.menuACT8 {
>> background-color: yellow;
>> }
>> div.menuACT8:hover {
>> background-color: orange;
>> }
>>
>> div.menuACT9 {
>> background-color: grey;
>> }
>> div.menuACT9:hover {
>> background-color: green;
>> }
>>
>> div.menuACT10 {
>> background-color: purple;
>> }
>> div.menuACT10:hover {
>> background-color: red;
>> }
>>
>>
>> HTH, Georg

_______________________________________________
TYPO3-english mailing list
TYPO3-english (AT) lists (DOT) netfielders.de
http://lists.netfielders.de/cgi-bin/.../typo3-english
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!Spurl this Post!Reddit! Diesen Post bei linksilo.de bookmarken!
  #6  
Alt 07.06.2007, 23:57
Georg Rehfeld
Gast
 
Beiträge: n/a
Standard Re: [TYPO3] RO_chBgColor & optionSplit

Hi Anders, Johannes, all

Johannes Künsebeck wrote:
>> Thanks! I didn't know that I could use hover on table's.... :|

>
> doesn't work in ie (only for <a>)


Hey, Anders never mentioned tables ... though, most "good" browsers
support :hover for most elements. And IE 7 does a better job for :hover
than older versions.

The W3C spec however is (sadly) very unspecific, compare
http://www.w3.org/TR/CSS21/selector....pseudo-classes

| CSS doesn't define which elements may be in the above states, ...
| CSS 2.1 doesn't define if the parent of an element that is ':active'
| or ':hover' is also in that state.

And, although this list is not a CSS list, I would like to give the
hint:

even for IE 6/5.5 only supporting a:hover you _can_ do amazing things
by e.g. setting the anchor to "display: block; width: ...". And the <a>
may contain other elements as well, but note, only _inline_ elements, so
for sure you can't embed a table inside. But you may format the inside
elements, typically one or more spans, with "display: block;" too, or
even with "display: table;" etc.

Have a look at
http://schoppe-freiraumplanung.de/Ro...rten.84.0.html

and inspect the HTML source for the popup images inside
<div id="bilder"> : just some <a><span></span></a> tags. And there are
more advanced samples around

regards, Georg
--
___ ___
| + | |__ Georg Rehfeld Woltmanstr. 12 20097 Hamburg
|_|_\ |___ georg.rehfeld.nospam (AT) gmx (DOT) de +49 (40) 23 53 27 10

(Delete .nospam from mail address)
_______________________________________________
TYPO3-english mailing list
TYPO3-english (AT) lists (DOT) netfielders.de
http://lists.netfielders.de/cgi-bin/.../typo3-english
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!Spurl this Post!Reddit! Diesen Post bei linksilo.de bookmarken!
  #7  
Alt 08.06.2007, 17:00
Georg Rehfeld
Gast
 
Beiträge: n/a
Standard Re: [TYPO3] RO_chBgColor & optionSplit

Hi all,

Georg Rehfeld wrote:
> Have a look at
> http://schoppe-freiraumplanung.de/Ro...rten.84.0.html
>
> and inspect the HTML source for the popup images inside
> <div id="bilder"> : just some <a><span></span></a> tags. And there are
> more advanced samples around


Sorry, they started to work on their site and disabled all content
for now, so instead have a look at
http://georg-rehfeld.de/test/typo3/R...er_Garten.html
in case you are interested in the <a><span></span></a> thingy.

regards, Georg
--
___ ___
| + | |__ Georg Rehfeld Woltmanstr. 12 20097 Hamburg
|_|_\ |___ georg.rehfeld.nospam (AT) gmx (DOT) de +49 (40) 23 53 27 10

(Delete .nospam from mail address)
_______________________________________________
TYPO3-english mailing list
TYPO3-english (AT) lists (DOT) netfielders.de
http://lists.netfielders.de/cgi-bin/.../typo3-english
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!Spurl this Post!Reddit! Diesen Post bei linksilo.de bookmarken!
 

Lesezeichen

Themen-Optionen
Ansicht Thema bewerten
Thema bewerten:

Forumregeln
Es ist dir nicht erlaubt, neue Themen zu verfassen.
Es ist dir nicht erlaubt, auf Beiträge zu antworten.
Es ist dir nicht erlaubt, Anhänge hochzuladen.
Es ist dir nicht erlaubt, deine Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks are an
Pingbacks are an
Refbacks are an


Ähnliche Themen

Thema Autor Forum Antworten Letzter Beitrag
[TYPO3-german] Optionsplit bei wrap (TEXT)? Roland Müller typo3-german@lists.netfielders.de 4 30.05.2007 14:01
[TYPO3-dev] Using optionSplit in own extention âÏÊÞÕË ðÅÔÒÏ typo3-dev@lists.netfielders.de 7 19.04.2007 22:06
Re: [TYPO3-german] Frage zu optionSplit im Menu Andre Dittmar typo3-german@lists.netfielders.de 0 15.03.2007 09:37
[TYPO3-german] Frage zu optionSplit im Menü Andre Dittmar typo3-german@lists.netfielders.de 7 15.03.2007 02:22
[TYPO3] Nested Menus & optionSplit Benjamin Todd typo3-english@lists.netfielders.de 2 20.12.2006 12:51


Alle Zeitangaben in WEZ +1. Es ist jetzt 08:00 Uhr.


Powered by vBulletin® Version 3.7.4 (Deutsch)
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.1.0
Template-Modifikationen durch TMS

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75