jQuery Slider effect

I created 2 buttons in this example, and they both switch when you click. You will notice that if you click on the button 1 and then button 2, they remain open at the same time. Is it possible to have him so when button 2 is selected, the button 1 closes?

Thanks in advance. Here's the code.

<! DOCTYPE html >

< html >

< head >

" < script src =" https://AJAX.googleapis.com/AJAX/libs/jQuery/1.12.4/jQuery.min.js "> < / script > .

< script >

$(document) .ready (function () {}

$("#flip").click (function () {}

$("#panel").slideToggle ("slow");

});

});

< /script >

< script >

$(document) .ready (function () {}

$("#flipp").click (function () {}

$("#break").slideToggle ("slow");

});

});

< /script >

< style >

#panel, {#flip}

padding: 5px;

text-align: center;

background-color: #e5eecc;

border: 1px solid #c3c3c3;

}

{#panel}

Padding: 50px;

display: none;

}

#break, {#flipp}

padding: 5px;

text-align: center;

background-color: #e5eecc;

border: 1px solid #c3c3c3;

}

{#break}

Padding: 50px;

display: none;

}

< / style >

< / head >

< body >

< div id = "flip" > button 1 < / div >

< div id = "Panel" > Content 2 < / div >

< div id = "flipp" > button 2 < / div >

< div id = "break" > Content 2 < / div >

< / body >

< / html >

As you know I never use jQuery now, but if someone is already using it, then...

There are many debates on the use of jQuery requirement now that browsers are more docile, but even if we think that is not really necessary, I can see the decline being very, very slow.

What about css are complex, depends on. I wish just that more people learn css and does not rely on frames, (everything is said).

Tags: Dreamweaver

Similar Questions

  • JQuery slider

    I am new to dreamweaver and am having problems making a slider in jquery.

    Can someone give me a simplified version of how to create a.

    Just to clarify the terms, jQuery Slider is a slider range mainly used with forms to enter an input value.  It is not an image slider.

    If a range slider is what you need, you can do almost the same thing with the HTML5 code.  See the example below.

    0 100

    You picked:

    Nancy O.

  • Problems using the widget sharing jquery slider.

    Sorry for getting back so soon with slide show another problem, but I have another site that needs a slider.  It is the cycle of jquery from the widget Exchange http://jquery.malsup.com/cycle/ I have it on http://carpetcleaningatascadero.com/index.html shows the style and images.  Then I did just a drag and drop of the plugin without modification on http://carpetcleanigatascadero.com/testcarpet.html shows the movement but none style or images. 

    You are amazing, I promise one day I will get it down to were I'm not here every day.

    Solved, had two selected effects that play well with each other. When in doubt delete things until it works.

  • creation of a photo of the hero using jquery slider but the sub nav bar menu go behind the tag div of heroes

    Dropbox - Butler lawyers

    Hello everyone

    I m, design a site with a hero photo slider using jquery. My problem is, the nav bar submenus go behind the photo slide so that you can't see the submenus of the Legal Services tab. I have provided a link dropbox for the entire project. I'm working on the file called index.html. Any thoughts on how to solve the problem?

    Thanks in advance

    Paul

    Hi Paul

    Sounds like a z-index issue.

    We really need to see ALL of your files to solve your problem quickly and accurately, without a lot of questions and-front-back and guess.

    Just rename a copy of your problem page (for example "test.html") and upload it to your server (with all the associated files) in the folder the original page was and simply post a link in the Forum and tell us about your problem.

    This avoids you having to cut and paste code miles in the Forum of the page and all dependent on CSS, JS etc files.and saves us from having to recreate all your files, find your images and then fix your code and test the solution for you.

    I hope it's useful.

  • Impossible to get Jquery slider to work in my DW CS4 site

    Hello

    Here is the site I built for my new company.  I need to get a cursor of work corresponding to the image of social media 972 x 432.  I don't want any text outside this space, and I don't want all the previous and next icons, or anything like that.  Just a simple slider that fades or wipes:

    http://designerandpublisher.com/business

    I tried to play with the downloads here:

    http://slidesjs.com/#examples

    But I can't make it work on my site.  I'm more of a designer to a developer, that's why I tend to run into issues such as (I want another head on me who does nothing but develop - smile).

    I look forward to do this because I have a business meeting the week next to raise money and operate.  I'd appreciate any help you can give me and if you want to copy and paste my site and then play with the blade, feel free to do so.

    Thank you - guys deaf

    You have the .slideshow dimensions reversed.  Try this in your CSS:

    . Slideshow {height: 432px; width: 972px ;}}

    Nancy O.

  • Using JQuery in Apex

    I use Apex 4.1

    I'm trying to animate a list, I therefore wanted to use JQuery
    So, I've edited my page and put the following text in the Javascript box.
    $(function() {
            $("#MAIN").show("slide", { direction: "up" }, 500);
                    
    });
    I gave to my region list id of the HAND.
    Unfortunately, the animation does not work.
    I think the Jquery file to do this job is jQuery UI effects, which I believe is loaded automatically into the Apex 4
    or am I wrong

    See you soon

    Gus

    Hello

    you get an error in the JavaScript console?
    Maybe * #main * is not loaded when you call the code?

    Try:

    $(document).ready(function() {
       $("#MAIN").show("slide", { direction: "up" }, 500);
    });
    
  • Problem, add a caption to my nivo slider

    Hi guys,.

    I need assistance with my Nivo Slider that is currently on my site. I tried to add a caption for each image animation block, but nothing works. I have this code in my head, but I do not know how to add a legend.

    < script type = "text/javascript" >

    {jQuery (window) .load (function ()}

    init NivoSlider

    jQuery('#slider').nivoSlider ({}

    effect: "<?" PHP echo of_get_option ('sl_effect');? > ',

    slices: <? PHP echo of_get_option ('sl_slices');? >,.

    boxCols: <? PHP echo of_get_option ('sl_box_columns');? >,.

    boxRows: <? PHP echo of_get_option ('sl_box_rows');? >,.

    animSpeed: <? PHP echo of_get_option ('sl_animation_speed');? >,.

    pauseTime: <? PHP echo of_get_option ('sl_pausetime');? >,.

    directionNav: <? PHP echo of_get_option ('sl_dir_nav');? >,.

    directionNavHide: <? PHP echo of_get_option ('sl_dir_nav_hide');? >,.

    controlNav: <? PHP echo of_get_option ('sl_control_nav');? >,.

    captionOpacity: <? PHP $sl_caption_opacity = of_get_option ('sl_caption_opacity'); If ($sl_caption_opacity! = ") {echo of_get_option ('sl_caption_opacity') ;} else {echo '0' ;}?}} >

    });

    });

    < /script >

    If you see on my site I have a Nivo slider with rotating images - http://www.london-school-of-makeup.com

    But I want it to work like this one http://www.gilesforeman.com

    I don't know if I need to change the header file or slider.php to make it work. Any help would be greatly appreciated.

    Thank you

    Line 278 of style.css:

    .Nivo-caption {}

    display: none! important;

    position: absolute;

    left: 0px;

    Bottom: 0px;

    Background: #000;

    color: #fff;

    opacity: 0.8; / * Overridden by setting captionOpacity * /.

    Width: 100%;

    z index: 89;

    }

    Who to change:

    .Nivo-caption {}

    display: block! important;

    position: absolute;

    left: 0px;

    Bottom: 0px;

    Background: #000;

    color: #fff;

    opacity: 0.8; / * Overridden by setting captionOpacity * /.

    Width: 100%;

    z index: 89;

    }

    278-297 lines is the CSS that controls your legend. Here you can style it any way you want.

    You can set positions, width, height, drop shadow, CSS Transitions, etc if you want your menu to act as the example site you gave.

  • Not having styling tags do not effect

    I'm doing < h3 > headings but for some reason any, that the tag has no effect, I also tried the < strong > tag nothing helps.

    http://EBN-TEC.co.za TEXT ON THE JQUERY SLIDER

    You have a tag framing h3 and p elements.

    Create a CSS rule in one of your CSS documents as follows:

    span {h3

    make-weight: bold;

    font size: 16pt;

    }

    This will display all the tags contained in a span tag as 16pt, bold h3.

  • The effects of a message as lazers and Fireworks do not work

    I've updated my phone to iOS 10 but the laser and lights Fireworks and what not effects do not work. Instead, the message shows and in parentheses, it is said (sent with lasers)

    Greetings aknopp21,

    Thank you for using communities of Apple Support.

    I see that upgrade you your iPhone to iOS 10, and laser and impact of fireworks messages do not work. I use these effects a lot on my iPhone when sending messages. So, I understand the importance of them to work on your iPhone.

    Please make sure that you have not reduced motion activated. Use section reduce the screen on your iPhone, iPad or iPod touch resolution, specifically, this section:

    iOS uses motion effects to create the perception of depth on your home screen and in applications. If you have sensitivity to the effects of movement or movement of screen on your iPhone, iPad or iPod touch, you can use Motion reduce to turn off these effects.

    To activate the movement reduce, go to settings > general > accessibility and press the cursor to reduce the Motion.

    When reducing Motion is enabled, certain effects screen change or are disabled on your device, including:

    • Screen transitions and effects using the effect of dissolving instead of zoom or slide effects.
    • Effect of Parallax where your wallpaper, apps and alerts that move or move slightly when you tilt your device are disabled.
    • Animation and effects in some applications are disabled. For example:

    If reduced motion turned on, please turn off and then test to see if you get the same result.

    Have a wonderful day!

  • slide-over does not work on my iPad Mini 2

    I have a Mini 2, model ME276LL/A iPad with iOS 9.2.1

    I can't get the slide effect, moving from right to left.

    I missed a setting?  I understand something on the slide-over?

    Int seems to be a bit of a... acquired skill you start dragging it beyond the right edge of the frame?

  • Slider control

    Hello

    I try to control a composition with an object null with a cursor associated with the opacity of the composition

    If (thisComp.layer ("null control slide") .effect ("mouth") ("Cursor" == 1) 100 0 otherwise)

    What's wrong with this script? I always this alert: anticipated :).

    Thank you

    Of course, it doesn't work as well.

    But the correct code is:

    If (thisComp.layer ("null control slide") .effect ("mouth") ("slider") == 1) 100 0 otherwise;

    Thank you for your help

  • Effects of timing look wobbly when previewing a project

    Hi once again, everything

    There is something wrong with my timing for my quiz slides effects. They are aligned to the right and when you preview all simply a slide in Captivate everything seems fine but as soon as I saw in the HTML5 in a browser or on the SCORM cloud everything goes wonky.

    This is how the slide ends when I put him to release into the effects of timing.

    Screen Shot 2016-03-20 at 10.31.46.png

    After you click an option, and press 'SUBMIT' (have not yet understood how to change having to click SUBMIT twice to move to the next slide, it's incredibly counter-intuitive) the rest of the objects and jut of text boxes to the top in their correct position, see below.

    Screen Shot 2016-03-20 at 10.31.54.png

    Curiously the difference with how high upward moving objects are much worse when the Preview on the SCORM cloud or the image displayed in HTML5 Preview in a browser if you do a standard preview in a browser using the Flash, I assume.

    Anyone have any ideas what's happening?

    I can see your slide stopping at 1.5 seconds according to the chronology. Since the end of your effect and the break is bunk, this may be why you see some kind of lag or stutter.

    I suggest you reduce your time to effect up to perhaps 1.3 or 1.4 seconds or less; OR you could try to increase the timing of break of 1,5 to 2 or 3 seconds (at least a few milliseconds after your effect is complete)

    You can try and see if it helps?

    Thank you

    MohanA

  • You can add an image in a PDF file slider? How you Center a picture? How to add captions to a photo?

    I'm creating a simple manual and I wanted to know if I can have an image slider in a PDF file without the need to have one image per page. The cursor will be clickable and whenever the user clicks on the previous or next image will change.

    Second, you can add captions to the images? Rather than having lengthy descriptions, I wanted to know if you can add captions to the PDF format.

    Finally, how can center you an image in a PDF document?

    Thank you

    I have a PC, Windows 7, Acrobat Pro XI

    -A slider effect can be added using layers or button form fields that contain images and then use the button to show/hide these items when you click it.

    You will not get the fancy transition effects you have on the web pages, but it will display a picture after another

    -What kind of legends? Just the text that appears beside them? It's something you should do in the authoring application, before converting the file to PDF.

    -Ditto regarding a picture of centering.

  • The effect of scrolling problem

    Hi all!

    Has anyone else experienced this weird phenomenon?

    After a few month hiatus and 1 year of update, I opened my Muse Parallax project, and now one of my items does not scroll as it used to. When previewing, instead of fading in and out as before, it now does not at all. If I uncheck the opacity slider effect, then it is there full-time without effect. Same thing for the effect of scroll position; does not appear at all. The effects of scrolling for other items are intact, which leads me to believe that this is a bug, especially since I do not remember it is broken when I left it in a month corner there.

    I wonder if anyone has experienced this problem and if there could be a quick fix, before I try to painstakingly rebuild this 'thing' from scratch in a new project.

    THX!

    Ian

    PS I can spend my private project to any potential hero who wish to embark on a mission of troubleshooting. Company N sensitivity all...

    The problem may be a new version of Muse. Usually, I prefer the project from scratch in order to avoid any bug again.

  • How can I build and image slider?

    I want to replace a photo with an image slider Gallery. There are 15 thumbnails and a master image. I want the thumbnails to scroll left and right and replace the main image.

    Hello

    here some links to the Nice sliders:

    http://jQuery.malsup.com/cycle/

    http://Wowslider.com/best-jQuery-slider-Crystal-linear-demo.html

    http://www.jcoverflip.com/demo

    http://www.jacksasylum.EU/ContentFlow/

    http://addyosmani.com/blog/jqueryuicoverflow/

    Have fun choosing!

    Hans-Günter

Maybe you are looking for

  • My computer has been hacked and now I have chrome://weave in my passwords

    I used a wifi unprotected for about 3 days and now I have unknown for programs running and sometimes commond prompt boxes suddenly poping up and disappear. I'm not using the computer, and I'm trying to change all my passwords just in case. (not to ge

  • Windows does not start on my NB100

    I think that my nb100 has been infected by a virus. It was a strange virus scan and I couldn't do anything. I turned it off and now Windows will not boot. I tried all the option; mode without failure, safe mode with command etc, but nothing works. I

  • To compare the name of the control with a variable

    Hi all I want to compare the name of a control with a variable in a loop. Is there any function for it in Labview? Please let me know if it is. Thanks in advance

  • With the help of Simple passage

    The software is called Pass Simple, I have to be even more simple, because for me, it's a mystery. I've had drives of fingerprints on other laptops, they were intuitive, they scanned all fingers and offered to save connection details on all the sites

  • Acer Aspire 7741 G-6426 Win7 32-bit: Bluetooth and Webcam not working not

    We have two laptops Acer Aspire 7741 G-6426 Win7 32-bit that neither bluetooth NOR webcam work on.  Both of them have, according to the Device Manager, all the drivers installed (no yellow exclamation point and try to update drivers yields the 'insta