Pogledajte određenu poruku
Staro 24. 07. 2010.   #1
akki
član
Certified
 
Avatar akki
 
Datum učlanjenja: 21.12.2009
Poruke: 87
Hvala: 19
0 "Hvala" u 0 poruka
akki is on a distinguished road
Red face java slide za testimonials

Poz,

Nasao sam skriptu koja mi odgovara za rotiranje `testimonials` na mojoj stranici.

Interesuje me dali je ikako moguce napraviti da skripta vuce sve testimonials iz nekog drugog, recimo txt ili html fajla. Ovo pitam da bi olaksao editovanje(dodavanje) novih , i cisto da se ne dira index php fajl

Ovo je kod koji bi koristio:

PHP kôd:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<
html xmlns="http://www.w3.org/1999/xhtml">

<
head>
    <
title>Rotating Quotes</title>
    <
meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <
style type="text/css">
    
#quotes
    
{
        
height:1000px;
        
width180px;
        
overflow:hidden;
        
text-alignjustify;
    }
    
#quotes blockquote
    
{
        
margin:0;
    }
    </
style>
    
    <
script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.2.6/jquery.min.js" charset="utf-8"></script>
    <script type="text/javascript" src="jquery.cycle.min.js"></script>
    <script type="text/javascript">
    $(function(){
        $('#quotes').cycle({ 
            fx: 'fade',
            timeout: 7000,
            random: true
        });
    });
    </script>
</head>

    <div id="quotes">
        <blockquote>
            <p>I used computer fields services first time and would recommend them highly.They use quality products for lower prices and they are motivated to service your computer to last, and also to save you money.
Service was surprisingly  fast also i didn't had to wait for weeks like others did.I use my computer for work every day and i can't
afford to stay without it for weeks or days.They are a down to earth people who's going to listen about your needs and really hear you.Finally i got some quality service.</p>
            <cite>- Janos, <br /><a href="http://mortgagebrokers.com">www.mortgagebrokers.com</a></cite>
        </blockquote>

        <blockquote>
            <p>I service all my computers with Computer Fields for several years now. I am very happy with the service and the pricing they offer. I recommend them all the time.</p>
            <cite>-Steven B.<br />Kitchener</cite>
        </blockquote>

        <blockquote>
            <p>Don't look further. Computer Fields is the service you want. I have used big companies to service my laptops in past and it can not compare to service I received at Computer Fields. They are all they say they are - Fast and Fearless ;D </p>
            <cite>-Cheryl <br />Cambridge, ON</cite>
        </blockquote>
    </div>

</html> 
Ovde se nalazi js fajl u slicaju da zatreba.
http://jquery.malsup.com/cycle/download.html

Hvala Unaprjed

Poslednja izmena od akki : 24. 07. 2010. u 12:37.
akki je offline   Odgovorite uz citat