Forum
Ny skærm - Ultra Widescreen - 49/52/57" med KVM
5
Scratch kodning
0
USB C kabel 5m dur ikke med PS5 controller
17
Solid Gamer mus til venstrehåndet?
11
How to Test Your Game Controller for Stick Drift
0
Mangler antenner til stationær computer
4
nvidia driver og Diablo 4, fix ?
2
Har I set elpriserne for i morgen?
118
Grafikkort PANIK !
60
Logitech G915 X Tactile gaming tastatur
9
HDR eller SDR på 360 Hz OLED-skærm – hvad ville I
12
Ps5 Headset forslag?
13
Brugt Gaming PC forventningsafstemmelse
16
Slut med nuværende kryptering
9
Asus Kithara problem
5
OPgradering af bundkort :)
9
Dune 2000 "Remaster"
26
Kan jeg bruge DE (ISO) tastatur uden problemer?
10
hjælp til fionde den bedste bærbar til 3000 kr
7
Hue outdoor sensor & google home
2
Spørgsmål: Ny hardware på vej ?
9
Black Friday 2026 - Den store tilbudstråd
128
Forkerte vare fra Proshop
10
Køb af ny computer
67
Hjælp til valg af CPU
32
Fejlfinding og evt. opgradering af søns computer
1
Opgradering af CPU og bundkort, max 1.500 kr
22
Edifier R1700BT erfaringer?
8
nogle her der har lg h7 suite=( højtalere sub osv?
7
Prof. VFX Artist - Beholde 3090 eller 5080?
10
Køb & Salg
K: Nintendo Switch 2
1
K: Søger en 5600X og 8600K
1
V: 2080 ti, 8700K og X Hero bundkort
10
S: Wooting 80HE TenZ Takeover ANSI US
0
K: Intel Arc A310 eller A380
3
Gamer-PC (RX 9070 XT + Ryzen 7 9800X3D)
0
S: 7800X3D
10
S: Div. dele (i7-6700K, 16 gb ddr4 ram, ssd,..)
0
V: Gamer pc 3070 32gb ram vurdering
8
K: Stationær til server
10
S: kingston 480 gb 2,5 ssd
9
S: Garmin Venu 4
0
B: GTX 1070 + penge for RTX 2060 eller bedre
0
V: bundkort, cpu og ram
2
S: Gigabyte 3070 Ti Aorus Master
3
S: 7700k + mITX + NVME
4
V/S: Kingston FURY Beast DDR5 32GB 6400MT/s CL32
6
V: Asrock B650 Pro / Ryzen 7 7800X3D / DDR5 - 5600
0
S: Forskellig typer bærbar ram
2
K: B660, B760, Z690 eller Z790 bundkort købes
13
K: 1 TB SSD købes
18
S: AMD 5800x med Nvidia 1660 GTX og 16 Gb RAM
1
S: Logitech Trophy rig + HF8
7
S: Apple mus
2
V: samsung s24
2
K: SØGER DDR5 RAM 32GB
2
S: 3950X, X570 AORUS Master & RTX 4060 Ti 8GB
1
S: Asus Strix GTX1070
5
K: 4 stk. Synology Disk Tray Type D6
0
S: Fractal Design Define Nano S
2
Forum
Ny skærm - Ultra Widescreen - 49/52/57" med KVM
5
Scratch kodning
0
USB C kabel 5m dur ikke med PS5 controller
17
Solid Gamer mus til venstrehåndet?
11
How to Test Your Game Controller for Stick Drift
0
Mangler antenner til stationær computer
4
nvidia driver og Diablo 4, fix ?
2
Har I set elpriserne for i morgen?
118
Grafikkort PANIK !
60
Logitech G915 X Tactile gaming tastatur
9
HDR eller SDR på 360 Hz OLED-skærm – hvad ville I
12
Ps5 Headset forslag?
13
Brugt Gaming PC forventningsafstemmelse
16
Slut med nuværende kryptering
9
Asus Kithara problem
5
OPgradering af bundkort :)
9
Dune 2000 "Remaster"
26
Kan jeg bruge DE (ISO) tastatur uden problemer?
10
hjælp til fionde den bedste bærbar til 3000 kr
7
Hue outdoor sensor & google home
2
Spørgsmål: Ny hardware på vej ?
9
Black Friday 2026 - Den store tilbudstråd
128
Forkerte vare fra Proshop
10
Køb af ny computer
67
Hjælp til valg af CPU
32
Fejlfinding og evt. opgradering af søns computer
1
Opgradering af CPU og bundkort, max 1.500 kr
22
Edifier R1700BT erfaringer?
8
nogle her der har lg h7 suite=( højtalere sub osv?
7
Prof. VFX Artist - Beholde 3090 eller 5080?
10
Køb & Salg
K: Nintendo Switch 2
1
K: Søger en 5600X og 8600K
1
V: 2080 ti, 8700K og X Hero bundkort
10
S: Wooting 80HE TenZ Takeover ANSI US
0
K: Intel Arc A310 eller A380
3
Gamer-PC (RX 9070 XT + Ryzen 7 9800X3D)
0
S: 7800X3D
10
S: Div. dele (i7-6700K, 16 gb ddr4 ram, ssd,..)
0
V: Gamer pc 3070 32gb ram vurdering
8
K: Stationær til server
10
S: kingston 480 gb 2,5 ssd
9
S: Garmin Venu 4
0
B: GTX 1070 + penge for RTX 2060 eller bedre
0
V: bundkort, cpu og ram
2
S: Gigabyte 3070 Ti Aorus Master
3
S: 7700k + mITX + NVME
4
V/S: Kingston FURY Beast DDR5 32GB 6400MT/s CL32
6
V: Asrock B650 Pro / Ryzen 7 7800X3D / DDR5 - 5600
0
S: Forskellig typer bærbar ram
2
K: B660, B760, Z690 eller Z790 bundkort købes
13
K: 1 TB SSD købes
18
S: AMD 5800x med Nvidia 1660 GTX og 16 Gb RAM
1
S: Logitech Trophy rig + HF8
7
S: Apple mus
2
V: samsung s24
2
K: SØGER DDR5 RAM 32GB
2
S: 3950X, X570 AORUS Master & RTX 4060 Ti 8GB
1
S: Asus Strix GTX1070
5
K: 4 stk. Synology Disk Tray Type D6
0
S: Fractal Design Define Nano S
2
- Denne tråd er over 6 måneder gammel
Er du sikker på, at du har noget relevant at tilføje?
Sortitoutsi news ticker
Af Zor gæst
http://www.sortitoutsi.net
Supér news ticker. Nogen der ved om man kan hente sådan en ned :o) ?
På forhånd tak ;)
Supér news ticker. Nogen der ved om man kan hente sådan en ned :o) ?
På forhånd tak ;)
Zor
#1
Gæst
26-10-2005 11:34
Hmm any1 :P ?
Se koden:
<script type="text/javascript">
<!--
// Ticker startup
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 = "<span class="tickls">" + theLeadString + "</span>";
}
// 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>
<script type="text/javascript">
<!--
var theCharacterTimeout = 50;
var theStoryTimeout = 5000;
var theWidgetOne = "_";
var theWidgetTwo = "-";
var theWidgetNone = "";
var theLeadString = "";
var theSummaries = new Array();
var theSiteLinks = new Array();
var theItemCount = 10;
theSummaries[9] = "";
theSiteLinks[9] = "";
theSummaries[8] = "Take part in the one and only Susie Super League...";
theSiteLinks[8] = " http://www.sortitoutsi.net/forums/i......
theSummaries[7] = "Make your voice heard! Susie Super League";
theSiteLinks[7] = " http://www.sortitoutsi.net/forums/i......
theSummaries[6] = "Try out the Football Manager 2006 BETA Demo! Click here for more information";
theSiteLinks[6] = "index.php?page=articles&view=news&news_id=1679";
theSummaries[5] = "FM2006 Gold Demo Released. Get it Now!";
theSiteLinks[5] = " http://www.sortitoutsi.net/index.ph......
theSummaries[4] = "Patch 6.0.1 For Football Manager 2006 Released";
theSiteLinks[4] = " http://www.sortitoutsi.net/index.ph......
theSummaries[3] = "Join sortitoutsi.net! Become a Staff Member Today!";
theSiteLinks[3] = " http://www.sortitoutsi.net/index.ph......
theSummaries[2] = "";
theSiteLinks[2] = "";
theSummaries[1] = "";
theSiteLinks[1] = "";
theSummaries[0] = "";
theSiteLinks[0] = "";
startTicker();
//-->
</script>
<script type="text/javascript">
<!--
// Ticker startup
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 = "<span class="tickls">" + theLeadString + "</span>";
}
// 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>
<script type="text/javascript">
<!--
var theCharacterTimeout = 50;
var theStoryTimeout = 5000;
var theWidgetOne = "_";
var theWidgetTwo = "-";
var theWidgetNone = "";
var theLeadString = "";
var theSummaries = new Array();
var theSiteLinks = new Array();
var theItemCount = 10;
theSummaries[9] = "";
theSiteLinks[9] = "";
theSummaries[8] = "Take part in the one and only Susie Super League...";
theSiteLinks[8] = " http://www.sortitoutsi.net/forums/i......
theSummaries[7] = "Make your voice heard! Susie Super League";
theSiteLinks[7] = " http://www.sortitoutsi.net/forums/i......
theSummaries[6] = "Try out the Football Manager 2006 BETA Demo! Click here for more information";
theSiteLinks[6] = "index.php?page=articles&view=news&news_id=1679";
theSummaries[5] = "FM2006 Gold Demo Released. Get it Now!";
theSiteLinks[5] = " http://www.sortitoutsi.net/index.ph......
theSummaries[4] = "Patch 6.0.1 For Football Manager 2006 Released";
theSiteLinks[4] = " http://www.sortitoutsi.net/index.ph......
theSummaries[3] = "Join sortitoutsi.net! Become a Staff Member Today!";
theSiteLinks[3] = " http://www.sortitoutsi.net/index.ph......
theSummaries[2] = "";
theSiteLinks[2] = "";
theSummaries[1] = "";
theSiteLinks[1] = "";
theSummaries[0] = "";
theSiteLinks[0] = "";
startTicker();
//-->
</script>
Zor
#3
Gæst
26-10-2005 12:04
Tak. Jeg ser følgende:
theSummaries[3] = "Take part in the one and only Susie Super League...";
theSiteLinks[3] = " http://www.sortitoutsi.net/forums/i......
Hvordan får man den til at vælge den 3. nyeste nyhed fra mySQL eksempelvis? :-P
theSummaries[3] = "Take part in the one and only Susie Super League...";
theSiteLinks[3] = " http://www.sortitoutsi.net/forums/i......
Hvordan får man den til at vælge den 3. nyeste nyhed fra mySQL eksempelvis? :-P
$swl = mysql_select("SELECT * FROM news LIMIT 3,1 ORDER BY time");
ret selv til...
ret selv til...