Hello Guys,

I comes to try to clarify some small doubts, I'm trying to create a
function that, if I positioned over this, create a box around the
cell, but I don't want to alter values of style, I think that a good
way is create a floating table with the same dimensions, to do this, I
found "Position": overlap but says it's obsolete, then I found
clonePosition  but couldn't make it works.

I'm doing this:

var box = new Element('div',{'style':'border:1px red'});

Event.observe(document, 'mouseover', function (event) {
        var element = event.element();
                if (element.tagName == 'TD') {
                    element.clonePosition(box);
                }
}

Is anything wrong?

Well, I also tried to do the following, staying on the cell if press
SHIFT + CLICK copy the text to clipboard, but this feature doesn't
works for me directly:

Event.observe(document, 'keypress', function (event) {
        if (event.keyCode == 42 || event.keyCode == 54) alert("ok");
});

And what happend with javascript "this" value, becouse

Event.observe(document, 'mouseover', function (event) {}

Is not the same that

<a href="" onmouseover="some(this)">
.....
function some(o) {}

Or how can I handle "this" value with Prototype.

Thk U in advance
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Spinoffs" 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/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to