Hi,

I have a jsp, the relevant piece as follows:

<%@ page language="java" contentType="text/html;charset=utf-8"%>
<%@ page session="false" %>
<%@ taglib uri="/WEB-INF/tld/portlet.tld" prefix="portletAPI" %>
<portletAPI:init /><%
String welcomeImage=portletResponse.encodeURL("/images/welcome_image.jpg");
%>
<div id="welcome_img_div" style="margin-left:5px;width:715px;height:190px;background-image:url('<%=welcomeImage%>');background-repeat:no-repeat;">

I want to rotate around a series of images as the 'background-image'
..but it is not clear to me how to adapt the jsp. Please can anyone help?

many thanks!

Matt

use JavaScript; create an array of the image links and then write a javascript method that uses either setTimeout or setInterval replace the images when the interval time is reached

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.