0

我一直在尝试使用 Raphael JS 来定位 iframe

这是一些示例代码

var c = paper.circle(10, 10, 10); c.attr({href: " http://google.com/ ", target: "top"}); v

var t = paper.text(250, 50, "Raphaël\nkicks\nbutt!"); t.attr({href: " http://google.com/ ", 目标: "_blank"});

也..不能让href与文本一起工作 t = paper.text(50, 50, "Raphaël\nkicks\nbutt!"); t.attr({href: " http://google.com/ ", 目标: "_blank"});

4

1 回答 1

1

在花了一点时间思考之后

c.node.onclick = function load2 (iframe1URL, iframe2URL) { parent.iframe1.location.href='page1.htm' parent.iframe2.location.href='page2.htm'

于 2010-03-24T03:34:47.097 回答