Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- function getInfoText($filename)
- {
- $text = '';
- if(file_exists($filename . '.txt'))
- {
- $filename .= '.txt';
- $filehandle = fopen($filename,'r');
- while(!feof($filehandle))
- {
- $text .= fgets($filehandle) . '<br>';
- }
- fclose($filehandle);
- }
- else
- {
- $text = 'Zu ' . $filename . ' ist leider keine Information vorhanden.';
- }
- return $text;
- }
- ?>
- <html>
- <head>
- <meta property="og:title" content="ForestsStickfights" />
- <meta property="og:type" content="website" />
- <meta property="og:url" content="http://darkmidget.da.funpic.de/forest/steff/" />
- <meta property="og:image" content="http://darkmidget.da.funpic.de/forest/steff/logoSAM.png" />
- <meta property="og:site_name" content="Forest's Stickfights" />
- <meta property="fb:admins" content="1556201228" />
- <style type="text/css">
- body{
- background-color:#646464;
- padding:0px;
- }
- #content{
- background-color:#999999;
- width:900px;
- height:auto;
- margin:0px auto;
- outline: 2px solid black;
- }
- #headline{
- margin:0px auto;
- width:850px;
- height:115;
- font-size: 40px;
- font-weight: bold;
- border-bottom: 1px solid black;
- background-image:url('stickheader2.gif');
- background-position:-55 -45;
- }
- #line{
- border-bottom: 3px dotted black;
- margin:10px 0px;
- }
- #flashcontainer{
- margin: 25px 150px;
- padding-bottom:50px;
- }
- select{
- background: #CCC;
- border: 1px solid #333;
- }
- .infobox{
- background-color:#555555;
- padding:10px;
- display:none;
- }
- .stickfight{
- margin:0px;
- width:600px;
- }
- img{
- position:fixed;
- right:15px;
- top:80px;
- }
- </style>
- </head>
- <body>
- <div style="float:right;margin-top:7px;position:fixed;right:15px;z-index:10;" class="fb-like" data-href="http://darkmidget.da.funpic.de/forest/steff/" data-send="false" data-layout="box_count" data-width="100" data-show-faces="true" data-colorscheme="dark" data-font="arial"></div>
- <script type="text/javascript" src="http://code.jquery.com/jquery-1.7.2.js"></script>
- <div id="fb-root"></div>
- <script>(function(d, s, id) {
- var js, fjs = d.getElementsByTagName(s)[0];
- if (d.getElementById(id)) return;
- js = d.createElement(s); js.id = id;
- js.src = "//connect.facebook.net/de_DE/all.js#xfbml=1";
- fjs.parentNode.insertBefore(js, fjs);
- }(document, 'script', 'facebook-jssdk'))
- </script>
- <div id="content">
- <div id="headline">
- <a style="float:left;margin-top:30px;display:none;">Forest's Stickfights!</a>
- </div>
- <div id="flashcontainer">
- <form action="">
- Wähle einen Stickfight aus:
- <select id="filterSelect" name="file" onChange="showSelected()">
- <option selected>Alle</option>
- <?php
- foreach(glob("*.swf") as $filename)
- {
- $filename = explode(".",$filename);
- $filename = $filename[0];
- echo '<option>' . $filename . '</option>';
- }
- ?>
- </select>
- </form>
- <?php
- foreach(glob("*.swf") as $filename)
- {
- $filename = explode(".",$filename);
- $filename = $filename[0];
- $infoText = getInfoText($filename);
- echo '<div id="' . $filename . '" style="display:block;" class="stickfight" onmouseover="showInfo(\'' . $filename . '\')" onmouseout="hideInfo(\'' . $filename . '\')">';
- echo '<h2>' . $filename . '</h3>';
- echo '<object classid="CLSID:D27CDB6E-AE6D-11cf-96B8-444553540000" width="600" height="400"
- codebase="http://active.macromedia.com/flash2/cabs/swflash.cab#version=4,0,0,0">
- <param name="movie" value="'. $filename .'.swf">
- <param name="quality" value="high">
- <param name="scale" value="exactfit">
- <param name="menu" value="true">
- <param name="bgcolor" value="#FFFFFF">
- <embed src="'.$filename.'.swf" quality="high" scale="exactfit" menu="false"
- bgcolor="#FFFFFF" width="600" height="400" swLiveConnect="false"
- type="application/x-shockwave-flash"
- pluginspage="http://www.macromedia.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash">
- </embed>
- </object>
- <div class="infobox" id="info' . $filename . '">' . $infoText . '</div></div>';
- }
- ?>
- <div id="line"></div>
- <div style="margin:0px 0px;padding:0px;background-color:#333333;" class="fb-comments" data-href="http://darkmidget.da.funpic.de/forest/steff/" data-num-posts="5" data-width="600" data-colorscheme="dark"></div>
- </div>
- </div>
- <script type="text/javascript" language="JavaScript" src="http://web101.server62.publicompserver.de/counter/utiut.php?nmjz=284586&fnzr=1"></script>
- <script type="text/javascript">
- var selection = document.getElementById('filterSelect');
- var items = new Array();
- var fadeTime = 750;
- <?php
- foreach(glob("*.swf") as $item)
- {
- $item = explode(".",$item);
- $item = $item[0];
- echo 'items.push("' . $item . '");' . PHP_EOL;
- }
- ?>
- function wait(time)
- {
- time += new Date().getTime();
- while (new Date() < time){}
- }
- function showAll()
- {
- if(arguments[0] == true)
- {
- for(var element in items)
- {
- item = document.getElementById(items[element]);
- $(item).slideDown(fadeTime);
- }
- }
- else
- {
- for(var element in items)
- {
- item = document.getElementById(items[element]);
- $(item).slideUp(fadeTime);
- }
- }
- }
- function showSelected()
- {
- //alert(selection.value);
- item = document.getElementById(selection.value);
- if(selection.value == 'Alle') showAll(true);
- else
- {
- for(var element in items)
- {
- item = document.getElementById(items[element]);
- if(items[element] != selection.value){ $(item).slideUp(0);}
- if(items[element] == selection.value){ $(item).slideDown(0);}
- }
- }
- }
- function showInfo(name)
- {
- //alert('Zeige:'+name);
- $('#info' + name).slideDown();
- }
- function hideInfo(name)
- {
- //alert('Verstecke:'+name);
- $('#info' + name).slideUp();
- }
- </script>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement