Change these lines:
<script src="../includes/fx/prototype.js" type="text/javascript"></ 
script>
<script src="../includes/fx/scriptaculous.js" type="text/ 
javascript"></script>

To this: (Note the corrected path, per Ian's email)
<script src="includes/fx/prototype.js" type="text/javascript"></script>
<script src="includes/fx/effects.js" type="text/javascript"></script>

Change these lines:
// <![CDATA[
     Effect.Appear('mainTable');
// ]]>

To this:
Event.observe('window', 'load', function() {
     Effect.Appear('textarea');
     // For some odd reason, the id of the div you want to appear is  
"textarea"
     // I'd suggest picking a better name
});

What's really frustrating is that it was mentioned twice to make sure  
your script files were actually loading.  As Ian just posted, they're  
not.  Not fixing a simple bug after two people suggest it doesn't set  
a good impression.


TAG

On Jul 12, 2007, at 6:12 PM, lb wrote:

>
> Here's my code:
> Thank you for you help.
> ===============================
>
> <!--
>    ALL CONTENT COPYRIGHT STUDIO7 DIGITAL MEDIA, LLC.  ALL RIGHTS
> RESERVED.
>    VIOLATORS WILL BE PROSECUTED TO THE MAXIMUM EXTENT POSSIBLE IN THE
> COURT OF LAW.
>    WWW.LBWD.NET AND ITS OTHER SITES OR CONTENT MADE AVAILABLE IS
> PROTECTED BY INTERNATIONAL LAW.
>    DIRECT LEGAL QUESTIONS TO STUDIO7'S LEGAL DEPARTMENT.  PUBLIC
> WEBSITE: WWW.LBWD.NET
>
>    MAY CONTAIN OTHER COPYRIGHTS, BELONGING TO THEIR RESPECTIVE OWNERS.
> -->
> <html>
> <head>
> <meta http-equiv="Content-Type" content="text/html;
> charset=iso-8859-1">
> <title>Studio7 Digital Media</title>
> <meta name="robots" content="all">
> <meta name="keywords" content="Studio7, Web Developers, Website
> Designers, Logo Designers, Missouri, Digital Media, Corporate
> Identity">
> <meta name="description" content="Studio7 Digital Media offers a wide
> variety of digital media services from professional website
> development to corporate identity and logo design; we have you
> covered.">
> <meta name="author" content="Studio7 Digital Media">
>   <link rel="shortcut icon" href="media/images/favicon.ico">
>   <link rel="icon" href="media/images/animated_favicon.gif"
> type="image/gif">
>   <link rel="stylesheet" type="text/css" href="includes/style.css">
>   <script src="../includes/fx/prototype.js" type="text/javascript"></
> script>
>   <script src="../includes/fx/scriptaculous.js" type="text/
> javascript"></script>
>   <script type="text/javascript" language="javascript">
> <!--
> // <![CDATA[
>     Effect.Appear('mainTable');
> // ]]>
>
> // Image Rollover Code //
> function MM_swapImgRestore() { //v3.0
>   var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i+
> +) x.src=x.oSrc;
> }
>
> function MM_preloadImages() { //v3.0
>   var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
>     var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0;
> i<a.length; i++)
>     if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j+
> +].src=a[i];}}
> }
>
> function MM_findObj(n, d) { //v4.01
>   var p,i,x;  if(!d) d=document;
> if((p=n.indexOf("?"))>0&&parent.frames.length) {
>     d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
>   if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++)
> x=d.forms[i][n];
>   for(i=0;!x&&d.layers&&i<d.layers.length;i++)
> x=MM_findObj(n,d.layers[i].document);
>   if(!x && d.getElementById) x=d.getElementById(n); return x;
> }
>
> function MM_swapImage() { //v3.0
>   var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array;
> for(i=0;i<(a.length-2);i+=3)
>    if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc)
> x.oSrc=x.src; x.src=a[i+2];}
> }
> //-->
> </script>
> </head>
>
> <body onLoad="MM_preloadImages('media/images/
> badge_qualityservice.gif','media/images/badge_turnaround.gif','media/
> images/badge_satisfaction.gif','media/images/
> badge_satisfaction2.gif','media/images/ 
> badge_satisfaction2.gif','media/
> images/badge_satisfaction2.gif','media/images/
> badge_turnaround2.gif','media/images/badge_qualityservice2.gif')">
> <table width="771" height="588" border="0" align="center"
> cellpadding="3" cellspacing="0" id="MainTable">
>   <tr>
>     <td height="546" align="center" valign="middle"
> class="maintable"><table width="763" border="0" align="center"
> cellpadding="0" cellspacing="0">
>       <tr>
>         <td width="192" height="78" align="left" valign="top"><a
> href="index.php" target="_parent"><img src="media/images/studio7.gif"
> alt="Studio7" width="192" height="78" border="0"></a></td>
>         <td width="571" height="78" class="blue"><object
> classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://
> download.macromedia.com/pub/shockwave/cabs/flash/
> swflash.cab#version=7,0,19,0" width="571" height="78">
>           <param name="movie" value="media/flash/banner.swf">
>           <param name="quality" value="high"><param name="LOOP"
> value="false">
>           <embed src="media/flash/banner.swf" width="571" height="78"
> loop="false" quality="high" pluginspage="http://www.macromedia.com/go/
> getflashplayer" type="application/x-shockwave-flash"></embed>
>         </object></td>
>       </tr>
>       <tr>
>         <td width="192" height="10"><img src="media/images/
> grad_tl.gif" width="192" height="10" border="0"></td>
>         <td width="571" height="10"><img src="media/images/
> grad_tr.gif" width="571" height="10" border="0"></td>
>       </tr>
>       <tr>
>         <td width="192" height="365" align="center" valign="top"><img
> src="media/images/navspacer.gif" width="100" height="5">
>           <table width="172" border="0" align="center" cellpadding="0"
> cellspacing="0" class="navtable" id="NavTable">
>           <tr>
>             <td height="12" align="left" valign="middle"
> bgcolor="#EEEEEE" class="navheader">Browse Our Website</td>
>           </tr>
>           <tr>
>             <td height="130" align="left" valign="top"><? //include
> ("navigate.html") ?></td>
>           </tr>
>           <tr>
>             <td height="12" align="left" valign="middle"
> bgcolor="#EEEEEE" class="navheader">Hand-Picked Articles</td>
>           </tr>
>           <tr>
>             <td align="left" valign="top"><? //include
> ("articles.html") ?></td>
>           </tr>
>         </table></td>
>         <td width="571" height="403" align="center" valign="middle">
>       <div id="textarea" class="scroll">
>               This is the DIV that I need to "Appear" when the page loads.  
> The
> tag is removed because I don't know what to use instead of an
> onClick...
>       </div>
>               </td>
>       </tr>
>       <tr>
>         <td width="192" height="38">&nbsp;</td>
>         <td width="571" height="38"><table width="100%" border="0"
> cellspacing="0" cellpadding="0">
>           <tr>
>             <td><img src="media/images/badge_spacer1.gif" width="10"
> height="38" border="0"><a href="#" onMouseOut="MM_swapImgRestore()"
> onMouseOver="MM_swapImage('qos','','media/images/
> badge_qualityservice2.gif',1)"><img src="media/images/
> badge_qualityservice.gif" alt="Quality of Service" name="qos"
> width="93" height="38" border="0"></a><img src="media/images/
> badge_spacer2.gif" width="29" height="38" border="0"><a href="#"
> onMouseOut="MM_swapImgRestore()"
> onMouseOver="MM_swapImage('tat','','media/images/
> badge_turnaround2.gif',1)"><img src="media/images/
> badge_turnaround.gif" alt="Quickest Turn-Around Time" name="tat"
> width="108" height="38" border="0"></a><img src="media/images/
> badge_spacer3.gif" width="43" height="38" border="0"><a href="#"
> onMouseOut="MM_swapImgRestore()"
> onMouseOver="MM_swapImage('sg','','media/images/
> badge_satisfaction2.gif',1)"><img src="media/images/
> badge_satisfaction.gif" alt="Satisfaction Guaranteed" name="sg"
> width="87" height="38" border="0"></a></td>
>             <td align="right" valign="bottom"><img src="media/images/
> studio7_f1.gif" alt="Studio7" width="153" height="38" border="0"></td>
>           </tr>
>         </table></td>
>       </tr>
>       <tr>
>         <td width="192" height="9"></td>
>         <td width="571" height="9" align="right" valign="top"><img
> src="media/images/studio7_f2.gif" width="153" height="9" border="0"></
> td>
>       </tr>
>     </table></td>
>   </tr>
>   <tr>
>     <td height="42" class="footer"><table width="100%" border="0"
> cellspacing="0" cellpadding="0">
>       <tr>
>         <td width="24%" class="footxt">&nbsp;</td>
>         <td width="49%" align="center" valign="middle"
> class="footxt">Copyright &copy; Studio7 Digital Media<br>
> All Rights Reserved</td>
>         <td width="27%" align="right" valign="bottom"
> class="footxt"><span class="foot"><a href="contact.html"
> target="_parent"><u>Contact Studio7</u></a></span><br>
>           Jefferson City, Missouri<br>(573) 680-2227</td>
>       </tr>
>     </table></td>
>   </tr>
> </table>
> </body>
> <!-- Start of StatCounter Code -->
> <script type="text/javascript" language="javascript">
> var sc_project=955163;
> var sc_invisible=1;
> var sc_partition=7;
> var sc_security="6ec6629e";
> </script>
>
> <script type="text/javascript" language="javascript" src="http://
> www.statcounter.com/counter/counter.js"></script><noscript><a
> href="http://www.statcounter.com/"; target="_blank"><img src="http://
> c8.statcounter.com/counter.php?
> sc_project=955163&amp;java=0&amp;security=6ec6629e&amp;invisible=1"
> alt="Studio7" border="0"></a></noscript>
> <!-- End of StatCounter Code -->
> </html>
>
>
> >


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Spinoffs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to