i have some text following the mouse, i need to change that to an i frame, how do i do this?

Posted by sam on Stack Overflow See other posts from Stack Overflow or by sam
Published on 2010-06-04T15:40:37Z Indexed on 2010/06/05 10:12 UTC
Read the original article Hit count: 182

Filed under:
|
$(document).ready(function () {
//create the div
var div = $("<div></div>").css("position", "absolute").text("a short message").appendTo("body");



//attach the mousemove event
$("body").bind('mousemove', function(evt) {
    div.css({
        "left": evt.pageX + "px",
        "top": evt.pageY + "px"
    });
});

});

what im trying to do is replace a short message with an iframe, what do i do?

© Stack Overflow or respective owner

Related posts about iframe

Related posts about js