Results 1 to 3 of 3

Thread: Dynamic Drop Down Panel for Wordpress

  1. #1
    Join Date
    Oct 2008
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Dynamic Drop Down Panel for Wordpress

    1) Script Title: DDD Panel

    2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...pdownpanel.htm
    3) Describe problem:
    I would really like to use this script with a wordpress theme. I am usually pretty good at patching these things together. But I can't seem to make this one work. Any ideas?

    I am wanting to put it under my submenu on http://www.kickstandbikeshop.com

    All my best,

    Hagvist

  2. #2
    Join Date
    Aug 2004
    Posts
    10,143
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    Your page seems to be missing just about everything when it comes to the script. Firstly, the code below should be moved to the HEAD section of your page:

    Code:
    <link rel="stylesheet" type="text/css" href="dddropdownpanel.css" />
    
    <script type="text/javascript" src="dddropdownpanel.js">
    
    /***********************************************
    * DD Drop Down Panel- (c) Dynamic Drive DHTML code library (www.dynamicdrive.com)
    * This notice MUST stay intact for legal use
    * Visit Dynamic Drive at http://www.dynamicdrive.com/ for this script and 100s more
    ***********************************************/
    
    </script>
    Speaking of which, you have yet to upload the two external files referenced. For example, this returns an error: http://kickstandbikeshop.com/dddropdownpanel.js

    Secondly, you need to also add the HTML of the panel to where you want it to appear on your page, such as below the sub menu:

    Code:
    <div id="mypanel" class="ddpanel">
    <div id="mypanelcontent" class="ddpanelcontent">
    
    <p style="padding:10px">
    <img src="http://i36.tinypic.com/kak1t0.jpg" class="closepanel" style="float:left; width:200px; height:172px; margin:0 10px 10px 0" />The Milky Way is a barred spiral galaxy that is part of the Local Group of galaxies. Although the Milky Way is one of billions of galaxies in the observable universe,[4] its special significance to humanity is that it is the home galaxy of our Solar System. The plane of the Milky Way galaxy is visible from Earth as a band of light in the night sky, and it is the appearance of this band of light which has inspired the name for our galaxy. It is extremely difficult to define the age at which the Milky Way formed, but the age of the oldest star in the Galaxy yet discovered, HE 1523-0901, is estimated to be about 13.2 billion years, nearly as old as the Universe itself. -Source: <a href="http://en.wikipedia.org/wiki/Milky_way" style="color:white">Wikipedia</a>.
    </p>
    <br style="clear: left" />
    <p>Note: Click on any link or the Milky Way Image auto closes the panel.</p>
    
    </div>
    <div id="mypaneltab" class="ddpaneltab">
    <a href="#"><span>Toggle</span></a>
    </div>
    
    </div>
    DD Admin

  3. #3
    Join Date
    Oct 2008
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Thanks

    Thanks, I will give it another try. I pulled the scripts off the page. It is for a client and did not want to leave pieces of code laying around in his script.

    I think I messed up by putting the resource files in the theme root rather than the site root

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •