Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Rotating Testimonials?

Featured Replies

Hey guys,

 

So I've been reading up on how I can put this into my site, but can't seem to find a clear simple answer, only watermarked shareware software that generates the wrong kind of thing.

 

The page in question is pixelproofdesign.co.uk/emp/index.html - and what i'm looking to do is place some rotating fading testimonials on the left block of that page. Each testimonial needs to fade out and be replaced by the next. Is this something Javascript can help me with? It's driving me nuts!

Hey guys,

 

So I've been reading up on how I can put this into my site, but can't seem to find a clear simple answer, only watermarked shareware software that generates the wrong kind of thing.

 

The page in question is pixelproofdesign.co.uk/emp/index.html - and what i'm looking to do is place some rotating fading testimonials on the left block of that page. Each testimonial needs to fade out and be replaced by the next. Is this something Javascript can help me with? It's driving me nuts!

 

jQuery is your friend http://www.geeksucks.com/toolbox/23-jquery-fade-in-fade-out-effect.htm

Hey guys,

 

So I've been reading up on how I can put this into my site, but can't seem to find a clear simple answer, only watermarked shareware software that generates the wrong kind of thing.

 

The page in question is pixelproofdesign.co.uk/emp/index.html - and what i'm looking to do is place some rotating fading testimonials on the left block of that page. Each testimonial needs to fade out and be replaced by the next. Is this something Javascript can help me with? It's driving me nuts!

 

I think this is what your after: http://tutorialzine.com/2010/12/client-testimonials-xml-php-jquery/

 

I use it all the time!

  • Author

jQuery is your friend geeksucks.com/toolbox/23-jquery-fade-in-fade-out-effect.htm

 

Brilliant, number 4 should do the job looking at that, just need the text to fade in and out from testimonial onwards. Forgive my ignorance, but is jQuery just a library JSs that I can use to do various things? Some of the other things it can do look pretty impressive! I assume I implement it like any other JS?

  • Author

I think this is what your after: tutorialzine.com/2010/12/client-testimonials-xml-php-jquery/

 

I use it all the time!

 

Looks pretty sweet - just got to figure out how to implement it and style it up - any tips? It looks like I've got to add another CSS sheet in and put code into the index.html file I've got but I'm not sure where I'll be placing it - the setup doesn't assume your a newbie to this like I am :blush1:

Edited by ppdesign

...is jQuery just a library JSs that I can use to do various things? Some of the other things it can do look pretty impressive! I assume I implement it like any other JS?

 

You have it right. jQuery is just a system of raw javascript functions that have been put together to make commonplace tasks easier. Also, with the Sizzle engine to select DOM elements you are able to write a line or two of jQuery to accomplish tasks that required hundreds more when using raw Javascript.

 

Just include it like you would any other JS file and you should be on your way.

  • Author

or this accepts html slides ekallevig.com/jshowoff/

 

Thanks :) Doesn't quite look as slick as the Client Testimonials one - I think I'm going to have a tinker and see if I can get that to work! Check back here for my success/failure story....

  • Author

So, I've had a shot at implementing it and have tried to follow the steps as best possible but the only thing visible on the page is some jumbled code:

 

pixelproofdesign.co.uk/emp/index.html

 

Any ideas? I'm a bit confused over the use of PHP, or rather implementing it into the existing HTML page...sorry!

Are you not seeing images? On the right I see an image of a guy with his eyes shut at some kind of party? and then it fades into a blurred image of a party and then fireworks..

  • Author

Are you not seeing images? On the right I see an image of a guy with his eyes shut at some kind of party? and then it fades into a blurred image of a party and then fireworks..

 

That's a different rotating flash swf I'm working on, another side project :)

 

Just on the left, the code:

 

load($xslFile); $xsl->importStyleSheet($doc); $doc->load($xmlFile); echo $xsl->transformToXML($doc); ?>

try renaming the document to .php to start with.

  • Author

Awesome: pixelproofdesign.co.uk/emp/index.php

 

Got the text up and showing now. Is it just a case of styling the CSS so it looks like it does here?

 

tutorialzine.com/2010/12/client-testimonials-xml-php-jquery/

 

I'd like the font to be larger and centered, but I like the quote marks and box that they use on their one.

 

Thanks for your help!

Here is the CSS used for it, I got rid of the padding for you and made it so the text is centre aligned.

 

#testimonials{
width: 375px;
text-align: center;
background:url('../img/quotes.png') no-repeat 20px 20px rgba(178,178,169,0.2);
min-height:90px;

-moz-border-radius:12px;
-webkit-border-radius:12px;
border-radius:12px;
}

#testimonials li{ display:none;}
#testimonials li:first-child{ display:block;}

#testimonials ul{ list-style:none;}
#testimonials p.text{ font-size:24px;}

#testimonials p.author{
color: #878787;
   font-size: 16px;
   font-style: italic;
   text-align: right;
margin-top:10px;
}

#testimonials p.author a,
#testimonials p.author a:visited{
color:#6aa42a;
}

 

Here is the quotation mark but not sure if you are allowed to use it?

quotes.png

  • Author

Here is the CSS used for it, I got rid of the padding for you and made it so the text is centre aligned.

 

#testimonials{
width: 375px;
text-align: center;
background:url('../img/quotes.png') no-repeat 20px 20px rgba(178,178,169,0.2);
min-height:90px;

-moz-border-radius:12px;
-webkit-border-radius:12px;
border-radius:12px;
}

#testimonials li{ display:none;}
#testimonials li:first-child{ display:block;}

#testimonials ul{ list-style:none;}
#testimonials p.text{ font-size:24px;}

#testimonials p.author{
color: #878787;
   font-size: 16px;
   font-style: italic;
   text-align: right;
margin-top:10px;
}

#testimonials p.author a,
#testimonials p.author a:visited{
color:#6aa42a;
}

 

 

There's no mention of it not being allowed, but I'll get in touch just in case. I already have a stylesheet linked to that page, can I add another css sheet that will just style that testimonial section?

You can do but it's ok to put it in the other one too. It's probably better to keep them together so you don't have loads of different stylesheets but it's completely up to you what you want to do.

  • Author

You can do but it's ok to put it in the other one too. It's probably better to keep them together so you don't have loads of different stylesheets but it's completely up to you what you want to do.

 

Brilliant :) I've put it in the existing CSS sheet and it seems to be styling it nicely now. It does seem to be sitting to the right of the box however - is this something I can change? I guess it's just tweaking the CSS?

Take out

text-align: center;

from the css

 

And add this in place of the text-align

padding: 45px 45px 35px 90px;

 

And see what happens I added it as you said you wanted the text centred but it seems to just be messing it up. If it's not that, I'll take a closer look.

Edited by j05hr

  • Author

Take out

text-align: center;

from the css

 

And add this in place of the text-align

padding: 45px 45px 35px 90px;

 

And see what happens I added it as you said you wanted the text centred but it seems to just be messing it up. If it's not that, I'll take a closer look.

 

It's pushed it even further over now: pixelproofdesign.co.uk/emp/index.php

 

Looking at that, it looks like cell in the HTML where I've placed the code goes across the page, whereas it's actually split into two (one side the testimonials, one side the flash gallery) I've attached the html and css files so you can have a look if possible :) Please don't judge me based on using PSD2CSS, I'm a graphic designer by trade!

psd2css.css

index.php

  • Author

Try making the width smaller of testimonials.

 

That seems to have done the trick, although I think I've figured out why the content is pushed to the right. The XML file linking to it lists the testimonials as bullet points, so they're aligned off center - how do I fix this? I guess essentially get rid of the bullet points but keep the testimonials revolving as they are...

The reason the content is pushed to the right is because of the padding that we added back in.

 

 padding: 45px 45px 35px 90px; 

 

It goes clockwise so up right bottom left

 

So

 

Top: 45px

Right: 45px

Bottom: 35px

Left: 90px

 

You will obviously not want it to have such a big space from the left so you will want to make that 90 much lower and just play around with all the numbers till you are happy with how it looks.

 

Also don't worry about people judging you on here, it's a forum to help each other out and if you aren't asking you aren't improving. Maybe one day I might need some help from you to do with graphics, it's what forums are for.

  • Author

The reason the content is pushed to the right is because of the padding that we added back in.

 

 padding: 45px 45px 35px 90px; 

 

It goes clockwise so up right bottom left

 

So

 

Top: 45px

Right: 45px

Bottom: 35px

Left: 90px

 

You will obviously not want it to have such a big space from the left so you will want to make that 90 much lower and just play around with all the numbers till you are happy with how it looks.

 

Also don't worry about people judging you on here, it's a forum to help each other out and if you aren't asking you aren't improving. Maybe one day I might need some help from you to do with graphics, it's what forums are for.

 

Brilliant - think I've nailed it now. I've got it centered along the bottom so I can put a rotating gallery above it. Thanks so much for the help, feel free to use me for any graphic bits you need help with! Help like this encourages me to keep learning and improve :)

Brilliant - think I've nailed it now. I've got it centered along the bottom so I can put a rotating gallery above it. Thanks so much for the help, feel free to use me for any graphic bits you need help with! Help like this encourages me to keep learning and improve :)

 

Looking good now. Haha don't say that or I will probably be bugging you with loads of graphical questions. What program do you use to make graphics? I'm just trying to get into Illustrator thinking it would be exactly like Photoshop but how wrong I was.

  • Author

Looking good now. Haha don't say that or I will probably be bugging you with loads of graphical questions. What program do you use to make graphics? I'm just trying to get into Illustrator thinking it would be exactly like Photoshop but how wrong I was.

 

It depends on what I'm doing. Professionally I do a lot of packaging, so the elements are composed in Photoshop then imported into InDesign. Any illustrations, vectors or flat files I tend to do in Illustrator then import them in. On a personal basis my expertise is with Photoshop, but I like to think I know enough of the others to get by :)

 

Illustrator is a strange creature, but so so worth getting to know, it's incredible what you can actually achieve in it.

Ah yeah Photoshop is where my expertise lies but as I said I thought I would open Illustrator and it would be exactly the same but nope. It is something I do want to get into. As you say the results you can get out of it if are amazing if you are skilled. Should probably not carry on having private conversations in topics so if you want to talk more feel free to pm me.

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.