L'éditeur JavaScript
Visiteur non-identifié | Identifiez-vous | Devenir membre
Code perdu ? | Combien de visiteurs sur votre site ?
Rechercher :
Page d'accueil
     Home Page

JavaScript
     Tous les scripts
     Proposer un script
     Recherche de script
     AJAX
     Cours de JavaScript
     Liste de discussion
     Forums

Services :
     CountUs
     myCircle
     ClickInText
     XooIt

Trucs et astuces :
     HTML / CSS
     PHP / MySQL
     Réferencement
     Graph / Présentation
     Toutes les astuces
     Ajouter un article

MailingList :
122609 abonnés

Annuaire webmaster :      Hebergement web
     Referencement
     Sites webmasters
     XHTML - CSS2
     PHP
     Affiliation - Pub
     FAI

     Annuaire webmaster

Ressources pour webmasters :
     Kit graphique
     Foire aux questions
     Les membres
     Devenir annonceur
     Faire un lien
     Contact

Partenaire :
     Compteur live
     Créer un forum
     Le PHP facile
     Comscripts
     Liens sponsorisés
     Blog
     Page Rank
     Gifs animés, f...
     Poésie et cita...
     Azote.org - no...
     Easy-script.com
     Web creation ...
     Je crée mon site
     Outils de créa...
     Electroniq...
     K i s s design
     Créer son site...
     Les autres
     Votre site ici ?


Le forum ] [ Préférences ] [ Nouveau sujet ] [ Répondre ] [ Recherche ] [ Vos sujets ] [ Tous lus ] [ Flux RSS ]


[ Forums >> JavaScript >> Problèmes avec un script de l'éditeur JavaScript ? >> probleme avec script étoile rotative ]

> probleme avec script étoile rotative
[ Posté par cedoced ] [ Détails ] [ Contact ] [ Citer ]
[ Posté le 17-02-2004 à 13:44 | 19 messages ]

bjr,
j'ai essayé par 5 fois de mettre ce fameux script, je rempli convenablement le code, mais qd je l'insere (g la petite balise qui me dit qu'il y a un script dedans) et que je fais un apercu, apres avoir enregistrer... il n'y a absolument rien qu'il se passe...
que dois je faire..???

________________
CeDoCeD



[ Posté par julien22 ] [ Détails ] [ Contact ] [ Citer ]
[ Posté le 17-02-2004 à 14:17 | 4087 messages ]

Peux-tu donner ton code et/ou l'URl de ta page ?


[ Posté par cedoced ] [ Détails ] [ Contact ] [ Citer ]
[ Posté le 17-02-2004 à 14:35 | 19 messages ]

tres long mais j'espere que tu trouveras... merci bcp


<!-- DEBUT DU SCRIPT -->
<SCRIPT LANGUAGE="JavaScript">
/*
Etoile de texte rotative
SCRIPT EDITE SUR L'EDITEUR JAVASCRIPT
http://www.editeurjavascript.com
*/

/*
CREDITS:
Text Wheel
By Urs Dudli and Peter Gehrig
Copyright (c) 2003 Peter Gehrig and Urs Dudli. All rights reserved.
Permission given to use the script provided that this notice remains as is.
Additional scripts can be found at http:www.24fun.com
info@24fun.com
2/5/2003

IMPORTANT:
If you add this script to a script-library or script-archive
you have to add a highly visible link to
http:www.24fun.com on the webpage
where this script will be featured

CONFIGURATION:
Go to http:www.24fun.com
and create your own text animation
with our new Text Factory.
*/
var text=new Array()
text[0]=' >>>> Nouveau produit'
text[1]=' >>>> Promos du mois'
text[2]=' >>>> interview du mois'
text[3]=' >>>> astuce sécurité'
text[4]=' >>>> à méditer'
text[5]=' >>>> le site du mois'

var textfont="Verdana"
var textfontsize="24";
var textfontcolor="#CC0000"
var textweight="900"

var textitalic="0"
var message=new Array()
var x_textposition=0
var y_textposition=0
var i_segments=Math.round(360/text.length)
var i_grad=0
var grad=0
var colorrgbred
var colorrgbgreen
var colorrgbblue
var windowwidth
var windowheight

var ns4=document.layers?1:0
var ns6=document.getElementById&&!document.all?1:0

var ie=document.all?1:0
if (textweight=="bold") {textweight=900}
if (textweight=="normal") {textweight=100}

if (textitalic=="italic") {textitalic=1}
if (textitalic=="normal") {textitalic=0}

for (i=0;i<=text.length-1;i++) {
message[i]=text[i].replace(/'/g,"`")
}
translateintorgb()
function translateintorgb() {
var hexanewred=textfontcolor.substring(1,3)
var hexanewgreen=textfontcolor.substring(3,5)
var hexanewblue=textfontcolor.substring(5,7)
colorrgbred=parseInt("0x"+hexanewred)
colorrgbgreen=parseInt("0x"+hexanewgreen)
colorrgbblue=parseInt("0x"+hexanewblue)
}

function initiate() {
windowheight=parseInt(document.body.clientHeight)/2
windowwidth=parseInt(document.body.clientWidth)-40

for (i=0;i<text.length;i++) {
var thisspan=eval("document.all.rotationstyle"+i)
thisspan.style.posLeft=20
thisspan.style.posTop=0
}
settexts()
}

function settexts() {
for (i=0;i<text.length;i++) {
var thisid="rotationobj"+i
var thisspan=eval("rotationstyle"+i)
thisspan.innerHTML='<OBJECT ID="'+thisid+'" CLASSID="CLSID:369303C2-D7AC-11d0-89D5-00A0C90833E6" STYLE="position:relative;width:'+windowwidth+'px;height:'+2*windowheight+'px">'+
'<PARAM NAME="Line0001" VALUE="SetLineStyle(0)">'+
'<PARAM NAME="Line0002" VALUE="SetLineColor(0,0,0)">'+
'<PARAM NAME="Line0003" VALUE="SetFillColor('+colorrgbred+','+colorrgbgreen+','+colorrgbblue+')">'+
'<PARAM NAME="Line0004" VALUE="SetFont(\''+textfont+'\', '+textfontsize+', '+textweight+', '+textitalic+', 0, 0)">'+
'<PARAM NAME="Line0005" VALUE="Text(\''+message[i]+'\',0, 2, 0)">'+
'</OBJECT>'
}
for (i=0;i<text.length;i++) {
var thisobj=eval("rotationobj"+i)
thisobj.Rotate(0,i_grad,0)

i_grad+=i_segments
}
startscroll()
}

function startscroll() {
for (i=0;i<text.length;i++) {
var thisobj=eval("rotationobj"+i)
thisobj.Rotate(1,2,0)
}
timer=setTimeout("startscroll()",20)
}

if (ie) {
for (i=0;i<text.length;i++) {
var thisid="rotationstyle"+i
var thisobjid="rotationobj"+i
document.write("<SPAN ID='"+thisid+"' STYLE='position:absolute'>")
document.write("<OBJECT ID='"+thisobjid+"' CLASSID='CLSID:369303C2-D7AC-11d0-89D5-00A0C90833E6'>")
document.write("</OBJECT>")
document.write("</SPAN>")
onload=initiate
}
}
</SCRIPT>
<!-- FIN DU SCRIPT -->

________________
CeDoCeD




Services email :

Vous devez vous identifier pour profiter des services par email du forum.
Le forum ] [ Préférences ] [ Nouveau sujet ] [ Répondre ] [ Recherche ] [ Vos sujets ] [ Tous lus ] [ Flux RSS ]






compteur gratuit
actuellement en ligne

    PUBLICITE



     ANNUAIRE WEBMAST.
AOL
Un des plus gros FAI mondial.
ttp://adsl.aol.fr/
Cat : Haut débit
Voir l'annuaire webmaster


     LES SCRIPTS :
78 à éditer
68 à copier/coller
247 des membres
2580 sur le web
>> Tous les scripts

     LES MEMBRES :
65977 membres
4650 comptes CountUs
1842 comptes myCircle

     LES FORUMS :
14 forums
40363 topics
191692 messages
>> Les forums

    SONDAGE

Vous avez un blog ou site classique ?
Un blog
Un site classique
Les deux !
La mini-astuce "Referencement" du jour par krucial
Pour savoir combien de pages de votre site sont indexées dans Google, il vous suffit de taper, dans la boite de recherche du moteur : "site:http://www.votresite.com";.
Proposer votre mini-astuce | Archives des mini-astuces
© 1999-2012 EJS - Tous droits réservés | CNIL N° 844440 | 12/02/2012 21:31:32 | Design by | Gen. en 0.49 sec.