JavaScript DHTML/Scriptaculous/Shrink

Материал из Web эксперт
Перейти к: навигация, поиск

Grow and shrink

   <source lang="html4strict">


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"

       "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head>

 <title>script.aculo.us Effects functional test file</title>
 <meta http-equiv="content-type" content="text/html; charset=utf-8" />
 <script src="scriptaculous-js-1.8.2/lib/prototype.js" type="text/javascript"></script>
 <script src="scriptaculous-js-1.8.2/src/scriptaculous.js" type="text/javascript"></script>
 <script src="scriptaculous-js-1.8.2/src/unittest.js" type="text/javascript"></script>
 <style type="text/css" media="screen">
 
   #d1 { background-color: #fcb; width: 200px; height: 200px; }
 
 </style>
 

</head> <body>

script.aculo.us Effects functional test file

Effect.Grow/Effect.Shrink

Lorem ipsum dolor sit amet

Grow: <a href="#" onclick="Effect.Grow("d1");; return false;">Grow()</a>

Shrink: <a href="#" onclick="Effect.Shrink("d1");; return false;">Shrink()</a>

</body> </html>

 </source>