Código PHP:
<style>
/* Script */
a:link {
text-decoration: none;
}
a:visited {
text-decoration: none;
}
a:hover {
text-decoration: none;
}
a:active {
text-decoration: none;
}
.style9 {
font-family: Verdana;
font-size: 10px;
}
</style>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>featured</title>
<script type="text/javascript">
var preloaded = new Array();
function preloadImages() {
for (var i = 0; i < arguments.length; i++){
preloaded[i] = document.createElement('img');
preloaded[i].setAttribute('src',arguments[i]);
};
};
preloadImages(
'hferadio.gif',
'worldtour.png',
'newforum.gif',
'worldtour.png',
'hferadio.gif',
'worldtour.png'
);
var links = new Array(
'home.php',
'',
'home.php',
'',
'home.php',
''
);
var text = new Array(
'<center>Vote us in the HFA!</center>',
'<center>Vote us in the HFA!</center>',
'<center>Vote us in the HFA!</center>',
'<center>Vote us in the HFA!</center>',
'<center>Vote us in the HFA!</center>',
'<center>Check out our perm shows?!</center>'
);
var curOffset = 1;
window.onload=function() {
document.getElementById('randLink').href = links[0];
document.getElementById('randImage').src = preloaded[0].src;
document.getElementById('randText').innerHTML = text[0];
setInterval(
function() {
document.getElementById('randLink').href = links[curOffset];
document.getElementById('randImage').src = preloaded[curOffset].src;
document.getElementById('randText').innerHTML = text[curOffset];
curOffset = (curOffset >= preloaded.length-1) ? 0 : curOffset + 1;
}, 10000);
};
</script></head>
<body>
<span class="style9"><a id="randLink" href="www.google.es" target="main"><img src="councilloungee.png" name="randImage" width="459" height="108" border="0" id="randImage"></a></span>
<div align="left" class="style9" id="ts_text" style="padding-top: 4px;">
<div id="randText">
<div align="center">DJ Apps are open, why not apply?</div>
</div>
</div>
</body>