Automatisches Scrollen am Infoscreen und Übersetzungen im Phrasenmodul

This commit is contained in:
Manfred Kindl
2012-02-10 12:58:48 +00:00
parent ff16143782
commit bfb4cfe3d6
10 changed files with 72 additions and 27 deletions
+50 -1
View File
@@ -93,6 +93,54 @@ echo '
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta http-equiv="refresh" content="',$refreshzeit,'">
<link href="../../skin/infoscreen.css" rel="stylesheet" type="text/css">
<script type="text/javascript" language="JavaScript">
<!--Skript fuer den automatischen bildlauf-->
var speed=1 <!--Wert aendern um geschwindigkeit zu steuern. Hoeher ist schneller.-->
var currentpos=0,alt=1,curpos1=0,curpos2=-1
function initialize()
{
startit()
}
function scrollwindow()
{
if (document.all)
temp=document.body.scrollTop
else
temp=window.pageYOffset
if (alt==0)
alt=1
else
alt=0
if (alt==0)
curpos1=temp
else
curpos2=temp
if (curpos1!=curpos2)
{
if (document.all)
currentpos=document.body.scrollTop+speed
else
currentpos=window.pageYOffset+speed
window.scroll(0,currentpos)
}
else
{
currentpos=0
window.scroll(0,currentpos)
}
}
function startit()
{
setInterval("scrollwindow()",40)
}
window.onload=initialize
</script>
<title>Infoscreen</title>
<style type="text/css">
html, body, div, iframe
@@ -109,7 +157,6 @@ echo '
}
</style>
</head>
<body>';
if($aktuellerContentIdx!=0)
@@ -125,6 +172,7 @@ else
<tr>
<td class="tdwidth_left">&nbsp;</td>
<td><table class="tabcontent">
<tr height="500px"><td>&nbsp;</td></tr>
<tr>
<td class="ContentHeader"><font class="ContentHeader">&nbsp;News</font></td>
</tr>
@@ -189,6 +237,7 @@ else
</td>
<td>&nbsp;</td>
</tr>
<tr height="500px"><td>&nbsp;</td></tr>
</table></td>
<td class="tdwidth_right">&nbsp;</td>
</tr>
+2 -2
View File
@@ -464,9 +464,9 @@ if (!$db = new basis_db())
if ($anz_incoming > -1)
{
echo '<tr><td>Incoming:&nbsp;</td><td>'.stripslashes($anz_incoming).'</td></tr>';
echo '<tr><td>Places Available for Incoming Students:&nbsp;</td><td>'.stripslashes($anz_incoming).'</td></tr>';
}
else echo '<tr><td>Incoming:&nbsp;</td><td>0</td></tr>';
else echo '<tr><td>Places Available for Incoming Students:&nbsp;</td><td>0</td></tr>';
echo "<tr><td>&nbsp;</td><td>&nbsp;</td></tr>";