Hi Kosmaton,

I think you still have an issue with the time at which this code is
run.

Because TW accepts macros in the content of the page these macros/
plugins need to be "loaded" in before the TW is rendered and the
content put in.  Therefore the code is getting run before the Image
map is in the page.

You can test this by using firebug's console, which you can log
messages to. E.g.

console.log("this code has just run');

or if you what to see if jQuery is returning the correct element you
could write (if you were trying to retrieve the element with a class
of siteTitle)

console.log($(".siteTitle"));

Your code attempts to add mouseover event handlers to the Image map
before they have been rendered. You could use jQuery's .live method
instead which means any element with the class, added at anytime. I
think
$("#bckimg").mouseover(function(){
        var quadMap = '.'+$(this).attr('id')+'-map';
        $(quadMap).css('display', 'inline');
        alert("yoho");
});
would become

$("#bckimg").live("mouseover", function(){
        var quadMap = '.'+$(this).attr('id')+'-map';
        $(quadMap).css('display', 'inline');
        alert("yoho");
});

Good luck,

Colm

-- 
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.

Reply via email to