Pagina precedente | 1 | Pagina successiva

Musica di sottofondo/2

Ultimo Aggiornamento: 05/01/2008 17:36
Autore
Stampa | Notifica email    
05/01/2008 17:36
 
Quota
OFFLINE
Post: 361
Registrato il: 19/09/2004
La musica non viene eseguita
Ok, sperando di non aver inoltrato un post un po' troppo lungo, questo qui sotto è lo script integrale del mio html di inizio pagina.
Non sarà perfetto ma fa quello che desidero.
Il problema è che non volevo che partisse un midi a caso ma un brano specifico (non necessariamente midi) con una micro finestrella per esempio con tasto play e stop.
Nella parte iniziale avevo provato a inserire
<EMBED SRC="http://sito essterno.brano.mid" AUTOSTART=true LOOP=true VOLUME="80" WIDTH="100" HEIGHT="100">
al posto del codice "midi a caso" ma non funziona.



<script language='javascript'>

var midinames=[ 'http://im0.freeforumzone.it/up/14/51/469089528.mid', 'http://im0.freeforumzone.it/up/14/53/268868764.mid', 'http://im0.freeforumzone.it/up/14/56/829490480.mid' ,'http://im0.freeforumzone.it/up/14/59/687906479.mid', 'http://im0.freeforumzone.it/up/14/65/367552405.mid', 'http://im0.freeforumzone.it/up/14/66/267441042.mid', 'http://im0.freeforumzone.it/up/14/68/404737544.mid', 'http://im0.freeforumzone.it/up/14/71/514861560.mid','http://img.freeforumzone.it/upload/506240_silent-4.mid'];

var srcurl=midinames[(Math.floor(Math.random()*midinames.length))];

if(document.layers)document.write('<layer top="-20" left="0"><embed src="'+srcurl+'" autostart="true" loop="true" width="10" height="10"></embed></layer>');
else if(document.all)document.write('<bgsound src="'+srcurl+'" loop="-1">');
</script>

<html>
<body bgcolor='#000000'>
<script language="JavaScript1.2">

var snowsrc="http://im0.freeforumzone.it/up/14/7/234521148.gif"

var no = 50;

var ns4up = (document.layers) ? 1 : 0;
var ie4up = (document.all) ? 1 : 0;
var ns6up = (document.getElementById&&!document.all) ? 1 : 0;

var dx, xp, yp;
var am, stx, sty;
var i, doc_width = 800, doc_height = 600;

if (ns4up||ns6up) {
doc_width = self.innerWidth;
doc_height = self.innerHeight;
} else if (ie4up) {
doc_width = document.body.clientWidth;
doc_height = document.body.clientHeight;
}

dx = new Array();
xp = new Array();
yp = new Array();
am = new Array();
stx = new Array();
sty = new Array();

for (i = 0; i < no; ++ i) {
dx = 0;
xp = Math.random()*(doc_width-50);
yp = Math.random()*doc_height;
am = Math.random()*20;
stx = 0.02 + Math.random()/10;
sty = 0.7 + Math.random();
if (ns4up) {
if (i == 0) {
document.write("<layer name=\"dot"+ i +"\" left=\"15\" top=\"15\" visibility=\"show\"><img src='"+snowsrc+"' border=\"0\"></a></layer>");
} else {
document.write("<layer name=\"dot"+ i +"\" left=\"15\" top=\"15\" visibility=\"show\"><img src='"+snowsrc+"' border=\"0\"></layer>");
}
} else if (ie4up||ns6up) {
if (i == 0) {
document.write("<div id=\"dot"+ i +"\" style=\"POSITION: absolute; Z-INDEX: "+ i +"; VISIBILITY: visible; TOP: 15px; LEFT: 15px;\"><img src='"+snowsrc+"' border=\"0\"></a></div>");
} else {
document.write("<div id=\"dot"+ i +"\" style=\"POSITION: absolute; Z-INDEX: "+ i +"; VISIBILITY: visible; TOP: 15px; LEFT: 15px;\"><img src='"+snowsrc+"' border=\"0\"></div>");
}
}
}

function snowNS() {
for (i = 0; i < no; ++ i) {
yp += sty;
if (yp > doc_height-50) {
xp = Math.random()*(doc_width-am-30);
yp = 0;
stx = 0.02 + Math.random()/10;
sty = 0.7 + Math.random();
doc_width = self.innerWidth;
doc_height = self.innerHeight;
}
dx += stx;
document.layers["dot"+i].top = yp;
document.layers["dot"+i].left = xp + am*Math.sin(dx);
}
setTimeout("snowNS()", 10);
}

function snowIE_NS6() {
for (i = 0; i < no; ++ i) {
yp += sty;
if (yp > doc_height-50) {
xp = Math.random()*(doc_width-am-30);
yp = 0;
stx = 0.02 + Math.random()/10;
sty = 0.7 + Math.random();
doc_width = ns6up?window.innerWidth : document.body.clientWidth;
doc_height = ns6up?window.innerHeight : document.body.clientHeight;
}
dx += stx;
if (ie4up){
document.all["dot"+i].style.pixelTop = yp;
document.all["dot"+i].style.pixelLeft = xp + am*Math.sin(dx);
}
else if (ns6up){
document.getElementById("dot"+i).style.top=yp;
document.getElementById("dot"+i).style.left=xp + am*Math.sin(dx);
}
}
setTimeout("snowIE_NS6()", 10);
}

if (ns4up) {
snowNS();
} else if (ie4up||ns6up) {
snowIE_NS6();
}

</script>

</body>
</html>

<STYLE>
<!--
blink {color: red}
-->
</STYLE>
<SCRIPT>
<!--
function doBlink() {
var blink = document.all.tags("BLINK")
for (var i=0; i<blink.length; i++)
blink.style.visibility = blink.style.visibility == "" ? "hidden" : ""
}

function startBlink() {
if (document.all)
setInterval("doBlink()",1000)
}
window.onload = startBlink;
// -->
</SCRIPT>

&nbsp;
<div align="center">
<embed src="http://www.clocklink.com/clocks/0011-black.swf?TimeZone=CET&" width="200" height="200" wmode="dkblue"; type="application/x-shockwave-flash">

<font color="#0000ff"><font face="Garamond-Normal" size="5" color="#0000ff"><strong><span></span><strong><!-- 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000OOOOOOOOOOOOOOO! --><img src="http://img1.freeforumzone.it/upload1/506240_logobenvenuti.jpg" alt="" width="799" height="197" /> <!-- 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000OOOOOOOOOOOOO! -->&nbsp;
<font face="Cooper" size="9" color="#5555ff"><marquee behavior="scroll" direction="left" scrollamount="15">********Ciao a tutti!!!!!!!!!!!!!!!!!! e benvenuti su...RipetizioniMultimediali.it*******Un caloroso bentornato a Giampiero di Viale Umbria e un caloroso benvenuto ai nuovi: Giulia di Via Zuretti, Luca di Loreto, Davide di Colturano, Kaled e Omar di San Maurizio al Lambro, Hesciam di Cinisello Balsamo, Maximo della Bovisa e....Victor di Turro!!!!!!!!!A loro e a tutti i frequentatori del forum i più sinceri auguri di....Buon ANNO!!!!!!!!!!!!!!!!!!!********************</marquee></em></strong></font>
<table border="0" align="left">
<tbody>
</tbody>
</table>
<table border="0" cellspacing="0" cellpadding="0" width="300">
<tbody>
<tr>
<td width="300" height="25" align="center" bgcolor="#ff5500"><font color="#ffff55">GEMELLAGGI</font></td>
</tr>
<tr>
<td width="300" height="50" bgcolor="#ffaa00"><a href="../viewforum.aspx?f=32985" target="_blank">L&#39;angolo dell&#39;amicizia</a> | <a target="_blank"></a></td>
</tr>
</tbody>
</table>

<body ><font face="Garamond-Normal" size="4" color="#ff0000"><center><blink>*********Si cercano moderatori/Gradite le proposte di gemellaggio**********</blink></center>
<body><script>setTimeout( "rosso()",500);
</script>

\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\

Questo è l'URL de forum:

[URL=</script>http://freeforumzone.leonardo.it/forum.aspx?c=46943&f=46943] Ripetizioni multimediali


Grazie per la pazienza e per le indicazioni [SM=g1399185] .
Amministra Discussione: | Chiudi | Sposta | Cancella | Modifica | Notifica email Pagina precedente | 1 | Pagina successiva
Nuova Discussione
 | 
Rispondi

Feed | Forum | Album | Utenti | Cerca | Login | Registrati | Amministra
Crea forum gratis, gestisci la tua comunità! Iscriviti a FreeForumZone
FreeForumZone [v.6.1] - Leggendo la pagina si accettano regolamento e privacy
Tutti gli orari sono GMT+01:00. Adesso sono le 22:38. Versione: Stampabile | Mobile
Copyright © 2000-2024 FFZ srl - www.freeforumzone.com