[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4688: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4690: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4691: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4692: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
Webmasterplein.net • Toon onderwerp - Javascript Ticker random weergeven
aan alle goede dingen komt een eind, webmasterplein.net 2003 - 2013
wij danken jullie voor al mooie momenten die dankzij dit forum ontstonden - Derk, Rutger en Stef

Javascript Ticker random weergeven

Het echte opmaakwerk, alles vragen over HTMLen, CSSen en Javascripten.

Javascript Ticker random weergeven

Berichtdoor Marcello » 30 mei 2011 14:49

Avatar gebruiker
Marcello
wmpr
 
Berichten: 257
Geregistreerd: 29 nov 2003 20:55
Woonplaats: Groningen

Re: Javascript Ticker random weergeven

Berichtdoor Remi » 30 mei 2011 15:45

Avatar gebruiker
Remi
wmpr
 
Berichten: 3010
Geregistreerd: 04 apr 2006 15:22

Re: Javascript Ticker random weergeven

Berichtdoor Marcello » 30 mei 2011 17:46

Bedankt voor het snelle antwoordt! het werkt maar, nog niet helemaal ik krijg af en toe om mijn balk "undefined"te zien dus bijv tekst1 tekst4 tekst5 tekst3 tekst2 en dan "undefined en dan gaat die weer met de tekst verder.
Avatar gebruiker
Marcello
wmpr
 
Berichten: 257
Geregistreerd: 29 nov 2003 20:55
Woonplaats: Groningen

Re: Javascript Ticker random weergeven

Berichtdoor Krassie » 30 mei 2011 21:21

Moet het niet length-1 zijn ipv length+1 ?
Avatar gebruiker
Krassie
wmpr
 
Berichten: 4526
Geregistreerd: 15 dec 2003 06:28
Woonplaats: Oost-Vlaanderen - Belgiƫ

Re: Javascript Ticker random weergeven

Berichtdoor Remi » 30 mei 2011 21:56

Ja het moet min 1 zijn. Ik zat een beetje te slapen. :P
Avatar gebruiker
Remi
wmpr
 
Berichten: 3010
Geregistreerd: 04 apr 2006 15:22

Re: Javascript Ticker random weergeven

Berichtdoor Marcello » 31 mei 2011 11:25

Bedankt voor de reacties

Veranderd in length-1 maar, nu blijft het balkje(waar de tekst in komt) soms leeg (vorige keer kreeg ik undefined af en toe in de balk) daarna komt de tekst weer.
Dat heb ik liever niet, en heb het idee dat die soms wat langer blijft staan op 1 tekst, maar kan toeval zijn omdat het random is en ik nog niet veel teksten heb ingevoerd.
Avatar gebruiker
Marcello
wmpr
 
Berichten: 257
Geregistreerd: 29 nov 2003 20:55
Woonplaats: Groningen

Re: Javascript Ticker random weergeven

Berichtdoor DoubleJ » 31 mei 2011 11:29

De wondere wereld van het wijde web.
Avatar gebruiker
DoubleJ
wmpr
 
Berichten: 253
Geregistreerd: 20 jan 2008 20:32

Re: Javascript Ticker random weergeven

Berichtdoor Marcello » 31 mei 2011 14:48

Hoi ja eigenlijk wel, maar dan wordt het nog ingewikkelder denk ik. Ik denk als je veel teksten hebt, dat het niet zo vaak voorkomt en niet bezwaarlijk is. Plus als die het moet checken zou die alles maar 1 keer laten zien zien en niet in een random loop.Eerst het probleem oplossen dat die dus af en toe een lege balk laat zien ipv tekst. 8-)
Avatar gebruiker
Marcello
wmpr
 
Berichten: 257
Geregistreerd: 29 nov 2003 20:55
Woonplaats: Groningen

Re: Javascript Ticker random weergeven

Berichtdoor Marcello » 02 jun 2011 14:50

Niemand? Ok bedankt iig voor de antwoorden.
Avatar gebruiker
Marcello
wmpr
 
Berichten: 257
Geregistreerd: 29 nov 2003 20:55
Woonplaats: Groningen

Re: Javascript Ticker random weergeven

Berichtdoor Remi » 02 jun 2011 14:58

Avatar gebruiker
Remi
wmpr
 
Berichten: 3010
Geregistreerd: 04 apr 2006 15:22

Re: Javascript Ticker random weergeven

Berichtdoor Marcello » 02 jun 2011 15:12

Het werkt! hartstikke bedankt 8-)
Avatar gebruiker
Marcello
wmpr
 
Berichten: 257
Geregistreerd: 29 nov 2003 20:55
Woonplaats: Groningen


Keer terug naar HTML, CSS, Javascript



cron