Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
screensaver [2011/01/01 07:40]
palehorse
screensaver [2012/12/31 07:16] (current)
Line 5: Line 5:
 echo "<​script src=\"​doku.php?​id=screensaver&​do=get_jscript\"></​script>​\n";​ echo "<​script src=\"​doku.php?​id=screensaver&​do=get_jscript\"></​script>​\n";​
 echo "<​link rel=\"​stylesheet\"​ href=\"​doku.php?​id=screensaver&​do=get_stylesheet\"​ type=\"​text/​css\"></​link>​\n";​ echo "<​link rel=\"​stylesheet\"​ href=\"​doku.php?​id=screensaver&​do=get_stylesheet\"​ type=\"​text/​css\"></​link>​\n";​
-echo "<​img src=\"​doku.php?​id=screensaver&​do=get_next_image\" />​\n";​+echo "<​div style=\"​position:​ absolute; top: 0px; left: 0px; width: 100%; height: 100%; background-color:​ #000000; z-index:​29000;​\">​\n";​ 
 +echo "​ <​img src=\"​doku.php?​id=screensaver&​do=get_next_media\" ​id=\"​current_media\"​ style=\"​width:​ 20%; padding-right:​ 5px; padding-left:​ 5px;\" />​\n";​ 
 +echo "</​div>​\n";​ 
 +echo "<​script language=\"​JavaScript\">​\n";​ 
 +#echo "​ function next_media() {\n";​ 
 +#echo " ​   var newTimeStamp = new Date;​\n";​ 
 +#echo " var randomEffect = Math.floor(Math.random() * 3);​\n";​ 
 +#echo "​ //​alert(randomEffect);​\n";​ 
 +#echo "​ switch (randomEffect) {\n";​ 
 +#echo "​ case 0:​\n";​ 
 +#echo " ​   crossfade(document.getElementById('​current_media'​),​ '/​doku.php?​id=screensaver&​do=get_next_media&​nocache='​ + newTimeStamp.getTime(),​ '​2',​ ''​);​\n";​ 
 +#echo "​ break;​\n";​ 
 +#echo "​ case 1:​\n";​ 
 +#echo "​ crosswipe(document.getElementById('​current_media'​),​ '/​doku.php?​id=screensaver&​do=get_next_media&​nocache='​ + newTimeStamp.getTime(),​ '​2',​ '​lr',​ ''​);​\n";​ 
 +#echo "​ break;​\n";​ 
 +#echo "​ case 2:​\n";​ 
 +#echo "​ crosswipe(document.getElementById('​current_media'​),​ '/​doku.php?​id=screensaver&​do=get_next_media&​nocache='​ + newTimeStamp.getTime(),​ '​2',​ '​rl',​ ''​);​\n";​ 
 +#echo "​ break;​\n";​ 
 +#echo "​ }\n";​ 
 +#echo " ​   window.setTimeout(\"​next_media()\",​ 10000);​\n";​ 
 +#echo " ​ }\n";​ 
 +echo " ​ next_media();​\n";​ 
 +echo "</script>​\n";​
 </​php>​ </​php>​
  
Line 16: Line 38:
 [[https://​prototype.ghanima.com/​doku.php?​id=screensaver&​do=get_image|Get Image]] |  [[https://​prototype.ghanima.com/​doku.php?​id=screensaver&​do=get_image|Get Image]] | 
 [[https://​prototype.ghanima.com/​doku.php?​id=screensaver&​do=get_jscript|Get JScript]] |  [[https://​prototype.ghanima.com/​doku.php?​id=screensaver&​do=get_jscript|Get JScript]] | 
-[[https://​prototype.ghanima.com/​doku.php?​id=screensaver&​do=get_resource|Get Resource]]+[[https://​prototype.ghanima.com/​doku.php?​id=screensaver&​do=get_resource|Get Resource]] ​|
 [[https://​prototype.ghanima.com/​doku.php?​id=screensaver&​do=get_next_media|Get Next Media]] [[https://​prototype.ghanima.com/​doku.php?​id=screensaver&​do=get_next_media|Get Next Media]]