<script type="text/javascript">// <![CDATA[
var imgs1 = new Array("http://www.cliostar.com/skin/frontend/base/theme126/images/banners/Cliostar1.png","http://www.cliostar.com/skin/frontend/base/theme126/images/banners/Cliostar2.png");
var lnks1 = new Array("http://www.cliostar.com/index.php/why-cliostar.html","http://www.cliostar.com/index.php/t-pyramid-concept.html");
var alt1 = new Array("Alt Text for Image 1","Alt Text for Image 2");
var currentAd1 = 0;
var imgCt1 = 2;
function cycle1() {
if (currentAd1 == imgCt1) {
currentAd1 = 0;
}
var banner1 = document.getElementById('adBanner1');
var link1 = document.getElementById('adLink1');
banner1.src=imgs1[currentAd1]
banner1.alt=alt1[currentAd1]
document.getElementById('adLink1').href=lnks1[currentAd1]
currentAd1++;
}
window.setInterval("cycle1()",4000);
// ]]></script>
<p><a id="adLink1" target="_top"> <img id="adBanner1" src="http://www.cliostar.com/skin/frontend/base/theme126/images/banners/Cliostar1.png" border="0" alt="" width="600" height="400" /></a></p>
var imgs1 = new Array("http://www.cliostar.com/skin/frontend/base/theme126/images/banners/Cliostar1.png","http://www.cliostar.com/skin/frontend/base/theme126/images/banners/Cliostar2.png");
var lnks1 = new Array("http://www.cliostar.com/index.php/why-cliostar.html","http://www.cliostar.com/index.php/t-pyramid-concept.html");
var alt1 = new Array("Alt Text for Image 1","Alt Text for Image 2");
var currentAd1 = 0;
var imgCt1 = 2;
function cycle1() {
if (currentAd1 == imgCt1) {
currentAd1 = 0;
}
var banner1 = document.getElementById('adBanner1');
var link1 = document.getElementById('adLink1');
banner1.src=imgs1[currentAd1]
banner1.alt=alt1[currentAd1]
document.getElementById('adLink1').href=lnks1[currentAd1]
currentAd1++;
}
window.setInterval("cycle1()",4000);
// ]]></script>
<p><a id="adLink1" target="_top"> <img id="adBanner1" src="http://www.cliostar.com/skin/frontend/base/theme126/images/banners/Cliostar1.png" border="0" alt="" width="600" height="400" /></a></p>
No comments:
Post a Comment