mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-07-24 02:12:17 +00:00
Automatisches Scrollen am Infoscreen und Übersetzungen im Phrasenmodul
This commit is contained in:
@@ -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"> </td>
|
||||
<td><table class="tabcontent">
|
||||
<tr height="500px"><td> </td></tr>
|
||||
<tr>
|
||||
<td class="ContentHeader"><font class="ContentHeader"> News</font></td>
|
||||
</tr>
|
||||
@@ -189,6 +237,7 @@ else
|
||||
</td>
|
||||
<td> </td>
|
||||
</tr>
|
||||
<tr height="500px"><td> </td></tr>
|
||||
</table></td>
|
||||
<td class="tdwidth_right"> </td>
|
||||
</tr>
|
||||
|
||||
@@ -464,9 +464,9 @@ if (!$db = new basis_db())
|
||||
|
||||
if ($anz_incoming > -1)
|
||||
{
|
||||
echo '<tr><td>Incoming: </td><td>'.stripslashes($anz_incoming).'</td></tr>';
|
||||
echo '<tr><td>Places Available for Incoming Students: </td><td>'.stripslashes($anz_incoming).'</td></tr>';
|
||||
}
|
||||
else echo '<tr><td>Incoming: </td><td>0</td></tr>';
|
||||
else echo '<tr><td>Places Available for Incoming Students: </td><td>0</td></tr>';
|
||||
|
||||
echo "<tr><td> </td><td> </td></tr>";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user