Hi,
i am trying to display some images randomly.In my page totally totally 3 images are displaying in browser side like image1 ,image2,image3.Every image i want to change randomly into some other image .this is working.But i want to display change image first in image1 after getting changed i want to change image2 after that image3 but this is not working properly can anyone tell me how to do this
[code]
<!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN” “http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd”>
<html xmlns=”http://www.w3.org/1999/xhtml”>
<head>
<meta http-equiv=”Content-Type” content=”text/html; charset=iso-8859-1″ />
<title>Untitled Document</title>
<style type=”text/css”>
.left-nav2 a{ color:#D68752;text-decoration:underline;}
.left-nav2 a:hover { color:#D68752;text-decoration:none;}
</style>
<link href=”images/gc_style.css” rel=”stylesheet” type=”text/css” />
<script src=”includes/dw_event.js” type=”text/javascript”></script>
<script src=”includes/dw_rotator.js” type=”text/javascript”></script>
<script src=”includes/dw_rotator_aux.js” type=”text/javascript”></script>
<script type=”text/javascript”>
var rotator1 = {
path: ‘images/’, // path to your images
id: ‘r2’, // id assigned in image tag
bTrans: true, // transition filter for IE Win
bTrans: true,
speed: 5300,
bMouse: true,
bRand: true,
images: [“1_cp.jpg”, “2_cp.jpg”,”3_cp.jpg”]
}
function initRotator() {
// pass name of variable containing rotator properties
dw_Rotator.setup(rotator1);
}
dw_Event.add( window, ‘load’, initRotator);
</script>
<script type=”text/javascript”>
var rotator2 = {
path: ‘images/’, // path to your images
id: ‘r1’, // id assigned in image tag
bTrans: true, // transition filter for IE Win
bTrans: true,
speed: 5000,
bMouse: true,
bRand: true,
images: [“1_aac.jpg”, “2_aac.jpg”,”3_acc.jpg”]
}
function initRotator1() {
// pass name of variable containing rotator properties
dw_Rotator.setup(rotator2);
}
dw_Event.add( window, ‘load’, initRotator1);
</script>
<script type=”text/javascript”>
var rotator3= {
path: ‘images/’, // path to your images
id: ‘r3’, // id assigned in image tag
bTrans: true, // transition filter for IE Win
bTrans: true,
speed: 5600,
bMouse: true,
bRand: true,
images: [“1_ims.jpg”, “2_ims.jpg”,”3_ims.jpg”]
}
function initRotator2() {
// pass name of variable containing rotator properties
dw_Rotator.setup(rotator3);
}
dw_Event.add( window, ‘load’, initRotator2);
</script>
</head>
<body>
<a href=”#”
onmouseover=”document.image.src=’images/1aac.jpg'” style=”opacity:5.4;filter:alpha(opacity=x)” ><img id=”r1″ src=”<?=$baseurl;?>/images/1_aac.jpg” name=”image”></a>
<a href=”#”onmouseover=”document.image1.src=’images/2cp.jpg'”><img id=”r2″ name=”image1″ src=”<?=$baseurl;?>/images/1_cp.jpg” style=”margin-left:30px;”></a>
<a href=”#” onmouseover=”document.image2.src=’images/3ims.jpg'”><img id=”r3″ name=”image2″ src=”<?=$baseurl;?>/images/1_ims.jpg” style=”margin-left:30px;”></a>
</body></html>
Thanks in advance
Punithapary