| Author |  Topic  |  | 
              
                | rmmarshSuper User
 
      
 
                USA396 Posts
 | 
                    
                      |  Posted - 29 Nov 2007 :  18:39:45       
 |  
                      | OK... I'm new at D.H.E., learning as I go.  I saw the post on Scriptaculoous, downloaded it, and now I'm stuck!  Where do I place the javascript to accomplish the neat tricks?  In an HTML object? 
 Can someone post an example (or cookbook sample would be better)?
 
 R
 |  
                      | Edited by - rmmarsh on 29 Nov 2007  19:22:52
 |  | 
              
                | jtarinSuper User
 
      
 
                Russia444 Posts
 |  | 
              
                | rmmarshSuper User
 
      
 
                USA396 Posts
 | 
                    
                      |  Posted - 01 Dec 2007 :  23:17:47       
 |  
                      | Sorry, but that doesn't help me at all... I have placed the code under #4 just about everywhere I could, and nothing happens. 
 My question is:  exactly where do I place the actual scripts?
 |  
                      |  |  | 
              
                | NorthwindNovice
 
  
 
                Italy8 Posts
 | 
                    
                      |  Posted - 02 Dec 2007 :  11:21:28       
 |  
                      | quote:Originally posted by rmmarsh
 
 Sorry, but that doesn't help me at all... I have placed the code under #4 just about everywhere I could, and nothing happens.
 
 My question is:  exactly where do I place the actual scripts?
 
 
 
 1? create a folder on your site called: .../javascripts
 2? upload to your site the 7 necessary files in the above created folder (prototype.js, scriptaculous.js, builder.js, effects.js, dragdrop.js, controls.js and slider.js
 3? in D.H.E. paste into the head of your HTML page the following code:<script src="/javascripts/prototype.js" type="text/javascript"></script>
 <script src="yoursitename/javascripts/scriptaculous.js" type="text/javascript"></script>
 4? choose the object on wich you want to apply the effect
 5? go to the propertys of the object and click on "events"
 6? choose the Event (for example: onClick)
 7? choose the Action "JavaCall"
 8? in the line java call write the effect you desire to obtain (for example: new Effect.SwitchOff(this)
 
 Done
 
 
 
 |  
                      | Northwind
 ______________________________________________________________________
 La vita ? breve, vediamo di godercela il pi? possibile, ...quindi non incazz...con me!
 |  
                      |  |  | 
              
                | rmmarshSuper User
 
      
 
                USA396 Posts
 | 
                    
                      |  Posted - 02 Dec 2007 :  17:00:59       
 |  
                      | Northwind:  thank you so much... that was exactly what I was looking for... 
 R
 |  
                      |  |  | 
              
                |  |  Topic  |  |