<?php
# Copyright by: Manuel Staechele
# Support: www.ilch.de
defined (
'main'
)
or
die
(
'no direct access'
);
$s
=
''
;
$p
=
'include/images/usergallery'
;
$erg
= db_query(
"SELECT prefix_usergallery.id,uid,prefix_usergallery.`besch`,endung,prefix_usergallery.name,prefix_user.name as user_name FROM prefix_usergallery LEFT JOIN prefix_user ON prefix_usergallery.uid = prefix_user.id WHERE free = '1' ORDER BY prefix_usergallery.id DESC LIMIT 0,30"
);
if
( db_num_rows(
$erg
) > 0 ) {
while
(
$row
= db_fetch_assoc(
$erg
) ) {
$s
.=
'tNews.push(\'<img src="'
.
$p
.
'/img_thumb_'
.
$row
[
'id'
].
'.'
.
$row
[
'endung'
].
'" width="100" height="100" />\');'
.
"\n"
;
}
}
?>
<script type=
'text/javascript'
>
tNews=
new
Array();
tNews.push <- HIER EINFÜGEN
tInterval =50;
tStop =true;
tRepeat =10;
tBorder =
'0px'
;
tWidth =468;
tHeight =63;
tPadding =1;
IE = document.all&&!window.opera;
DOM = document.getElementById&&!IE;
if
(DOM||IE)
{
var
tGo,
tPos = 0,
tStop = tStop?
'onmouseover="clearInterval(tGo)"'
+
'onmouseout="tGo=setInterval(\'DM_ticken()\','
+tInterval+
')"'
:
''
,
tTxt = tDelimiter+tNews.join(tDelimiter),
tNews = tTxt;
for
(i = 1; i < tRepeat; ++i)
{
tNews+=tTxt;
}
document.write(
'<div style="vertical-align: middle;overflow:hidden;border:'
+ tBorder +
';width:'
+tWidth+
'px;height:'
+ tHeight +
'px;'
+
'padding:'
+ tPadding +
'px 0px '
+ tPadding +
' px 0px;">'
+
'<div style="text-align:left;vertical-align: middle;position:absolute;width:'
+tWidth+
'px;height:'
+ tHeight +
'px;'
+
'overflow:hidden;clip:rect(0px '
+tWidth+
'px '
+tHeight+
'px 0px)">'
+
'<span id="ticker" style="width:468px;white-space:nowrap;position:relative;"'
+ tStop +
'>'
+ tNews +
'</span></div></div>'
);
tObj = IE ? document.all.ticker : document.getElementById(
'ticker'
);
function
DM_ticken()
{
tOffset = tObj.offsetWidth/tRepeat;
if
(Math.
abs
(tPos) > tOffset)
{
tPos=0;
}
tObj.style.left=tPos+
'px'
;
tPos=parseInt(tPos)-1;
}
tGo=setInterval(
'DM_ticken()'
,tInterval);
}
</script>