Demo

Having a demonstration is far better than description.

Javascript Code/Prototype Js Library

This demo is based on prototype.js.

    // Please keep this text while you copy the code
    // Horizontal Accordion from  n°lab from http://www.nazmulweb.com
    // Mail, if you have any question to nazmul.hoque@nazmulweb.com

    var lastBlock = $("a1");
    var maxWidth = 210;
    var minWidth = 75;
    $$("ul li a").each(function(anchor) {
        anchor.observe('mouseover', function(event) {
            this.setStyle({
                'width': maxWidth + 'px'
            });
            lastBlock.setStyle({
                'width': minWidth + 'px'
            });
            lastBlock = this;
            event.stop();
        });
    });
    //the code is free to use while keeping the above message
    
CSS

In addition to Page Layout's CSS, css used for Demo are shared here

ul.horiz
{
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: smaller;
}
ul.horiz li
{
    float: left;
    padding: 10px;
    display: block;
    margin-right: 10px;
}
ul.horiz li a
{
    display: block;
    overflow: hidden;
    height: 75px;
    width: 75px;
}
#a1
{
    width: 210px;
}
ul.horiz li div
{
    position: absolute;
    border: 3px solid #303030;
}
ul.horiz li p
{
    margin: 0;
    padding: 0;
    width: 120px;
    display: block;
    margin-left: 85px;
}
    
    
Improvement

Probably it has been observed that the last block, the text vanishes away, while you put the cursor on the text. To overcome the situation, an improvemnet has been done.


    // Please keep this text while you copy the code
    // Horizontal Accordion from  n°lab from http://www.nazmulweb.com
    // Mail, if you have any question to nazmul.hoque@nazmulweb.com

    $$(".demo_imp ul li a").each(function(anchor) {
    anchor.hover(function() {
    anchor.setStyle({ 'width': maxWidth + 'px' });
            if (!lastBlok == anchor) {
                lastBlok.setStyle({ 'width': minWidth + 'px' }); lastBlok =anchor;
            }
        }, function() { return; });
    });
    
To work with this, you need to include prototype.js library as well as protohover.js
Goto Top DownLoad protohover.js

6 Responses to "Horizontal Accordion using Prototype"

  1. [url=http://antibactabs.com/]azithromycin generic[/url] [url=http://cialisorder.com/]buy cialis canada[/url] [url=http://cialisopp.com/]cialis 20 mg price in usa[/url] [url=http://viagrareva.com/]buy viagra 100mg uk[/url] [url=http://cialisrmp.com/]buy discount cialis[/url] [url=http://pfhhealth.com/]generic propecia canada pharmacy[/url] [url=http://rlcialis.com/]cheap cialis online usa[/url] [url=http://iviagrabuy.com/]brand viagra[/url] [url=http://hydrochlorothiazidehctz.com/]where can i buy hydrochlorothiazide over the counter[/url] [url=http://viagralp.com/]sildenafil 20 mg in mexico[/url]
  2. 點子數位科技有限公司 https://spot-digital.com.tw/
  3. wetspot in pants snoopy tee shirts at discount prices [url=http://www.222book222.com]speaker shirt [/url] tmbg shirt ebay cargo string ties pocket pants <a href="http://www.452href.com"> handmade eco friendly dress pants </a> peter pan shoes and child skywarn shirt http://www.udwcs1223.com dancing shoes niguel olson
  4. [url=http://antibioticspt.com/]oral doxycycline[/url] [url=http://flagylpill.com/]flagyl capsule[/url] [url=http://toptabstore.com/]canadian pharmacy world[/url] [url=http://antibactabs.com/]doxycycline mono[/url] [url=http://nexiumesomeprazole.com/]nexium price comparison[/url] [url=http://healthytbb.com/]ivermectin tablets[/url] [url=http://medrolmedication.com/]medrol medication[/url] [url=http://cymbaltapill.com/]cymbalta 5mg[/url] [url=http://ondansetronzofran.com/]zofran price[/url] [url=http://levitraorder.com/]brand levitra 20mg[/url]
  5. looking to fuck in panama city beach http://goldgirlxxx.xyz/ Cut of xXx. Are you looking for? Construction Cams Field Construction Cams. Bringing his work home 'Idiot' rush hour motorist uses his laptop while driving along M 0 in the outside mirror. Start chatting with amateurs exhibitionists pornstars w HD Video Audio. Sweet 1 year old virgin strips for the camera. The hottest sex cam websites and girls ranked by quality. Talk with gay guys and men instantly on! Xxx domain for pornography. Porn Tube Videos.

Leave a Reply




Privacy Policy | Terms of use
css template ready for  n°web
© 2008 2009 2010 by http://nazmulweb.com