Want to thank and support me for my work?
Buy my iWebFAQ.org E-Book (15$) (reviews) (sample) or...
iWebFAQ.org is presented by Cédric and hosted by HostExcellence
It is currently Sat May 18, 2013 11:08 pm

All times are UTC + 1 hour [ DST ]




Post new topic Reply to topic  [ 6 posts ] 
Accordion publishing problem
Author Message
 Post subject: Accordion publishing problem
PostPosted: Thu Jan 05, 2012 2:25 am 
Offline

Joined: Sat Nov 26, 2011 3:56 pm
Posts: 57
Hello again,

When I publish from my Desktop folder everything is fine. But when I publish to the web the accordion / drop down menus show the links. See http://www.garlandcountydems.org. Here is the code for the Political Links menu. Something needs to be changed, but I don't have a clue. Thanks for all your help.


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml2/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">

<head>

<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script>

<script type="text/javascript" src="file:///Users/Hozey/Desktop/ddaccordion.js">


/***********************************************
* Accordion Content script- (c) Dynamic Drive DHTML code library (www.dynamicdrive.com)
* Visit http://www.dynamicDrive.com for hundreds of DHTML scripts
* This notice must stay intact for legal use
***********************************************/

</script>


<script type="text/javascript">


ddaccordion.init({
headerclass: "expandable", //Shared CSS class name of headers group that are expandable
contentclass: "categoryitems", //Shared CSS class name of contents group
revealtype: "click", //Reveal content when user clicks or onmouseover the header? Valid value: "click", "clickgo", or "mouseover"
mouseoverdelay: 200, //if revealtype="mouseover", set delay in milliseconds before header expands onMouseover
collapseprev: true, //Collapse previous content (so only one open at any time)? true/false
defaultexpanded: [], //index of content(s) open by default [index1, index2, etc]. [] denotes no content
onemustopen: false, //Specify whether at least one header should be open always (so never all headers closed)
animatedefault: false, //Should contents open by default be animated into view?
persiststate: false, //persist state of opened contents within browser session?
toggleclass: ["", "openheader"], //Two CSS classes to be applied to the header when it's collapsed and expanded, respectively ["class1", "class2"]
togglehtml: ["prefix", "", ""], //Additional HTML added to the header when it's collapsed and expanded, respectively ["position", "html1", "html2"] (see docs)
animatespeed: "fast", //speed of animation: integer in milliseconds (ie: 200), or keywords "fast", "normal", or "slow"
oninit:function(headers, expandedindices){ //custom code to run when headers have initalized
//do nothing
},
onopenclose:function(header, index, state, isuseractivated){ //custom code to run whenever a header is opened or closed
//do nothing
}
})


</script>

<style type="text/css">

.arrowlistmenu{
width: 160px; /*width of accordion menu*/
}

.arrowlistmenu .menuheader{ /*CSS class for menu headers in general (expanding or not!)*/
font: bold 13px Trebuchet MS;
color: black;
text-align: center;
background: transparent(titlebar.png) repeat-x center left;
margin-bottom: 10px; /*bottom spacing between header and rest of content*/
text-transform: uppercase;
padding: 4px 0 4px 10px; /*header text is indented 10px*/
cursor: hand;
cursor: pointer;
}

.arrowlistmenu .openheader{ /*CSS class to apply to expandable header when it's expanded*/
background-image: url(titlebar-active.png);
}

.arrowlistmenu ul{ /*CSS for UL of each sub menu*/
list-style-type: none;
margin: 0;
padding: 0;
margin-bottom: 8px; /*bottom spacing between each UL and rest of content*/
}

.arrowlistmenu ul li{
padding-bottom: 2px; /*bottom spacing between menu items*/
height: 30px;
}

.arrowlistmenu ul li a{
color: #A70303;
background: url(arrowbullet.png) no-repeat center left; /*custom bullet list image*/
display: block;
padding: 2px 0;
padding-left: 19px; /*link text is indented 19px*/
text-decoration: none;
font-weight: bold;
border-bottom: 1px solid #A70303;
font: bold 12px Trebuchet MS;
}

.arrowlistmenu ul li a:visited{
color: #A70303;
}

.arrowlistmenu ul li a:hover{ /*hover state CSS*/
color: #A70303;
background-color: #5F94CC;
}

</style>

</head>

<body>

<div class="arrowlistmenu">

<h3 class="menuheader expandable">POLITICAL<br>LINKS</h3>
<ul class="categoryitems">
<li><a href="http://www.barackobama.com">Barack Obama<br>2012 Campaign</a></li>
<li><a href="http://www.democrats.org">Democratic National<br>Committee</a></li>
<li><a href="http://www.arkdems.org">Democratic Party<br>of Arkansas</a></li>
<li><a href="http://www.hsvdemocrats.org">Hot Springs Village<br>Democrats</a></li>
<li><a href="http://www.facebook.com/pages/VCK Democratic-Womens-Club/157322114346753">Virginia Clinton Kelly<br>Democratic Women</option>
<li><a href="http://www.facebook.com/pages/Young-Democrats-of-Arkansas-Garland-County-Chapter/190960870963449">Young Democrats<br>of Garland County
<li><a href="http://www.garlandcounty.org">Garland County<br>Government</a></li>
<li><a href="http://www.voterview.ar-nova.org">Find Your<br>Voting Location</
<li><a href="http://www.arktimes.com">Arkansas Times<br>Newspaper
</ul>

</div>


Top
 Profile Send private message  
 
Accordion publishing problem
Author Message
 Post subject: Re: Accordion publishing problem
PostPosted: Thu Jan 05, 2012 2:54 am 
Offline
Site Admin

Joined: Tue Jun 10, 2008 1:14 am
Posts: 1840
Location: Basel, Switzerland
The problem is with this line:

<script type="text/javascript" src="file:///Users/Hozey/Desktop/ddaccordion.js">

of course that works on your computer but from the web people can't access your computer so you have to change that into

<script type="text/javascript" src="/ddaccordion.js">

and upload the ddaccordion.js file to the root of your server so it shows up in your browser when you enter

http://www.garlandcountydems.org/ddaccordion.js

then it should work.

Regards,
Cédric

(PS: Let's hope Barack will win the election for him to get rid of all the crap of the eight years of republicans before him. This is not a political statement it's just the truth ;) )

_________________
Thank you for visiting my websites:
http://iwebfaq.org - http://rapidweaverfaq.org - http://wpfaq.org - http://ebookstoretoday.com
All my websites are hosted by: HostGator


Top
 Profile Send private message  
 
Accordion publishing problem
Author Message
 Post subject: Re: Accordion publishing problem
PostPosted: Thu Jan 05, 2012 5:50 am 
Offline

Joined: Sat Nov 26, 2011 3:56 pm
Posts: 57
I changed that line but didn't get the correct results because I haven't uploaded the ddaccordion.js file to the root of the server. Thanks.

Amen about Obama winning. I'm getting up in years and would like to see a start back down the road to civility in Washington and worry about my 7 grandchildren haven't to pay off this debt we've accumulated. Here in Arkansas we have to balance our budget do to wise wording in the state constitution which hasn't been wiggled around over the years. It's a shame the US constitution doesn't have the same provision. I had the privilege of serving in the Clinton Administration for both terms. I wouldn't go back to Washington now if they offered me a million a year.


Top
 Profile Send private message  
 
Accordion publishing problem
Author Message
 Post subject: Re: Accordion publishing problem
PostPosted: Fri Jan 06, 2012 12:25 am 
Offline

Joined: Sat Nov 26, 2011 3:56 pm
Posts: 57
Well, Cedric that isn't working either. Any other suggestions? Thanks.


Top
 Profile Send private message  
 
Accordion publishing problem
Author Message
 Post subject: Re: Accordion publishing problem
PostPosted: Fri Jan 06, 2012 12:40 am 
Offline
Site Admin

Joined: Tue Jun 10, 2008 1:14 am
Posts: 1840
Location: Basel, Switzerland
I still see

<script type="text/javascript" src="file:///Users/Hozey/Desktop/ddaccordion.js">

in all the snippets. So the changes may not have been published to the web.

_________________
Thank you for visiting my websites:
http://iwebfaq.org - http://rapidweaverfaq.org - http://wpfaq.org - http://ebookstoretoday.com
All my websites are hosted by: HostGator


Top
 Profile Send private message  
 
Accordion publishing problem
Author Message
 Post subject: Re: Accordion publishing problem
PostPosted: Fri Jan 06, 2012 1:17 am 
Offline

Joined: Sat Nov 26, 2011 3:56 pm
Posts: 57
I apologize. The person responsible for handling the upload to the www said he'd made the changes, but come to find out from looking at the files he sent me, he didn't. Looks like I'm gonna have to learn the hosting end of this project as well.


Top
 Profile Send private message  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
cron






Want to support me for my work?

or buy my iWebFAQ.org E-Book (15$)

(reviews) (sample)

Thanks,
Cédric



 

This website is hosted by HostExcellence



© 2008, 2009 Powered by phpBB Group
Macinscott 3 style by Scott Stubblefield