[TYPO3] Transparent GIF in GMENU - FIXED!

Scotty C superscotty19 at yahoo.com
Sun Apr 2 22:54:00 CEST 2006


Hi Christian and Susanne,

First of all, thank you very much for helping me plow
through this beast. I *finally* figured it out ...
although I don't know what the problem was! I
remembered that I designed another site a year ago
that utilized transparent menu items, so I just copied
the code. Here's the result:


     subparts.SIDENAV = HMENU
     subparts.SIDENAV.1 = GMENU
     subparts.SIDENAV.1.NO {
        wrap = | <BR>

        # width,height of button
        XY = 156,20
	
	transparentBackground = 1

        10 = TEXT
        10.text.field = title
        10.fontSize = 11
        10.offset = 1,10
        10.align = left
        #10.niceText = 1
        10.fontColor = white
        10.fontFile = fileadmin/fonts/BNKGOTHM.TTF
        10.antiAlias = 0
 
     }

     subparts.SIDENAV.1.RO < subparts.SIDENAV.1.NO
     subparts.SIDENAV.1.RO = 1
     subparts.SIDENAV.1.RO {
        wrap = &nbsp;&nbsp;&nbsp; | <BR>

        XY = 156,20
 
	transparentBackground = 1

        10 = TEXT
        10.text.field = title
        10.fontSize = 11
        10.offset = 1,10
        10.align = left
        10.niceText = 1
        10.fontFile = fileadmin/fonts/BNKGOTHM.TTF
        10.fontColor = blue
        10.antialias = 0

      }


Again, I don't see anything out of the ordinary here
except for one thing: I may have set the text offset
too high, making the items "disappear" (or so it
seemed). At any rate, it's solved and I'm very happy!
You can see the result at www.stormat.ca

But now I have a new problem: I need to set custom CSS
for the mininews module on the home page. You'll see
that it's got black text but needs to be white. The
problem is, it would appear that the mininews module
just uses the <P> tag styles, so if I set <P> color to
white, the text changes. However, so does the rest of
the text in the entire site. Looks like I've got
another mess - can anybody help here?

Thanks so much!
-Scott.



--- Christian Vetter
<Christian.Vetter at dragoner-design.de> wrote:

> Hi Scott,
> The only differences I've seen in Susanne's code
> (except of course that  
> it's a special menu) are the color having been
> written in hex form and the  
> 'NO = 1', but since the latter shouldn't be needed
> and the former should  
> be recognized as you wrote it.
> Call it a dumb question, but do the img-tags appear
> in the HTML-code  
> delivered by Typo3? If so, open one of the images in
> an image software -  
> does it have the right proportions?
> 
> About the field property, since Susanne is using it
> successfully, it's  
> most probably right :) I guess I got something wrong
> in the documentation.
> I really thought the newer IEs supported alpha
> transparency - I was  
> certain to have seen it ... but then again, I might
> just have been tricked  
> ;)
> 
> If you find the relevant difference with Susanne's
> code, I'll be  
> appreciate if you point it out.
> 
> Best regards,
> Christian
> 
> 
> Am 02.04.2006, 08:18 Uhr, schrieb Scotty C
> <superscotty19 at yahoo.com>:
> 
> > Hey Christian,
> >
> > Here's the responses to each thing you mentioned:
> >
> > - font path is correct
> > - offset was positive but changed to negative for
> > formatting purposes only
> > - I used field because I want the title of each
> page
> > to be the title of each menu entry, and I don't
> think
> > it gets the value automatically
> > - I know about GIFs and alpha transparencies. It's
> > really too bad because even though Typo3 4.0
> supports
> > it, IE doesn't so there's no point. At any rate,
> I'm
> > only doing single channel transaprencies ... if I
> > could get them to work!
> >
> > I really wish I knew why this isn't working!
> Thanks as
> > always,
> > -Scott.
> _______________________________________________
> TYPO3-english mailing list
> TYPO3-english at lists.netfielders.de
>
http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-english
> 


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 



More information about the TYPO3-english mailing list