Yuqori divni bir Bottom Div-da (mustaqil ravishda ishlashi kerak) havolani tanlab qayta tiklash

Umid qilamanki, bu menga yordam berishi mumkin!

$ Filmlar deb nomlanadigan qator elementlari sifatida joylashgan kinolar tafsilotlari (nom, direktor, yil) bo'lgan filmlarimContents.php faylim bor.

Bu quyidagicha ko'rinadi:

<?php

$films = array(
    'movieOne' => array(
            'title' => array(
                'en'=>'Movie ONE',
                'es'=>'PELICULA UNO'
                    ),
            'director' => 'John Doe 1',
            'year' => '2011'
            ),
    'movieTwo' => array(
            'title' => array(
                'en'=>'Movie TWO',
                'es'=>'PELICULA DOS'
                    ),
            'director' => 'John Doe 2',
            'year' => '2010'
            ),
    'movieThree' => array(
            'title' => array(
                'en'=>'Movie THREE',
                'es'=>'PELICULA TRES'
                    ),
            'director' => 'John Doe 3',
            'year' => '2009'
            ),
    'movieFour' => array(
            'title' => array(
                'en'=>'Movie Four',
                'es'=>'PELICULA CUATRO'
                    ),
            'director' => 'John Doe 4',
            'year' => '2008'
            ),
    'movieFive' => array(
            'title' => array(
                'en'=>'Movie FIVE',
                'es'=>'PELICULA CINCO'
                    ),
            'director' => 'John Doe 5',
            'year' => '2007'
            ),
    'movieSix' => array(
            'title' => array(
                'en'=>'Movie SIX',
                'es'=>'PELICULA SEIS'
                    ),
            'director' => 'John Doe 6',
            'year' => '2007'
            )

        );

?>

nima qilishni istayman:

Har bir kino uchun Div sahifasida ko'rsatiladigan linklarga ega bo'lgan asosiy Divizionga ega bo'lgan sahifani ko'rish uchun filmlarning birining tafsilotlari va pastki aylantirish Divi ko'rsatiladi.

Men buni mukammal bajarishim mumkin edi ... Ammo men pastki o'girishga oid Divda 15 ta film bor va men o'ngdagi oxirgi filmni bosishim bilan butun sahifani yuklaydi, shuning uchun pastga aylantiruvchi div xuddi o'sha erda qolmaydi oxirgi filmning havolasini bosganimda, u pastki o'giruvchi Divning boshiga kelmasa edi.

Bu mening films.php faylim:

<?php include_once("filmsContent.php");

@$film = $_REQUEST['title'];

?>


    <head>


    </head>
<body>          


<?php


echo "<div class='content'>"; ?>

    <div class='films'>

    <?php echo $films[$film]['title']['en']."
"; echo $films[$film]['director']."
"; echo $films[$film]['year']."
"; ?> </div> <div style='width: 200px; height: 60px; overflow: auto; overflow-y: hidden;'> <div style='width: 700px;'> <?php foreach($films as $film=>$attribute) { echo "".$films[$film]['title']['en']." | "; } ?> </div> </div> </div> </body> </html>

What I wish is to have the Top Div reloaded with the info of the movie I choose every time, and only that Div, not the entire page, that way the bottom scrolling Div will behave independently of the Top Div.

I want to avoid Iframes or Objects. I believe I need to use JQuery, AJAX, but I don't know how to make it work. I've been searching for hours to find the solution for this and I had no luck.

Could you help me please?

Thanks!

1

1 javoblar

Sizga kerak bo'lgan narsalar qatori "Carousel" jQuery plagini (Google juda ko'p)

Mana bir

http://jqueryfordesigners.com/demo/infinite-carousel.html

Bu erda yana bir narsa

http://www.tripwiremagazine.com/2011/06/jquery-carousel.html

0
qo'shib qo'ydi
Tashakkur GX, mijoz buyurtmachi pastki divda aylanadigan har qanday maxsus effektdan qochishni xohlaydi, u juda qulay bo'lishi kerak: havolani bir marta bosish va kino detallari maxsus effektlarsiz ko'rsatiladi.
qo'shib qo'ydi muallif Cecilia, manba