ps2invader

Nuovo utente
Autore del topic
23 Maggio 2007
32
0
Miglior risposta
0
QUESTO VECCHIO SCRIPT PER LA MUSICA LO TENGO PER CHI VOLESSE MIGLIORARLO MA SE VOLETE ROBA SERIA SCENDETE GIU XD

<!--SCRIPT JAVA--><script type="text/javascript" src="/i.js"></script>
<p>
<body>
<center>
<script language="javascript">
function getl() {
return document.getElementById( 'lied' );
}
function lplay( spieler ) {
spieler.play();
}function lstop( spieler ) {
spieler.stop()
spieler.selectionStart=0;
}
function lpause( spieler ) {
spieler.pause();
}
</script>
<embed id="lied" name="lied" src="LINK DELLA CANZONE" width="200" height="20" autostart="false" hidden></embed>

<table width="200" height="100" cellpadding="0" cellspacing="0" background="http://newhotelv13.50webs.com/bg.PNG">
<tr><td style=" padding: 50px 20px 10px 20px;" align="center">
<table align="center" width="140"><tr>
<td width="33%" align="center"><img src="http://habbotools.de/habboplayer/play.PNG" alt="Play" onClick="lplay( getl() );"></td>
<td width="33%" align="center"><img src="http://habbotools.de/habboplayer/pause.PNG" align="Pause" onClick="lpause( getl() );"></td>
<td width="33%" align="center"><img src="http://habbotools.de/habboplayer/stop.PNG" align="Stop" onClick="lstop( getl() );"></td>
</tr></table>
</td></tr>
</table>
</center>


</body>

potete modificare le immagini dei bottoni modificando queste tre righe:
<td width="33%" align="center"><img src="link immagine play"
alt="Play" onClick="lplay( getl() );"></td>
<td width="33%" align="center"><img src="link immagine pausa"
align="Pause" onClick="lpause( getl() );"></td>
<td width="33%" align="center"><img src="link immagine stop"
align="Stop" onClick="lstop( getl() );"></td>

E BENE SIGNORI FINALMENTE IL MUSICPLAYER COMPLETO IN HTML-JAVASCRIPT LEGGERO E POTENTE XD:

Per Usare Il music Player dovete seguire questi semplici passi:

<!-- Fase 1...Copia quanto segue ed inseriscilo tra i tag <head> e </head> -->
<script type="text/javascript" language="javascript">
/*-- Original: Nicholas Loar Edit by Ps2invader
Web Site:
Perfavore, Entra oppure Registrati per vedere i Link!
*/
<!-- Begin
songNum = new Array();
songNum[0] = "#";
songNum[1] = "midi1.mid"; /*.....qui i linkdei file da ascoltare supporata anche MP3 */
songNum[2] = "midi2.mid";
songNum[3] = "midi3.mid";
songNum[4] = "midi4.mid"; /*....puoi metterne quanti ne vuoi.... basta seguire l'esempio */

var music = null;
var track = 0;
var ver = navigator.appName;
function audioCheck(plugName) {
for (var i = 0; i < navigator.plugins.length; i++) {
if (navigator.plugins.name.toLowerCase() == plugName.toLowerCase()) {
for (var j = 0; j < navigator.plugins.length; j++) {
if (navigator.plugins[j].enabledPlugin) {
return true;
}
}
return false;
}
}
return false;
}
function chooseSong(s) { // ie
track = s.options[s.selectedIndex].value;
if (ver == "Microsoft Internet Explorer") {
document.all.music.src = songNum[track];
} else {
songPlay('play');
}
}
function songPlay(cmd) { // netscape
if (audioCheck("LiveAudio")) {
if (cmd == 'play') {
document.musicSource.play(false, songNum[track]);
}
} else {
alert("You Do Not Have The Correct Plugin");
}
}
// End -->
</script>
<!-- Fine fase 1 -->


<!-- Fase 2 .... Copia quanto segue ed inseriscilo tra i tag <body> e </body>-->
<form action=" " name=choose>
<select size=1 name=track onChange="chooseSong(this);">
<option value="0">Seleziona il Midi da ascoltare.</option> <!--...Qui il titolo che vedrai nel menu a tendina...-->
<option value="1">Midi 1</option>
<option value="2">Midi 2</option>
<option value="3">Midi 3</option>
<option value="4">Midi 4</option>
</select>
<input type=button onMouseDown="chooseSong(document.choose.track)" value=" OK! ">
</form>

<script type="text/javascript" language="JavaScript">
<!-- Begin
var ver = navigator.appName;
if (ver == "Microsoft Internet Explorer") {
document.write('<bgsound src="#" ID=music loop=1 AUTOSTART=false>');
} else {
document.write('<embed type="audio/midi" src="midi1.mid" AUTOSTART=false hidden=true VOLUME="90" name="musicSource" MASTERSOUND></EMBED>');
}
// End -->
</script>
<!-- Fine fase 2 -->


Apro subito una parentesi il codice era stato concepito per i file midi poichè leggeri da ascoltare io modificandolo ho premesso la compatibilita con il file audio mp3 infatti se mettete un file mp3 da ascoltare il codice ci metterà un po a caricarlo dato il fatto che un midi pesa massimo 300 kb mentre un mp3 varia da 1 a x megabyte
DI NUOVO FELICE DI ESSERE UTILE. XD

COME METTERE LA BARRA STILE HABBO CON IL CONTATORE UTENTI ONLINE UN PO PARTICOLARE XD:

per mettere il contatore sul vostro loader online dovrete registrarvi a un servizio chiamato shinysat :
Perfavore, Entra oppure Registrati per vedere i Link!

dopodiche seguite le istruzioni per creare un contatore che veda gli utenti online.
SE AVETE DIFFICOLTA CON L'OPERAZIONE DI CREZIONE DEL CONTATORE DITEMELO COSI POSTO LE ISTRUZIONI ANCHE SE SUL SITO SONO MOLTO CHIARE XD.
dopodiche dovete generare il codice html c'è l'opzione proprio nel pannello di controllo utente

Ora ce la parte pi๠divertente la barra stile habbo.it ecco lo script:
mettetelo in cima al loader perchè altrimenti se lo mettete in mezzo o sotto il loader potrebbe apparire o in mezzo all'hotel oppure sotto XD

<!--Inizio Script--!>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html;charset=utf-8" />
<title>Phoenix Hotel</title>

<link href="http://images.habbohotel.com.au/web/web-3.0.1-b25/styles/style.css" type="text/css" rel="stylesheet"/>

<script language="JavaScript" type="text/javascript">
var habboClient = true;
var habboReqPath = "";
var habboStaticFilePath = "http://images.habbohotel.com.au/web/web-3.0.1-b25";
document.habboLoggedIn = true;
</script>

<script language="JavaScript" type="text/javascript" src="http://images.habbohotel.com.au/web/web-3.0.1-b25/js/prototype.js"></script>

<script language="JavaScript" type="text/javascript" src="http://images.habbohotel.com.au/web/web-3.0.1-b25/js/effects.js"></script>

<script src="http://images.habbohotel.com.au/web/web-3.0.1-b25/js/habbo.js" language="JavaScript" type="text/javascript"></script>
<script type="text/javascript" language="javascript">
window.onload = resizeWin;
window.onerror = function() { return true; };
window.onunload = clearOpener;
ensureOpenerIsLoggedIn();
addClientUnloadHook();
</script>
<script src="/client_js" language="JavaScript" type="text/javascript"></script>

<!--[if IE]>
<link href="http://images.habbohotel.com.au/web/web-3.0.1-b25/styles/ie-all.css" type="text/css" rel="stylesheet" />
<![endif]-->
<!--[if lt IE 7]>
<link href="http://images.habbohotel.com.au/web/web-3.0.1-b25/styles/ie6.css" type="text/css" rel="stylesheet" />
<![endif]-->

<link href="/styles/style_custom_au.css" type="text/css" rel="stylesheet"/>

</head>

<body id="client">

<div id="client-topbar" style="display:none">
<div class="logo"><img src="http://img62.imageshack.us/img62/2517/font1180540846ud1.gif" alt="" align="middle"/></div>
<div class="habbocount"><div id="habboCountUpdateTarget">
"DOVETE INSERIRE QUI IL LINK DEL CODICE SHINYSAT [DOPO AVERLO MESSO LEVATE LE VIRGOLETTE]"

</div>
<script language="JavaScript" type="text/javascript">
setTimeout(function() {
HabboCounter.init(600);
}, 20000);
</script>
</div>
<div class="logout"><a href="/account/logout?origin=popup">Logout</a></div>

</div>

<div>
<script type="text/javascript" language="javascript">
printHabbo();
</script>
<!--Fine Script--!>

A GRANDE RICHIESTA IL VIDEO TUTORIAL PER METTERE IL CONTATORE NEL LOADER:
Perfavore, Entra oppure Registrati per vedere i Link!

FILE GRANDE 35 MB VIDEO TUTORIAL COMPLETO
all'incirca il risultato dovrebbe essere questo:
solo con barra e contatore:
Perfavore, Entra oppure Registrati per vedere i Link!

barra contatore e music player:
Perfavore, Entra oppure Registrati per vedere i Link!


IO SUGGERIREI DI METTERLA IN RILIEVO CONTRIBUIRà￾ AD AIUTARE GLI UTENTI AD AVERE UN LOADER PIàš BELLO E INFORMATO E COSI VIA LE DISCUSSIONI DI QUELLI CHE ROMPONO PERCHà‰ NON FUNGONO LE TRAX BENE ORA POTETE METTERE CANZONI ORIGINALI DI CANTANTI NELL'HOTEL COME NESSUNO IN HABBO VERO SENTIRà￾ MAI XD
UN AVVERTIMENTO NON PROVATE IN LOCALE CON INTERNTE EXPLORER 7 IL LOADER CON LA MUSICA SEMBRA CHE IE 7 SI BLOCCHI PERCHE NON RICONOSCE I CONTROLLI ACTIVE X PROVATELA SOLO ONLINE CIAO!!!:emoji_smiley::emoji_smiley:[8D][8D]
 
ragazzi volevo consigliare di mettere questa guida in rilievo visto che è molto completa posso cambiare il contatore se volete pero a mio parere andrebbe bene vista da tutti

W i Retro e Sciax2 Forum
vuoi sapere come mettere il contatore utenti online e il music player nel tuo loader vieni qui allora XD: http://www.sciax2.it/forum/topic.asp?TOPIC_ID=11424
 
quoto :emoji_smiley: è un abbellimento del loader:emoji_smiley:;)

1ab723c50c6b04869afbc7fbf80526a65.1.gif
bociaganzokj3.gif

71185813819ed5.png

userbar-sciax2forum.PNG
 
grazie

W i Retro e Sciax2 Forum
vuoi sapere come mettere il contatore utenti online e il music player nel tuo loader vieni qui allora XD: http://www.sciax2.it/forum/topic.asp?TOPIC_ID=11424
 
Guida non in regola!

In base al nuovo regolamento, deve esserci il nome del creatore della guida e/o la provenienza!