Adaptação em codigo randomico
Olá amigos do forum,
Então estou com uma dificuldade, não estou conseguindo editar esse codigo randomico. Atualmente ele esta chamando GIFs, gostaria de chamar SWF, tem como??
O codigo é esse...
Se der para ajudar serei muito grato...
At.
Mrs Kuhlmann
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<meta name="GENERATOR" content="Microsoft FrontPage 4.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<title>JavaSite - JavaScripts</title>
</head>
<body><script LANGUAGE="JavaScript">
today=new Date();
jran=today.getTime();
var number = 7;
var random_number="";
var image="";
var text_color="";
ia=9301;
ic=49297;
im=233280;
jran = (jran*ia+ic) % im;
random_number = Math.ceil( (jran/(im*1.0)) *number);
// Loads the appropriate image and text color based on random number.
if (random_number==1) {
text_color="000000";
image="1.gif";
}
if (random_number==2) {
text_color="000000";
image="2.gif";
}
if (random_number==3) {
text_color="000000";
image="3.gif";
}
if (random_number==4) {
text_color="000000";
image="4.gif";
}
if (random_number==5) {
text_color="000000";
image="5.gif";
}
if (random_number==6) {
text_color="000000";
image="6.gif";
}
if (random_number==7) {
text_color="000000";
image="7.gif";
}
// End -->
</SCRIPT>
<!-- Segunda parte do Script -->
<script LANGUAGE="JavaScript">
<!-- Begin
document.open();
document.write("<BODY BACKGROUND='"+image+"' TEXT='"+text_color+"'>");
document.write("<CENTER></CENTER>");
// End -->
</SCRIPT>
<!-- Terceira parte do Script -->
<p><center>
<font face="arial, helvetica" size="-2">Webmasters Online<br>
<a href="[http://www.wmonline.com.br">www.wmonline.com.br](http://www.wmonline.com.br)
</body>
</html>Discussão (3)
Carregando comentários...