2010-03-22 4 views
0

Ive essayant de cibler les iframe utilisant Raphael JScible iframe Raphael Js

voici quelques exemples de code

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

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

De plus, il est possible que href fonctionne avec le texte ar t = paper.text (50, 50, "Raphaël \ nkicks \ nbutt!"); t.attr ({href: "http://google.com/", cible: "_blank"});

Répondre

1

Après avoir passé un peu de temps pour réfléchir à

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

Questions connexes