Ciao a tutti,

ho una pagina PHP dove ho uno slider, il quale ha un'immagine grande (bigimg) nella parte superiore che si attiva cliccando su una delle quattro thumbnail sulla parte inferiore.

Vorrei aggiungere due freccette, una a sinistra l'altra a destra della lista di thumbnail, cliccando le quali la lista "scorre" semplicememte di una posizione a destra o a sinistra.

Il codice è questo qui. Come integro questa funzione? Posso usare un semplice codice javascript?

codice:
<ul style="border-top:#dadada 1px solid;">	
<?php	
$arrayOfPrevBanners = get_theme_option("banners"); 

if (empty($arrayOfPrevBanners)) 
{
	$arrayOfPrevBanners = array();
}
$bcount = 1;
if (count($arrayOfPrevBanners)>0) 
{
foreach ($arrayOfPrevBanners as $key => $value) 
{
if ($bcount<=4) 
{
if($bcount == 1)
{
echo "<li style='margin-left: 40px; margin-top: 10px;'>";
}
else echo "<li style=' margin-top: 10px;'>";
$firstCat = get_the_category( $key );
if (has_post_thumbnail( $key ) ) 
{
$image = wp_get_attachment_image_src( get_post_thumbnail_id( $key ), 'single-post-thumbnail' );
echo "[img].$image[0].[/img]</a>";
} 
else 
{
echo "[img]".IMGURL."/toppic1_thmb.jpg[/img]";
}

$taxonomies = get_taxonomies();
$term_list = get_the_terms( $key, $taxonomies );
// echo $term_list[0]->name;
									
?>




<?php
$bcount++;
}
}
}
?>[/list]