[Zope] (no subject)

Andreas Kostyrka andreas@mtg.co.at
Sun, 29 Aug 1999 10:48:04 +0200 (CEST)


On Sat, 28 Aug 1999, Kevin Dangoor wrote:

> -----Original Message-----
> From: happyrhino@usa.net <happyrhino@usa.net>
> To: zope@zope.org <zope@zope.org>
> Date: Saturday, August 28, 1999 5:29 AM
> Subject: [Zope] (no subject)
> 
> 
> >#1. The default standard_html_footer has this inside
> >    <p><!--#var ZopeAttributionButton--></p>
> >    Where is ZopeAttributionButton defined ?
> >    I can not find the image object anywhere.
> >    Also, where is the variable URL1 defined in
> >    the default index_html ?
> >    Sorry, I know these are stupid questions and not very important.
> 
> These get added to the namespace within Zope somewhere. If you grep through
> the source files, you'll probably find it. (I'm guessing it happens in
> ZPublisher... But I haven't looked through that code to see exactly what's
> happening.)
I'd look at ZPublisher/Request.py and HTTPRequest.py, but that's just a
guess without looking at the source ;)
Another thing to notice, that URLn are computed by the Request object,
when I recall correctly, on lookup.

> >#5. How do you add Javascript events to images ? For example, for
> >    rollovers ?
> 
> Zope doesn't have anything specifically for creating rollovers... you just
> put the Javascript within your HTML the same as you would elsewhere. You
> could possibly write some DTML methods to make it easier on you, though.
Well, one could subclass the Image class, and create a ImageRollover
class, that does this magically ;)

BUT, one of the problems is, that Rollover is best managed with one
Javascript function globally, which is called from the events on a number
of <IMG> tags. This might be a problem, because an automatic ImageRollover
would have to output this code multiple times :(
(It doesn't know if an Image was expanded before on this page. :( )

Andreas
--
Andreas Kostyrka                     | andreas@mtg.co.at
phone: +43/1/7070750                 | phone: +43/676/4091256   
MTG Handelsges.m.b.H.                | fax:   +43/1/7065299
Raiffeisenstr. 16/9                  | 2320 Zwoelfaxing AUSTRIA