Life In 19x19 http://www.lifein19x19.com/ |
|
Are hyperlinks into EidoGo game records possible? http://www.lifein19x19.com/viewtopic.php?f=18&t=618 |
Page 1 of 1 |
Author: | rubin427 [ Mon May 24, 2010 7:41 am ] |
Post subject: | Are hyperlinks into EidoGo game records possible? |
What I would like to be able to do is: 1) Post a game record into EidoGo (with the game record's text inline using the class="eidogo-player-auto" on a div tag). 2) Later in the same web page, make a link, such than when someone clicks the link, the EidoGo player jumps to that move number. I don't actually think this is possible, but if it is, it would make me happy. Thanks. |
Author: | fwiffo [ Mon May 24, 2010 8:45 am ] |
Post subject: | Re: Are hyperlinks into EidoGo game records possible? |
It's possible, but you'll need to know some Javascript. You can't use the "automatic" method of embedding. You'll have something like this. Code: <div id="player-container"></div> <script type="text/javascript"> var config = { container: "player-container", ... other eidogo config options ... }; var player = new eidogo.Player(config); </script> <p><a href="#" onclick="player.goTo(25); return false;">Jump to move 25</a>!</p> If you're talking about doing it here on the forum, the answer is: "No... well, actually yes... but I don't have time." |
Page 1 of 1 | All times are UTC - 8 hours [ DST ] |
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group http://www.phpbb.com/ |