Javascript help needed

[ Follow Ups ] [ Post Followup ] [ Palview Developers Forum ]
Posted by Paul Broekhuyse on October 10, 19102 at 09:32:53:

Hi,
I've recently been experimenting with ways of "animating" Palview lately by setting up new "Game highlights" buttons which jump between various captioned diagrams and critical board positions - a bit like the autoplay function, but not jumping to every move.

My problem is, I don't know how to set an interval between the positions (don't know what the Javascript should be). I don't really understand Javascript very well.

Can anybody advise me? What I need to know is, what should I insert between the moves ( ...Mv(0,6) ... Mv(0,52) etc ...) to set a delay of, say, five seconds?

(also, just as a matter of interest, I've also been experimenting with Flash lately to try to produce game animations, but it's quite time-consuming. However, it's quite easy to combine Flash (.swf) with Palview ... you can get the .swf file to execute Javascript commands (typically Mv(0,6) etc) at timed intervals. This seems to work fine on one of my sites (www.chessnetwork.com/ncn) but not on the other! (www.auschess.org.au) ... I don't know why. My question above relates to how to achieve the same thing entirely within Palview, since this would be the most efficient of all).

And one other question: Is it possible to add extra DHTML elements to Palview? What I have in mind is things like arrows and highlighted squares, which I could transition on to one of the captioned diagrams. (I know the captioned diagrams allow for the use of Xs and Os, etc). I haven't tried this yet, although I've done some very simple DHTML transitions in other contexts. Is it possible to do this by adding code to a Palview file?

Finally, thanks again for such a wonderful program!

Kind regards
Paul Broekhuyse

Follow Ups:
Post a Followup

Name:   
Subject:

Comments:

Optional Link URL:

Link Title:

[ Follow Ups ] [ Post Followup ] [ Palview Developers Forum ]