cs_thibault31
Messages postés28Date d'inscriptiondimanche 2 janvier 2005StatutMembreDernière intervention11 décembre 2005
-
8 avril 2005 à 03:21
younes371
Messages postés502Date d'inscriptionmercredi 29 décembre 2004StatutMembreDernière intervention20 mars 2012
-
18 sept. 2006 à 18:32
Cette discussion concerne un article du site. Pour la consulter dans son contexte d'origine, cliquez sur le lien ci-dessous.
younes371
Messages postés502Date d'inscriptionmercredi 29 décembre 2004StatutMembreDernière intervention20 mars 2012 18 sept. 2006 à 18:32
Bonjour,
Je travail sur un projet,oû je dois mettre des onglets automatique, => vous m avez pa compris!! ??.
Alors j explique :
L'utilisateur lui meme peut créer ces onglet personnel.
Pour bien me comprendre, je vous demande d aller voir ce site : www.netvibes.com.
Si vous pouvez m'aider a trouver le script ou on le developpe ensemble ça serait gentil de votre part . Merci
kegi
Messages postés164Date d'inscriptionjeudi 23 octobre 2003StatutMembreDernière intervention25 août 2008 14 mars 2006 à 09:49
C'est du JAVASCRIPT :P pas du JAVA
et la réponse (trop simple) se trouve sur ta boite de réception.
Cordialement,
Kevin (kegi@hotmail.com)
norbertus
Messages postés1Date d'inscriptionvendredi 10 mars 2006StatutMembreDernière intervention10 mars 2006 10 mars 2006 à 12:43
Super, mais comment le démarrer?
Le "pas de news pour le moment" reste toujours la...
(je sais, je débutte en java...)
Merci,
Norbert
kegi
Messages postés164Date d'inscriptionjeudi 23 octobre 2003StatutMembreDernière intervention25 août 2008 27 janv. 2006 à 04:54
Pour répondre à une question qu'on m'a posé: "Comment changer le target ?" voici la réponse:
rajouter simplement:
theAnchorObject.target = "_blank"; //le nom de votre frame :)
après la ligne:
theAnchorObject.href = theTargetLink;
Cordialement,
Kevin (kegi@hotmail.com)
sergio297
Messages postés6Date d'inscriptionmercredi 7 mai 2003StatutMembreDernière intervention27 juillet 2005 27 juil. 2005 à 12:12
Ton code est tooooop! C'est exactement ce que je cherchais.
Merci crashtest :)
cs_Romain128
Messages postés89Date d'inscriptionmercredi 9 mars 2005StatutMembreDernière intervention 7 novembre 2005 12 avril 2005 à 15:34
12/10.
(Comment ca "on peut pas"?)
Bon ben 10 alors...
kegi
Messages postés164Date d'inscriptionjeudi 23 octobre 2003StatutMembreDernière intervention25 août 2008 9 avril 2005 à 19:03
merci crashtest,
jai unpdater mon code.
cordialement,
kevin (kegi@hotmail.com)
cs_jjdagadir
Messages postés127Date d'inscriptionlundi 7 avril 2003StatutMembreDernière intervention 6 mars 2009 9 avril 2005 à 10:19
BEN OUI - 10 POUR CRASHTEST, C'EST LE SEUL CODE QUI FONCTIONNE !!!
cs_crashtest
Messages postés105Date d'inscriptionlundi 16 février 2004StatutMembreDernière intervention28 août 2005 8 avril 2005 à 11:32
Lu,
aucun de vos script ne marche.
Je l'ai réparé et maintenan il marche sous IE et sous firefox.
// ce script provient de http://news.bbc.co.uk // adapté par kevin gilbert
// kegi@hotmail.com
function startTicker()
{
// Define run time values
theCurrentStory = -1;
theCurrentLength = 0;
// Locate base objects
if (document.getElementById) {
theAnchorObject = document.getElementById("tickerAnchor");
runTheTicker();
}
else {
document.write("<style>.ticki{display:none;}.ticko{border:0px; padding:0px;}</style>");
return true;
}
}
// Ticker main run loop
function runTheTicker()
{
var myTimeout;
// Go for the next story data block
if(theCurrentLength == 0)
{
theCurrentStory++;
theCurrentStory = theCurrentStory % theItemCount;
theStorySummary = theSummaries[theCurrentStory].replace(/"/g,'"');
theTargetLink = theSiteLinks[theCurrentStory];
theAnchorObject.href = theTargetLink;
thePrefix = "" + theLeadString + "";
}
// Stuff the current ticker text into the anchor
theAnchorObject.innerHTML = thePrefix +
theStorySummary.substring(0,theCurrentLength) + whatWidget();
// Modify the length for the substring and define the timer
if(theCurrentLength != theStorySummary.length)
{
theCurrentLength++;
myTimeout = theCharacterTimeout;
}
else
{
theCurrentLength = 0;
myTimeout = theStoryTimeout;
}
// Call up the next cycle of the ticker
setTimeout("runTheTicker()", myTimeout);
}
// Widget generator
function whatWidget()
{
if(theCurrentLength == theStorySummary.length)
{
return theWidgetNone;
}
var theCharacterTimeout = 50;
var theStoryTimeout = 5000;
var theWidgetOne = "_";
var theWidgetTwo = "-";
var theWidgetNone = "";
var theLeadString = "NEWS : ";
var theSummaries = new Array();
var theSiteLinks = new Array();
var theItemCount = 4;
// ici, vous metez vos texte et vos description mais n'oubliez pas de changer la
// variable theItemCount pour indiquer le nombre de news
theSummaries[0] = "Ici, je met mon premier texte qui est un lien vers Mon site de rencontre ;)";
theSiteLinks[0] = "http://kegi1.ekzay.com/rw-3/";
theSummaries[1] = "Ici je met mon deuxième texte qui est un lien vers google.com";
theSiteLinks[1] = "http://www.google.com";
cs_thibault31
Messages postés28Date d'inscriptiondimanche 2 janvier 2005StatutMembreDernière intervention11 décembre 2005 8 avril 2005 à 03:21
Correction de ton code Kevin pour intégrer la gestion des classes CSS, sinon il ne marche pas en l'état !
Pour ceux qui utilisent des styles sur leur site, çà évitera de vous foutre le bazard dans l'affichage !
// ce script provient de http://news.bbc.co.uk // adapté par kevin gilbert
// kegi@hotmail.com
function startTicker()
{
// Define run time values
theCurrentStory = -1;
theCurrentLength = 0;
// Locate base objects
if (document.getElementById) {
theAnchorObject = document.getElementById("tickerAnchor");
runTheTicker();
}
else {
document.write("<style>.ticki{display:none;}.ticko{border:0px; padding:0px;}</style>");
return true;
}
}
// Ticker main run loop
function runTheTicker()
{
var myTimeout;
// Go for the next story data block
if(theCurrentLength == 0)
{
theCurrentStory++;
theCurrentStory = theCurrentStory % theItemCount;
theStorySummary = theSummaries[theCurrentStory].replace(/"/g,'"');
theTargetLink = theSiteLinks[theCurrentStory];
theAnchorObject.href = theTargetLink;
thePrefix = "" + theLeadString + "";
}
// Stuff the current ticker text into the anchor
theAnchorObject.innerHTML = thePrefix +
theStorySummary.substring(0,theCurrentLength) + whatWidget();
// Modify the length for the substring and define the timer
if(theCurrentLength != theStorySummary.length)
{
theCurrentLength++;
myTimeout = theCharacterTimeout;
}
else
{
theCurrentLength = 0;
myTimeout = theStoryTimeout;
}
// Call up the next cycle of the ticker
setTimeout("runTheTicker()", myTimeout);
}
// Widget generator
function whatWidget()
{
if(theCurrentLength == theStorySummary.length)
{
return theWidgetNone;
}
var theCharacterTimeout = 50;
var theStoryTimeout = 5000;
var theWidgetOne = "_";
var theWidgetTwo = "-";
var theWidgetNone = "";
var theLeadString = "NEWS : ";
var theSummaries = new Array();
var theSiteLinks = new Array();
var theItemCount = 4;
// ici, vous metez vos texte et vos description mais n'oubliez pas de changer la
// variable theItemCount pour indiquer le nombre de news
theSummaries[0] = "Ici, je met mon premier texte qui est un lien vers Mon site de
18 sept. 2006 à 18:32
Je travail sur un projet,oû je dois mettre des onglets automatique, => vous m avez pa compris!! ??.
Alors j explique :
L'utilisateur lui meme peut créer ces onglet personnel.
Pour bien me comprendre, je vous demande d aller voir ce site : www.netvibes.com.
Si vous pouvez m'aider a trouver le script ou on le developpe ensemble ça serait gentil de votre part . Merci
14 mars 2006 à 09:49
et la réponse (trop simple) se trouve sur ta boite de réception.
Cordialement,
Kevin (kegi@hotmail.com)
10 mars 2006 à 12:43
Le "pas de news pour le moment" reste toujours la...
(je sais, je débutte en java...)
Merci,
Norbert
27 janv. 2006 à 04:54
rajouter simplement:
theAnchorObject.target = "_blank"; //le nom de votre frame :)
après la ligne:
theAnchorObject.href = theTargetLink;
Cordialement,
Kevin (kegi@hotmail.com)
27 juil. 2005 à 12:12
Merci crashtest :)
12 avril 2005 à 15:34
(Comment ca "on peut pas"?)
Bon ben 10 alors...
9 avril 2005 à 19:03
jai unpdater mon code.
cordialement,
kevin (kegi@hotmail.com)
9 avril 2005 à 10:19
8 avril 2005 à 11:32
aucun de vos script ne marche.
Je l'ai réparé et maintenan il marche sous IE et sous firefox.
<html>
<title></title>
<head>
<STYLE>
a.tickl{font-family:Verdana,Arial,Helvetica,sans-serif;font-size:11px;line-height:12px;text-decoration:none;color:#004477;font-weight:bold;}
a.tickl:hover{color:#C2262A;text-decoration:none;font-weight:bold;}
a.tickl:link{color:#004477;text-decoration:none;font-weight:bold;}
a.tickl:visited{color:#004477;text-decoration:none;font-weight:bold;}
.ticki{width:620px;height:30px;overflow:hidden;}
.ticko{width:620px;padding:1px 0 4px 0;margin:4px 0 0px 0;display:block;}
.tickls{
color:#C2262A;
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 12px;
font-weight: bold;
}
</STYLE>
<script language="JavaScript" type="text/javascript">
<!--
// ce script provient de http://news.bbc.co.uk
// adapté par kevin gilbert
// kegi@hotmail.com
function startTicker()
{
// Define run time values
theCurrentStory = -1;
theCurrentLength = 0;
// Locate base objects
if (document.getElementById) {
theAnchorObject = document.getElementById("tickerAnchor");
runTheTicker();
}
else {
document.write("<style>.ticki{display:none;}.ticko{border:0px; padding:0px;}</style>");
return true;
}
}
// Ticker main run loop
function runTheTicker()
{
var myTimeout;
// Go for the next story data block
if(theCurrentLength == 0)
{
theCurrentStory++;
theCurrentStory = theCurrentStory % theItemCount;
theStorySummary = theSummaries[theCurrentStory].replace(/"/g,'"');
theTargetLink = theSiteLinks[theCurrentStory];
theAnchorObject.href = theTargetLink;
thePrefix = "" + theLeadString + "";
}
// Stuff the current ticker text into the anchor
theAnchorObject.innerHTML = thePrefix +
theStorySummary.substring(0,theCurrentLength) + whatWidget();
// Modify the length for the substring and define the timer
if(theCurrentLength != theStorySummary.length)
{
theCurrentLength++;
myTimeout = theCharacterTimeout;
}
else
{
theCurrentLength = 0;
myTimeout = theStoryTimeout;
}
// Call up the next cycle of the ticker
setTimeout("runTheTicker()", myTimeout);
}
// Widget generator
function whatWidget()
{
if(theCurrentLength == theStorySummary.length)
{
return theWidgetNone;
}
if((theCurrentLength % 2) == 1)
{
return theWidgetOne;
}
else
{
return theWidgetTwo;
}
}
// -->
</script>
</head>
NEWS : pas de news pour le moment...
<script language="JavaScript" type="text/javascript">
<!--
var theCharacterTimeout = 50;
var theStoryTimeout = 5000;
var theWidgetOne = "_";
var theWidgetTwo = "-";
var theWidgetNone = "";
var theLeadString = "NEWS : ";
var theSummaries = new Array();
var theSiteLinks = new Array();
var theItemCount = 4;
// ici, vous metez vos texte et vos description mais n'oubliez pas de changer la
// variable theItemCount pour indiquer le nombre de news
theSummaries[0] = "Ici, je met mon premier texte qui est un lien vers Mon site de rencontre ;)";
theSiteLinks[0] = "http://kegi1.ekzay.com/rw-3/";
theSummaries[1] = "Ici je met mon deuxième texte qui est un lien vers google.com";
theSiteLinks[1] = "http://www.google.com";
theSummaries[2] = "etc...";
theSiteLinks[2] = "http://www.perdu.com";
theSummaries[3] = "etc...";
theSiteLinks[3] = "http://www.perdu.com";
startTicker();
//-->
</script>
</html>
8 avril 2005 à 03:21
Pour ceux qui utilisent des styles sur leur site, çà évitera de vous foutre le bazard dans l'affichage !
Cordialement,
Thibault
<html>
<title></title>
<head>
<STYLE>
a.tickl{font-family:Verdana,Arial,Helvetica,sans-serif;font-size:11px;line-height:12px;text-decoration:none;color:#004477;font-weight:bold;}
a.tickl:hover{color:#C2262A;text-decoration:none;font-weight:bold;}
a.tickl:link{color:#004477;text-decoration:none;font-weight:bold;}
a.tickl:visited{color:#004477;text-decoration:none;font-weight:bold;}
.ticki{width:620px;height:30px;overflow:hidden;}
.ticko{width:620px;padding:1px 0 4px 0;margin:4px 0 0px 0;display:block;}
.tickls{
color:#C2262A;
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 12px;
font-weight: bold;
}
</STYLE>
<script language="JavaScript" type="text/javascript">
<!--
// ce script provient de http://news.bbc.co.uk
// adapté par kevin gilbert
// kegi@hotmail.com
function startTicker()
{
// Define run time values
theCurrentStory = -1;
theCurrentLength = 0;
// Locate base objects
if (document.getElementById) {
theAnchorObject = document.getElementById("tickerAnchor");
runTheTicker();
}
else {
document.write("<style>.ticki{display:none;}.ticko{border:0px; padding:0px;}</style>");
return true;
}
}
// Ticker main run loop
function runTheTicker()
{
var myTimeout;
// Go for the next story data block
if(theCurrentLength == 0)
{
theCurrentStory++;
theCurrentStory = theCurrentStory % theItemCount;
theStorySummary = theSummaries[theCurrentStory].replace(/"/g,'"');
theTargetLink = theSiteLinks[theCurrentStory];
theAnchorObject.href = theTargetLink;
thePrefix = "" + theLeadString + "";
}
// Stuff the current ticker text into the anchor
theAnchorObject.innerHTML = thePrefix +
theStorySummary.substring(0,theCurrentLength) + whatWidget();
// Modify the length for the substring and define the timer
if(theCurrentLength != theStorySummary.length)
{
theCurrentLength++;
myTimeout = theCharacterTimeout;
}
else
{
theCurrentLength = 0;
myTimeout = theStoryTimeout;
}
// Call up the next cycle of the ticker
setTimeout("runTheTicker()", myTimeout);
}
// Widget generator
function whatWidget()
{
if(theCurrentLength == theStorySummary.length)
{
return theWidgetNone;
}
if((theCurrentLength % 2) == 1)
{
return theWidgetOne;
}
else
{
return theWidgetTwo;
}
}
// -->
</script>
</head>
NEWS : pas de news pour le moment...
<script language="JavaScript" type="text/javascript">
<!--
var theCharacterTimeout = 50;
var theStoryTimeout = 5000;
var theWidgetOne = "_";
var theWidgetTwo = "-";
var theWidgetNone = "";
var theLeadString = "NEWS : ";
var theSummaries = new Array();
var theSiteLinks = new Array();
var theItemCount = 4;
// ici, vous metez vos texte et vos description mais n'oubliez pas de changer la
// variable theItemCount pour indiquer le nombre de news
theSummaries[0] = "Ici, je met mon premier texte qui est un lien vers Mon site de
rencontre ;)";
theSiteLinks[0] = "http://kegi1.ekzay.com/rw-3/";
theSummaries[1] = "Ici je met mon deuxième texte qui est un lien vers
google.com";
theSiteLinks[1] = "http://www.google.com";
theSummaries[2] = "etc...";
theSiteLinks[2] = "http://www.perdu.com";
theSummaries[3] = "etc...";
theSiteLinks[3] = "http://www.perdu.com";
startTicker();
//-->
</script>
</html>