spacer

Webref WebRef   Sitemap · Experts · Tools · Services · Newsletters · About i.com

home / experts / javascript / column34


The Code and HTML for the Simple Animation

Developer News
OpenOffice 3.2 Lands Amid Critical Changes
Red Hat, IBM Firmly in KVM Virtualization Camp
Red Hat Talks Up Open Source Cloud Plans

<DIV ID="ball1" STYLE="position: absolute; left: 200; top: 200; width: 50;">
<IMG SRC="ball1.gif" WIDTH="50" HEIGHT="50"></DIV>
<DIV ID="ball2" STYLE="position: absolute; left: 350; top: 480; width: 25;">
<IMG SRC="ball2.gif" WIDTH="25" HEIGHT="25"></DIV>
<SCRIPT LANGUAGE="JavaScript1.2">
<!--

document.write("<SCRIPT SRC='animate.js'></SCRIPT>");
onload = start;

function start() {
  anim1 = new animation_simple("ball1");
  if (!anim1.element) return;
  anim2 = new animation_simple("ball2");

  myArray = new Array();
  myArray[0] = "anim1.circle(100, 0, -60, 0, 3, 50, 'myArray')";
  myArray[1] = "anim2.circle(100, 30, 30, 2, 5, 25, 'myArray')";
  myArray[2] = "anim1.circle(100, 0, -60, 0, 3, 50, 'myArray')";

  anim2.slideBy(200, -300, 10, 50, "myArray");
}

// -->
</SCRIPT>

http://www.internet.com

Produced by Yehuda Shiran and Tomer Shiran


The Network for Technology Professionals

Search:

About Internet.com

Legal Notices, Licensing, Permissions, Privacy Policy.
Advertise | Newsletters | E-mail Offers

webref The latest from WebReference.com Browse >
Search Engine Optimization: Selecting and Embedding Keywords · Are Google's Language Translation Web Services Ready for Prime Time? · Installing and Using Meeplace, the Business Review CMS
Sitemap · Experts · Tools · Services · Email a Colleague · Contact FREE Newsletters 
 The latest from internet.com
IBM DB2 10 for z/OS: Justifying the Upgrade · Living La Vida Colo: Choosing the Right Colocation Facility · FTC Concerns over Social Media Privacy Linger


Created: January 18, 1999
Revised: January 18, 1999

URL: http://www.webreference.com/js/column34/code1.html