scritta che segue il cursore

« Older   Newer »
  Share  
darkfinal97
CAT_IMG Posted on 23/9/2010, 16:29




CODICE
<!-- Generato con il FFMag FastScripts - Script by ~ DarkStyle -->
<style>.spanstyle {position: absolute; visibility: visible; top: -50px; left: 0; font-family: "segoe ui", Verdana, Arial; z-index: 9999; font-weight: bold; text-decoration: blink}</style>

<script type="text/javascript">
/*
Cursor Trailer Text- By Peter Gehrig (http://www.24fun.ch/)
Thanks to Dynamic Drive: http://www.dynamicdrive.com/dynamicindex13/trailortext.htm
***************************************************************************************************
Edited by DarkStyle / Modificato da DarkStyle
Made compatible with Forumfree by DarkStyle / Reso compatibile con Forumfree da DarkStyle
Made compatible with gecko browsers (Mozilla, Opera, ...) by DarkStyle / Reso compatibile con i browsers gecko (Mozilla, Opera, ...) da DarkStyle
(C) 2009 http://ffmagazine.forumfree.net
*/
var x,y; var flag = 0;

var offPos = 10; //Distanza dal cursore
var trailerSpeed = 'medium'; //'slow', 'medium', 'fast' o valore numerico - Velocità del fade
// Il tuo messaggio in array (Forum free : var trailerMessage = new Array("F", "o", "r", "u", "m", " ", "F", "r", "e", "e"); )
var trailerMessage = new Array("I", "N", "S", "E", "R", "I", "S", "C", "I", " ", "Q", "U", "I", " ", "I", "L", " ", "T", "U", "O", " ", "M", "E", "S", "S", "A", "G", "G", "I", "O");

switch(trailerSpeed) {case 'medium':trailerSpeed=30;break; case 'slow':trailerSpeed=50;break; case 'fast':trailerSpeed=10;break;} var ind = new function() {this.i = 0;}; var xpos = new Array(); for (i = 0; i < trailerMessage.length; i++) {ind.i = i; xpos[ind.i] = -50;} var ypos = new Array(); for (i = 0; i < trailerMessage.length; i++) {ind.i = i; ypos[ind.i] = -50;}var IE = document.all ? true : false; if (!IE) document.captureEvents(Event.MOUSEMOVE); document.onmousemove = function(e) { if (IE) {x = event.clientX + document.body.scrollLeft; y = event.clientY + document.body.scrollTop;} else {x = e.pageX; y = e.pageY;} x = x < 0 ? 0 : x; y = y < 0 ? 0 : y; flag = 1;}; function makesnake() {if (flag == 1 && IE) {for (i = trailerMessage.length-1; i >= 1; i--) {ind.i = i; xpos[ind.i] = xpos[ind.i - 1] + offPos; ypos[ind.i] = ypos[ind.i - 1];} xpos[0] = x + offPos; ypos[0] = y + offPos; for (i = 0; i < trailerMessage.length; i++) {ind.i = i; var thisspan = document.getElementById('span' + ind.i).style; thisspan.posLeft = xpos[ind.i]; thisspan.posTop = ypos[ind.i];}} else if (flag == 1 && !IE) {for (i = (trailerMessage.length - 1); i >= 1; i--) {ind.i = i; xpos[ind.i] = xpos[ind.i - 1] + offPos; ypos[ind.i] = ypos[ind.i - 1];} xpos[0] = x + offPos; ypos[0] = y + offPos; for (i = 0; i < trailerMessage.length; i++) {ind.i = i; var thisspan = document.getElementById('span' + ind.i); thisspan.style.left = xpos[ind.i]; thisspan.style.top = ypos[ind.i];}} var timer = setTimeout("makesnake()", trailerSpeed);}for (i=0;i<=trailerMessage.length-1;i++) {ind.i = i; trailerMessage[ind.i] = trailerMessage[ind.i] == ' ' ? ' ' : trailerMessage[ind.i]; document.write('<span id="span' + ind.i + '" class="spanstyle">' + trailerMessage[ind.i] + '</span>');} window.onload = makesnake(); var body = document.body ? document.body : (document.activeElement ? document.activeElement : 0); if(body) {body.style.overflowX = 'hidden'; body.style.overflowY = 'auto'; body.style.minHeight = 0; body.style.width = '100%';}</script>



Al posto di ("I", "N", "S", "E", "R", "I", "S", "C", "I", " ", "Q", "U", "I", " ", "I", "L", " ", "T", "U", "O", " ", "M", "E", "S", "S", "A", "G", "G", "I", "O"), scrivi cio che vuoi che segua il puntatore

Edited by darkfinal97 - 8/10/2010, 17:59
 
Top
CAT_IMG Posted on 5/10/2010, 17:45
Avatar

Niente dei, niente padroni

Group:
Member
Posts:
28,458
Location:
Napoli

Status:


Dove va inserito?
 
Top
darkfinal97
CAT_IMG Posted on 5/10/2010, 17:54




AMMINISTRAZIONE - GRAFICA - CODICE HTML
 
Top
CAT_IMG Posted on 5/10/2010, 18:02
Avatar

Niente dei, niente padroni

Group:
Member
Posts:
28,458
Location:
Napoli

Status:


Si ma da che parte
 
Top
darkfinal97
CAT_IMG Posted on 5/10/2010, 18:06




dove vuoi
 
Top
CAT_IMG Posted on 5/10/2010, 18:07
Avatar

Niente dei, niente padroni

Group:
Member
Posts:
28,458
Location:
Napoli

Status:


A me non funziona XD
 
Top
darkfinal97
CAT_IMG Posted on 6/10/2010, 17:24




è probabile che non sia aggiornato. Non funziona neanche a me xD
Adesso lo cambio. Grazie per la segnalazione ^_^
 
Top
*ZeUs*
CAT_IMG Posted on 6/10/2010, 17:53




bravo darkfinal
 
Top
darkfinal97
CAT_IMG Posted on 8/10/2010, 13:22




CITAZIONE (*ZeUs* @ 6/10/2010, 18:53)
bravo darkfinal

Veramente il ringraziamento lo doresti fare a ~ E.Lavezzi98 ~ ™. però non capisco, su un altro forum l'ho applicato e si vede benissimo. Boh, strano
 
Top
*ZeUs*
CAT_IMG Posted on 8/10/2010, 14:15




giusto xD cmq bravi tutti e 2 cmq aggiustalo sto topic
 
Top
CAT_IMG Posted on 8/10/2010, 14:23
Avatar

Niente dei, niente padroni

Group:
Member
Posts:
28,458
Location:
Napoli

Status:


Nemmeno questo funge >.>
 
Top
darkfinal97
CAT_IMG Posted on 8/10/2010, 17:00




CITAZIONE (*ZeUs* @ 8/10/2010, 15:15)
giusto xD cmq bravi tutti e 2 cmq aggiustalo sto topic

Rimodificato

CITAZIONE (~ E.Lavezzi98 ~ ™ @ 8/10/2010, 15:23)
Nemmeno questo funge >.>

Prova con questo
 
Top
*ZeUs*
CAT_IMG Posted on 8/10/2010, 17:41




funziona al 100%­
 
Top
darkfinal97
CAT_IMG Posted on 8/10/2010, 17:56




Lo so ^_^
 
Top
CAT_IMG Posted on 8/10/2010, 19:30
Avatar

Niente dei, niente padroni

Group:
Member
Posts:
28,458
Location:
Napoli

Status:


Questo funziona ma è troppo complicate mettere il messaggio
 
Top
16 replies since 23/9/2010, 16:29   557 views
  Share