Hi,
It doesn't work, because you don't made a "real" plugin. Anything
tagged systemConfig is just a script, that is executed at startup
time. At startup time ViewTemplate isn't rendered. So there are no
divs $('#bckimg') -> jQuery doesn't find it.
the plugin handler: function() {} makes it a real TW plugin, that is
only initialized at statup, but executed, whenever you call it with
eg:
<<myImgHover>> .. inside a tiddler or
<div class='' macro='myImgHover'></div> .. inside a ViewTemplate or
PageTemplate.
When ViewTemplate is rendered by the core, it sees that there is a
macro='' attribute. And the core executes it.
So I think, somewhere in the displayArea there should be your
background image divs.
And afterwards the macro call.
Since your macro only needs to be executed once, because it installs
some event handlers, that do the hover and click job. The plugin has
to handle this.
I think it is really important, that you understand my examples [1-4]
first, to go on.
===
An other problem seems to be the z-indexes with negative values.
that's why your image is behind the outermost <html> tag. -> rusult
is, that quad 1 and quad 2 can't be reached, because <html> has z-
index 0. It is above your images and catches the mouse over events.
Remove __all__ hardcoded z-indexes. Most of the time the default DOM
structure works well. introducing z-index only produces dependencies,
that may be hard to handle and make things complicated.
I have seen, that you inserted your images in the header div section.
That's why you needed to insert them with absolute positioning. I am
pretty sure that this caused some strange behaviour, that you fixed
with absolute.
I think the images should be part of the displayArea div. I think
there will be less trouble there. But I am not sure, without testing.
At the moment, I think the Theme structure + CSS works against you :)
====
As far as I understand your programm
1) there should be a background image with 4 quads
2) overing one of them should display a different picture
3) clicking a picture should trigger a tiddyWiki action
4) clicking a picture should link to an external site
is that right?
-m
--
You received this message because you are subscribed to the Google Groups
"TiddlyWiki" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/tiddlywiki?hl=en.