Log in

View Full Version : Dynamic Drop Down Panel for Wordpress



hagvist
10-23-2008, 11:46 PM
1) Script Title: DDD Panel

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex17/dddropdownpanel.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

ddadmin
10-24-2008, 08:07 AM
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:


<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:


<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>

hagvist
10-24-2008, 04:38 PM
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