
<! This material is Copyright (C)  1998 Christy Sheffield Sanford>
<HTML>
<HEAD><meta name="description" content="Web-specific love poem by Christy Sheffield Sanford">

<meta name="keywords" content="art, writing, genre fusion, experimental art, web-specific art, creative writing, poetry, animation, Java script examples, drag and drop, wipe, layers, computer art, mixed genre">
        <TITLE>Light and Dust Poets: Christy Sheffield Sanford's Rockgarden of Love</TITLE>

<!--
This page shows how to add DHTML animation to a page in a way that's compatible with older browsers. 
This example uses the default scripts generated by Dreamweaver. Be aware that Netscape Navigator 2.0 doesn't understand the new Array command (introduced in JavaScript 1.1), so it displays an error
message. Otherwise the page functions fine. 
--> 

<!-- Run animation only if 
it's a NS/IE 4.0+ brower -->
<SCRIPT language="JavaScript">
function
doCheckDHTMLcapable() {
        browserName = navigator.appName;

        browserVersion = parseInt(navigator.appVersion);
                if
(browserName == "Netscape" && browserVersion >=4) {

        MM_timelinePlay('Timeline1') // If it's NS 4+, run the animation

        }
        else;
        if (browserName == "Microsoft Internet Explorer" &&
browserVersion >=4) {
                MM_timelinePlay('Timeline1') // If it's IE 4+, run the animation
        }
        else;
        // otherwise don't run the animation
}
</SCRIPT>

<!-- 
This script holds the positioning info of the elements throughout
the animation.
--> 

<SCRIPT language="JavaScript">
function MM_initTimelines() {

//MM_initTimelines() Copyright 1997 Macromedia Inc. All rights reserved.

var ns = navigator.appName == "Netscape";  // set up check used to customize syntax
    document.MM_Time = new Array(1);

document.MM_Time[0] = new Array(1);
    document.MM_Time["Timeline1"] =
document.MM_Time[0];
    document.MM_Time[0].MM_Name = "Timeline1";

document.MM_Time[0].fps = 15;
    document.MM_Time[0][0] = new
String("sprite");
    document.MM_Time[0][0].slot = 1;
    // The above line handles alternate syntax needed by Netscape and Explorer.

document.MM_Time[0][0].obj = (ns) ? document.animatedText :
document.all["animatedText"];
    document.MM_Time[0][0].keyFrames = new
Array(1, 15);
    document.MM_Time[0][0].values = new Array(2);
    // The line below holds the horizontal positions for each move

document.MM_Time[0][0].values[0] = new
Array(300,279,257,236,214,193,171,150,129,107,86,64,43,21,0);

document.MM_Time[0][0].values[0].prop = "left";
    // The line below holds the vertical positions for each move
    document.MM_Time[0][0].values[1] =
new Array(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0);

document.MM_Time[0][0].values[1].prop = "top";
    // The lines below handle alternate syntax needed by Explorer and Netscape
    if (!ns) {

document.MM_Time[0][0].values[0].prop2 = "style";

document.MM_Time[0][0].values[1].prop2 = "style";
    }

document.MM_Time[0].lastFrame = 15;
    for (i=0;
i<document.MM_Time.length; i++) {
        document.MM_Time[i].ID = null;

document.MM_Time[i].curFrame = 0;
        document.MM_Time[i].delay =
1000/document.MM_Time[i].fps;
    }
}
</SCRIPT>

<!-- This sets up the autoplay --> 

<SCRIPT language="JavaScript">
function
MM_timelinePlay(tmLnName, myID) { //v1.0
  //Copyright 1997 Macromedia Inc. All rights reserved.
  var
i,j,tmLn,props,keyFrm,sprite,numKeyFr,firstKeyFr,propNum,theObj,firstTime=false;

  if (document.MM_Time == null) MM_initTimelines(); //if *very* 1st time

tmLn = document.MM_Time[tmLnName];
  if (myID == null) { myID = ++tmLn.ID;
firstTime=true;}//if new call, incr ID
  if (myID == tmLn.ID) { //if Im newest

setTimeout('MM_timelinePlay("'+tmLnName+'",'+myID+')',tmLn.delay);
    fNew
= ++tmLn.curFrame;
    for (i=0; i<tmLn.length; i++) {
      sprite =
tmLn[i];
      if (sprite.charAt(0) == 's') {
        if (sprite.obj) {

numKeyFr = sprite.keyFrames.length; firstKeyFr = sprite.keyFrames[0];

if (fNew >= firstKeyFr && fNew <= sprite.keyFrames[numKeyFr-1]) {//in range
            keyFrm=1;
            for (j=0; j<sprite.values.length;
j++) {
              props = sprite.values[j]; 
              if (numKeyFr
!= props.length) {
                if (props.prop2 == null)
sprite.obj[props.prop] = props[fNew-firstKeyFr];
                else
sprite.obj[props.prop2][props.prop] = props[fNew-firstKeyFr];

} else {
                while (keyFrm<numKeyFr &&
fNew>=sprite.keyFrames[keyFrm]) keyFrm++;
                if (firstTime ||
fNew==sprite.keyFrames[keyFrm-1]) {
                  if (props.prop2 ==
null) sprite.obj[props.prop] = props[keyFrm-1];
                  else
sprite.obj[props.prop2][props.prop] = props[keyFrm-1];
        } } } } }

} else if (sprite.charAt(0)=='b' && fNew == sprite.frame)
eval(sprite.value);
      if (fNew > tmLn.lastFrame) tmLn.ID = 0;
} }
}
</SCRIPT>

</HEAD>

<body  bgcolor="#000000"  text="#EA9272"    link="#EA9272"   vlink="#EA9272"  background="images/floatani.gif"  onload="doCheckDHTMLcapable()">

<TABLE border="0" width="400" cellspacing="0" cellpadding="0"><TR><TD width="400"  height="380"  align="left" valign="TOP"   background="images/rock_velvani.gif">
        <SPAN
id="animatedText" style="position:relative; width:400px; height:380px;
z-index:1; left:410px; top:0"><FONT SIZE="5" FACE="palatino, times new roman"><i><A HREF="hibiscus-fountain.html">&nbsp;<br> &nbsp;<br>&nbsp; <br>&nbsp; &nbsp; &nbsp; &nbsp;Enter the<br>&nbsp; &nbsp; &nbsp; &nbsp;Rockgarden of Love<br>
&nbsp; &nbsp; &nbsp; &nbsp;by
Christy Sheffield Sanford</font><br>
<font color=000000>.<br>
.<br>
.<br>
.<br>
.<br>
</a></i></font></SPAN>
     </TD>
  </TR>
  <TR>
    <TD width="400" height="50"
align="LEFT" valign="TOP">&nbsp;<p>&nbsp;<br>
        <SPAN id="regularText"
style="position:relative; width:400px; height:50px; z-index:2; left:100;
top:0"><i><a href="http://www.thing.net/~grist/l&d/lighthom.htm">... Light and Dust Home ...</a></i></SPAN>
    </TD>

</TR>
</TABLE>
<applet  codebase = classes
    code     = Audio.class
    width    = 2
    height   = 2>
<param name=audio value=classes/gate.au>
<param name=PlayDelay value=20>
<param name=Loop  value=true>
Sorry! You need a Java-enabled browser to view Java applets
<param name=Text value="... Light and Dust ..."> 
<param name=TxVertCenter value=true>

</applet>

 <! Applet by John Pew at Vivid Solutions>
</BODY>
</HTML>

                       

