Ok, thanks for useful replies.
Last question:
I know that is not possible load dinamically "filename.css" for a
iframe content.
And so I need to put:
<link rel=stylesheet href="filename.css">
in sample.html (page loaded in iframe).
Do you know if exist a way to toggle/add/removeClass in jquery
dinamically (css-class below for example) for iframe-elements?
.hover {
cursor: pointer;
border-width: 3px;
border-style: solid;
border-color: #FF0000;
}
I tried to put this in main.html:
$(frame).bind('mouseover', function(event) {
var element = $(event.target);
element.addClass('hover');
})
it works only if i put <link rel=stylesheet href="filename.css"> above
in sample.html (or class above in <style />)
is it possible create and load a class dinamically with jquery
avoiding to modify sample.html???
Thanks,
Julio