I have a website that uses a PHP foreach loop to gather products from a database. Each of those products displays the product picture and then has a jQuery plugin that allows the user to swipe or click and drag the element to the left to display more information about the product. I have included a helper image to notify the users that they can slide/swipe over the product image. After the use has swiped with a touchscreen or clicked and dragged with their mouse I want all the helper images to display none. I don't know much javascript yet, but I was thinking that this would need to be accomplished with onmousedown?
foreach($result as $row)
{
$ProductID = $row['ProductID'];
$Brand = $row['Brand'];
$Name = $row['Name'];
$Image = $row['Image'];
$Price = $row['Price'];
$ArticleID = $row['ArticleID'];
$VideoID = $row['VideoID'];
echo "<li class='mix $Brand'>";
echo "<div class='touchslider'>";
echo "<div class='touchslider-viewport'>";
echo "<div class='touchslider-div'>";
echo "<div class='touchslider-item'>";
echo "<h1>" . $Brand . " " . $Name . "</h1>";
echo "<img class='image-swipe' src='img/swipe.png' alt='Swipe to the Left Indicator'/>";
echo "<img id='brewer-imgs' height='330' src='img/products/" . $Image . "' alt='" . $Brand . " " . $Name . " Image'/></a>";
echo "</div>";
echo "<div class='touchslider-item' id='inside-slide'>";
echo "<p><em>" . $Brand . " " . $Name . "</em></p></br>";
echo "<p>Lowest Price $" . $Price . "</p></br>";
}
the class "swipe-image" is the helper image