Installing Accordian Menu For 1st Time

Good morning,

I'm a javascript (-)newbie and can't seem to figure out how to get his working.  The instructions only talks about initializing the script, but not how or where to install it.  I'm installing this on a page of a wordpress blog. Does the initialize script and the accordion object all go on the same page?  Where on my server should this be installed?  Could someone tell me how to get this script installed and working?

Thanks for the assistance.

Clesha
asked Apr 3, 2011 by anonymous

4 Answers

0 votes
Do you have a link? Hard to understand the issue without looking at it.
answered Apr 3, 2011 by anonymous
0 votes
Got it figured out! Nice script and working fine everywhere except in Internet Explorer (at least 6 and 7) where it just doesn't do anything..

Trying to understand what's the problem..
answered Apr 3, 2011 by anonymous
0 votes
I have more or less the same problem.

I know where to upload the script (got a special folder for js), but I cannot understand what must I do next. Should I copy this:

[i]<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />

<title>JavaScript Slider Example</title>

<link rel="stylesheet" href="slider.css" type="text/css" />

<script type="text/javascript" src="slider.js"></script>[/i]

to my header?

And in my post where I want the accordion to be should I put:

[i]<body onload="slider.init('slider',1)">

<div id="slider">

  <div class="header" id="one-header">My OWN Header One</div>

  <div class="content" id="one-content">

    <div class="text">

      My OWN Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Mauris mollis cursus dolor. Vivamus sapien nunc, vestibulum eget, facilisis vel, luctus at, nunc. Nam ullamcorper volutpat elit. Vivamus sapien nunc, vestibulum eget, facilisis vel, luctus at, nunc. Nam ullamcorper volutpat elit.

etc..[/i]

But I think I've gotten it all wrong as it only enters plain text and nothing more.

I'm very sorry for being so stupid.. But can you help me?
answered Apr 3, 2011 by anonymous
0 votes
If you have a global JS file you can put the script there since it is so lightweight. If you don't have one you can just include it in the header.php. How/where you initialize the script is up to you. You can just switch to source mode in the Wordpress editor and add a script block, use a custom field in conjunction with your theme, or one of many other options.
answered Apr 3, 2011 by anonymous
Web Analytics