First tab opening accordion jquery loading page

Hello, I wonder how I'd the first tab of my accordion to open when the page loads. It's a custom accordion and it is difficult to find the answer online.

I want it to be specific to a certain page if possible rather than universal through the site.

Here's the HTML code:

< div id = "st-accordion" class = "st-accordion" >

< ul >

< li >

< a href = "#" > Lorem ipsum < span class = "st arrow" > open or close </span > < /a >

< div class = "st-content" >

< p > Lorem ipsum dolor sit amet, adipiscing elit computer. Amongst computer auctor ante, sodales pretium felis auctor in. Aenean tempor orci vel vestibule lobortis, justo augue, laoreet turpis, id 195kgs dolor sed arcu arcu. SED id dolor tellus. Nulla sollicitudin, risus eros in ac and tincidunt nisl ultricies. Nam 195kgs departing Morbi pretium libero in ultricies lacus semper ac. Vestibule in a malesuada vel lorem ac posuere ligula nibh. DUIs varius city vehicula. Maecenas convallis tellus in tellus eget EST lacinia sollicitudin facilisis. UT tortor, pretium lacinia non sit amet, sold ac ipsum quam. Donec quis felis fringilla leo eget pulvinar accumsan libero. < /p >

< / div >

< /li >

< li >

< a href = "#" > Lorem ipsum < span class = "st arrow" > open or close </span > < /a >

< div class = "st-content" >

< p > Lorem ipsum dolor sit amet, adipiscing elit computer. Amongst computer auctor ante, sodales pretium felis auctor in. Aenean tempor orci vel vestibule lobortis, justo augue, laoreet turpis, id 195kgs dolor sed arcu arcu. SED id dolor tellus. Nulla sollicitudin, risus eros in ac and tincidunt nisl ultricies. Nam 195kgs departing Morbi pretium libero in ultricies lacus semper ac. Vestibule in a malesuada vel lorem ac posuere ligula nibh. DUIs varius city vehicula. Maecenas convallis tellus in tellus eget EST lacinia sollicitudin facilisis. UT tortor, pretium lacinia non sit amet, sold ac ipsum quam. Donec quis libero accumsan felis fringilla pulvinar eget in leo < /p >

< / div >

< /li >

< /ul >

< / div >

< / div >

< / div >

" < script type =" text/javascript"src =" http://AJAX.googleapis.com/AJAX/libs/jQuery/1.6.4/jQuery.min.js "> < / script > .

< script type = "text/javascript" >

{$(function()}

$('#st-accordion').accordion ({}

oneOpenedItem: true

});

});

< /script >

"< script type =" text/javascript"src="js/jquery.easing.1.3.js "> < / script >

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

< / div >

And the CSS:






.st-accordion{

    width:100%;
    min-width:270px;
    margin: 0 auto;






}.st-accordion ul li{
    height: 100px;
    border-bottom: 1px solid #c7deef;
    border-top:1px solid #fff;
    overflow: hidden;
}


.st-accordion ul li:first-child{
    border-top:none;
}


.st-accordion ul li > a{
    font-family: 'Josefin Slab',Georgia, serif;
    text-shadow: 1px 1px 1px #fff;
    font-size: 22px;
    display: block;
    position: relative;
    line-height: 100px;
    outline:none;
    -webkit-transition:  color 0.2s ease-in-out;
    -moz-transition:  color 0.2s ease-in-out;
    -o-transition:  color 0.2s ease-in-out;
    -ms-transition:  color 0.2s ease-in-out;
    transition:  color 0.2s ease-in-out;
}
.st-accordion ul li > a:hover{
    color: #1693eb;
}


.st-accordion ul li > a span{
    background: transparent url(../images/down.png) no-repeat center center;
    text-indent:-9000px;
    width: 26px;
    height: 14px;
    position: absolute;
    top: 50%;
    right: -26px;
    margin-top: -7px;
    opacity:0;
    -webkit-transition:  all 0.2s ease-in-out;
    -moz-transition:  all 0.2s ease-in-out;
    -o-transition:  all 0.2s ease-in-out;
    -ms-transition:  all 0.2s ease-in-out;
    transition:  all 0.2s ease-in-out;
}
.st-accordion ul li > a:hover span{
    opacity:1;
    right: 10px;
}


.st-accordion ul li.st-open > a{
    color: #1693eb;
}
.st-accordion ul li.st-open > a span{
    -webkit-transform:rotate(180deg);
    -moz-transform:rotate(180deg);
    transform:rotate(180deg);
    right:10px;
    opacity:1;
}


.st-content{
    padding: 5px 0px 30px 0px;
}
.st-content p{
    font-size:  16px;
    font-family:  Georgia, serif;
    font-style: italic;
    line-height:  28px;
    padding: 0px 4px 15px 4px; 
}
.st-content img{
    width:125px;
    border-right:1px solid #fff;
    border-bottom:1px solid #fff;
}


@media screen and (max-width: 320px){
    .st-accordion ul li > a{
        font-size:14px;
    }
}


@media screen and (max-width: 800px){
    .st-accordion ul li > a{
        font-size:16px;
    }
}











You can find the page at http://bit.ly/Zrpt1s

Any help is appreciated thank you grately!

Try

{$(function()}

$('#st-accordion').accordion ({}

oneOpenedItem: true

Open: 0

});

});

Tags: Dreamweaver

Similar Questions

  • If I would have all tabs open in my browser page load stop Web is their a shortcut key that will allow this?

    If I open too many pages of favorites in tabs in my browser going to hang and then sometimes crash or close unexpectedly.
    If I show the Task Manager or use the Alt + Tab keys I can access the window and right-click and choose restore to allow me to see the window again. This must be done if I load more than 10 pages at a time. Is it possible to prevent the loading of all open tabs and then choose what tabs I currently work with to load the Web page? I would like to know how to use a keyboard on my keyboard shortcut to select all tabs as ctrl + A does not work and then to escape or another key tells to stop pages from loading in each tab as with all ads, gifs, videos, and internet spam guard more is too much of a strain to have multiple Web pages open in tabs of the browser.

    I use Win XP SP2 and I look forward a solution as this has been a problem with previous versions of Firefox, but IE couldn't have about 3 tabs open and then would fail, that's why I stick with Firefox as my browser of choice.

    Maybe:

  • I used to be able to click on the Home icon using my Center wheel to cause a new tab open with my home page. This feature no longer works. Please notify.

    So, when I click on the Home icon at the top right of my Firefox page using my Center wheel, a new tab opens is more like

    my home page. Now, nothing happens when I do this.
    

    There is an extension or two or a combination of extensions that appear to be originally in Firefox 6.0.2. One that has been mentioned is TabMix Plus.

    http://support.Mozilla.com/en-us/KB/troubleshooting+extensions+and+themes

    You need to understand what is the cause and disable this extension/s until they are fixed by their developer.

  • make the new tab open to the home page

    When I open a new tab with the button '+' I get a blank page. I want my new tab opens automatically to my home page I put in Google. That's how IE8 it.

    New TabURL: https://addons.mozilla.org/en-US/firefox/addon/newtaburl/

  • the first tab open in firefox continuously charges and cannot be closed

    When I open Firefox the first tab, I opened will be constantly and that it cannot be closed

    I have been having this problem, but just checked my themes and noticed that I had a taken obsolete/no theme in charge without realizing it. The theme did not work at all.

    I activated the default theme (which is what I thought was already activated) and did not have the tab freeze up again again...

  • Panel tabs on master goes to the first tab every time I change page

    Hi all

    I'm working on a project where it is important to have a widget panels to tabs as a sort of module on the right side of my site. This widget is the same through my site completely, it works by placing it on my masterpage.

    But can you help me with that? For example when I click on the 3rd tab and then navigate to another page on my website, the widget will automatically switch to tab 1. It would be great if she would stay in the 3rd tab.

    Help will be very appreciated

    Thanks in advance!

    Joyce

    Joyce-

    I understand your question. In your case, the focused tab depends directly on the user here and you want the active tab to be the one who chooses the user, no matter what page on the site, they were on - if the user chooses the second background image, you want this image of background remains the same for all pages of the site.

    Unfortunately, this isn't a customizable feature in the control panel tabs in Muse - once the switches page to a new one, it goes back to the first tab. An option to consider - instead, see target your site navigation by different pages, you can try a unique page design and navigation bring the user to different anchors on the page. Sorry I couldn't be more helpful.

    As this is a feature I've seen many users wish to implement, I suggest posting here: ideas for features in Adobe Muse

  • Open the link in a new tab opens as a blank page?

    Whenever I go to open a link in a new tab, a blank page appears. This has started to happen since my mac just decided to update by itself for some reason any

    It's very frustrating, how can this be repaired?

    Safari - no support for third-party modules can cause Safari to suddenly quit, or have performance problems

    Safari does not load a page or webpage elements are missing

    Safari / other browsers - Web site does not

  • Lost all my thumb nails - new tabs open only a blank page. How to make a comeback?

    The subject of support on this issue says look for a "PIN" icon in the upper left corner of the browser. I do not show one. Firefox used to just automatically populate my new tabs with thumbnails page, but is no longer doing this, and I don't know how to fix it.
    I downloaded some freeware that has changed a number of navigation options (browser by default, added Bing bar without my full knowledge, etc.). Who has had all removed but then Firefox did not work well, so I had to uninstall/reinstall the program. Now my thumb nails are gone and I can't recover them or create new ones.
    Help!
    Cheers, Dolly

    Hello

    You can reset the setting for the page tab by following these instructions:

    • In the URL bar, type about: config and press ENTER.
    • The subject: config "This might void your warranty!" warning page may appear. Click on that I'll be careful, I promise! to keep the comments: config page.
    • In the search box, type "browser.newtab.url".
    • Click the browser.newtab.url preference, and then click Reset. He must then change back to the default which is ' on: newtab'.
    • Click OK and close all: config tab.

    You can see that it works for a while, but ultimately the problem comes. In this case then I think it is likely that some malware is hijacking your browser and make changes to the settings. That's why the change was made in the first place without your permission. You said that you had deleted the free software that you have installed, but sometimes they seem to have disappeared, but in fact to leave a trace.

    In this case, you can try these free programs to search for malicious software that work with your existing anti-virus software:

    I also suggest you do the following:

    • a comprehensive analysis with your current antivirus software.
    • Watch your Firefox Add-ons and remove any that you install yourself - disable or remove modules
    • Look at your list of applications from Windows startup and disable anything you think might be related or suspicious look.
    • Look at your list of installed Windows applications and uninstall anything that you think might be related or suspicious look.

    More information can be found in the article troubleshooting Firefox problems caused by malware .

    This solve your problems? Please report to us!

  • Twitter feed flashes open when the loaded page (in the widget of composition)

    Having a problem with our site created Muse.

    On each page, we have a Twitter live feed in a blank publication widget. It is set to "hide all initially ' yet whenever a page is opened it flashes opens then closes again as the loading of the page (but not everytime!)."

    Any ideas why this is happening. Everything is fine and we love Muse.

    The site is

    www.ticketagentsearch.co.UK

    I guess we can live with that, but it slows down the time before you can use another element on the page. I would like to address this issue before adding more pages.

    Thank you very much.

    Bob

    The widget always checks the State power and it's simply a performance issue before it parses the parameters. According to what you actually use the settings, you can improve things by using fewer inputs or by optimizing your workflow on the end of Twitter.

    Mylenium

  • Firefox is really slow to open the first tab, after that I can open as many tabs as I want to instantly. Why won't the first tab open instantly?

    Tried to reinstall firefox, no anti-virus program, updating, actually I have no program, no plugins, no extension. Firefox has added to the windows firewall that is allowed to pass from the list (which I never did with my vista machine) computer brand new i5 quad core 3.6 khz with windows 8.1 all drivers are up to date. He did take 2 weeks to get 8.1 windows finally installed without locking up and having to reinstall for the 15th time by disabling all Microsoft built in spyware. She was semi stable for 2 days now. When I install kaspersky AV, it adds another couple minutes to launch firefox.

    I was really excited about my new suppose to be faster computer but my 10 year old Q6600 2.4khz with vista is way faster and easier to use.  I know I can't be the only one in the world to have this problem.  I've been all over the internet and I see all the problems people are having with windows 8.1. I've got invitation to upgrade to windows 10 but that just locks up the computer again.  Someone, anyone please HELP!
    

    Solved it myself I think. The computer crashed again, so I took it back to return or repair. It turns out that the motherboard Asus has had an intermittent short circuit. Now, firefox opens perhaps a fraction of a second faster than my vista machine. Beautiful, I touch wood. Thanks to Fred for the answer to my problem. Good luck to all and good hike!

  • Why after update of Firefox I get 2 tabs opening? My home page and a page of Firefox, saying: I'm updating and the unpleasant question at the top asking EVERYTIME I open firefox if I want to send info on blocking ect

    I want my home back only ONE page!

    After following your suggestions, nothing has changed to uninstall and reinstall fixed it

  • How to make a new tab, open a particular web page

    Hi, several months ago a member of your team gave me this link "https://support.mozilla.org/en-US/questions/1028658" that solved my problem. Since then, the software has changed and the 'browser.newtab.url' is no longer available. Please do someone could offer a new solution, consider Tom

    Jscher200,
    Thank you very much for your help, the problem is now solved, Tom

  • How do you define new tabs to open with the home page

    When I open a new tab, I want to open it with my home page. Currently, I have to click on the Home icon to go to my home page. The first tab opens on my home page but not extra.

    You can middle - click the Home button to open Firefox to your home page in a new tab.

    Or you can install this add-on:
    https://addons.Mozilla.org/en-us/Firefox/addon/new-tab-homepage/

  • My problem is that I always get two tabs open when I start firefox. We are the home page, the second is a blank tab which is the one that opens. I don't want the 2nd

    I know how to set correctly in homepage. I'm an experienced user. My problem is when I start Firefox 20.0.1 it always starts two tabs. The first is the correct home page. The second is a blank tab switching to. I want only the first tab that is the home page. How to stop the second tab to open. The homepage is defined only with a URL and is correct.

    Note that you enter the permanent private browsing mode if you select "never remember history".
    In mode PB cookies are session cookies, so you can not keep all the cookies that store settings or other customization through a session.

  • New tabs open to the right of the current page, not extreme right?

    I liked using the new tab button, which disappeared from the most recent version, I had to go back to 38 to find it and put it back on my toolbar. However, I was not able to set the way in which the new tab opens, next to the page that I am. Previously, if I clicked on the new tab button, a new tab would open at the far right of the tabs. I tried to fix it by going to about: config, changing the browser.tabs.insertrelatedaftercurrent to 'false' to 'true' as was the fix in 2013. Alas, it doesn't now and I want to change it back. In addition, the new tab icon/button is gone for good in the new versions?

    If your new tab button opens a tab in the middle of your tabs, it could be a feature of an extension related to tab. Some of them, such as Tab Mix Plus and Tab Utilities have so many parameters it can be a challenge to sort through all of them. You can check your extensions and check if they have an Options button to tweak their settings, on page modules. Either:

    • CTRL + SHIFT + a
    • "3-bar" menu button (or tools) > Add-ons

    In the left column, click Extensions. Then go through the list on the right side.

Maybe you are looking for

  • Modify contextual access code

    There are a lot of posts already about an unexpected popup, saying: you need to change your secret code in xx seconds. Today I have a popup on my iPhone which simply said that I need to change my password now, and the only option was to "continue". 

  • After overheating my Qosmio X 870 lights

    Hi guys I need help. I was playing a game on my Toshiba Qosmio X 870 when it overheats, it had good ventilation and now it won't turn, there is no battery light, so I don't know if his food is grilled, the battery blew or something of the laptop was

  • Setup will not be replaced despite the same upgrade code

    Hello again, I recently upgraded from LabVIEW 8.5.1 LabVIEW 2010.  This exposed the code upgrade to me for the first time in the Installer properties.  I have 3 installers for my product.  Ideally they would replace each other, but at the moment (or

  • Http using BIS/BES connection.

    Hello Everone, Before sorry all, if the subject does not much sense. But was so confused that is happening right there. Here is the problem I am facing. In the application I developed, I use an HTTP connection. Now my question: is it possible that I

  • Query Builder: Error Message 'Unexpected token "over" '

    HelloI use Version 4.1.3.20 of the SQLDev.I have a SQL query that containscount (*) over (partition of...)andlistagg (col1, ',') within the Group (order in...) more than (partition of...)It works well in my spreadsheet calculation, but when I switch