Clickable drop down box/Sliding DIV need help w/scripting


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2

Thread: Clickable drop down box/Sliding DIV need help w/scripting

  1. #1
    Join Date
    Mar 2007
    Posts
    1

    Clickable drop down box/Sliding DIV need help w/scripting

    I am having a hard time trying to get this Sliding DIV to work with my setup in Dreamweaver. I'm not sure of the placement of all the values for the Javascript and where the script should be placed and properly referenced. I don't even know where to put in the text that's contained in the sliding DIV! If anyone could give me some sort of walkthrough on how to put this to use, it would be much appreciated

    Here is the Sliding DIV tutorial I'm having trouble with:
    http://www.harrymaugans.com/2007/03/...-animated-div/

    Which is based off this Javascript found here:
    http://www.harrymaugans.com/wp-conte.../motionpack.js

    For instance: It tells me to add this code into the bottom of the motionpack found above;
    function toggleSlide(objname){
    if(document.getElementById(objname).style.display == "none"){
    // div is hidden, so let's slide down
    slidedown(objname);
    }else{
    // div is not hidden, so slide up
    slideup(objname);
    }
    }
    And then it says my link should look like this:
    <a href="javascript:;" onmousedown="toggleSlide('mydiv');">Toggle DIV Slide</a>
    I'm just having a hard time figuring out where to place the link described above in reference to the motionpack javascript. Any help would be much appreciated.
    Last edited by blundersen; 03-30-2007 at 10:04 AM.

  2. #2
    Join Date
    Jun 2004
    Posts
    199
    It is funny. I've been gone from this forum for a long time. And still people post Javascript questions in a Java forum.

Similar Threads

  1. css div trouble
    By major in forum Web
    Replies: 0
    Last Post: 08-09-2006, 10:40 AM
  2. HELP: DataGrid inside DIV Layer
    By dhruba.bandopad in forum ASP.NET
    Replies: 0
    Last Post: 04-13-2006, 12:18 PM
  3. Drag and Drop Problem
    By Xin Li in forum .NET
    Replies: 0
    Last Post: 03-13-2002, 05:03 AM
  4. DIV's and drop down menus (SELECT)
    By Randy in forum Web
    Replies: 2
    Last Post: 12-21-2001, 09:10 AM
  5. One DIV on top of another
    By Tim Cowan in forum Web
    Replies: 2
    Last Post: 09-21-2000, 04:28 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center