bigbenbuilders Posted September 3, 2009 Share Posted September 3, 2009 When I just put in a flash file I have a layer that covers part of the flash with other content. When I use a php includes file to rotate flash it works great but then it covers the layer? Here is the includes file and the index page. If I embed the video direct works great just wont allow the div to over lap with the php file <?php $imglist=''; //$img_folder is the variable that holds the path to the swf files. // see that you dont forget about the "/" at the end $img_folder = "templates/flash/"; mt_srand((double)microtime()*1000); //use the directory class $imgs = dir($img_folder); //read all files from the directory, ad them to a list while ($file = $imgs->read()) { if (eregi("swf", $file)) $imglist .= "$file "; } closedir($imgs->handle); //put all images into an array $imglist = explode(" ", $imglist); $no = sizeof($imglist)-2; //generate a random number between 0 and the number of images $random = mt_rand(0, $no); $image = $imglist[$random]; //display random swf echo '<embed src="'.$img_folder.$image.'"quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="977" height="220"></embed>'; ?> index.php <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" /> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <META name="Publisher" content="majicCMS v3 http://www.cuaa.edu/"> <META name="Author" content="majicCMS v3 http://www.cuaa.edu/"> <META NAME="DESCRIPTION" CONTENT="A description about the content of your homepage should go here"> <META NAME="KEYWORDS" CONTENT="Keywords about your home page should go here"> <link rel="shortcut icon" href="templates/images/favicon.ico"> <title>Home - Welcome to Concordia University</title> <link href="templates/css/main_css.css" rel="stylesheet" type="text/css" /> <link href="templates/css/homepage_css.css" rel="stylesheet" type="text/css" /> <link href="templates/form_login/addon.css" type="text/css" rel="stylesheet" /> <script src="templates/form_login/jquery.js" type="text/javascript"></script> <script src="templates/form_login/function.js" type="text/javascript"></script> <script type="text/javascript" src="templates/Scripts/textsizer.js"> /*********************************************** * Document Text Sizer- Copyright 2003 - Taewook Kang. All rights reserved. * Coded by: Taewook Kang (http://www.txkang.com) * This notice must stay intact for use * Visit http://www.dynamicdrive.com/ for full source code ***********************************************/ </script> </head> <body bgcolor="#bbb9cf"> <!-- login --> <div style="display: none;" id="DIV_Overlay" class="DIV_OverlayBG"></div> <div id="login_ajax_form" style="margin-left: 541.5px; margin-top: 10px; display: none;"> <div id="login_loading" align="center"></div> <div class="loginform"> <form method="post" name="frmLogin" id="frmLogin" action="/content/subscribe"> <div style="position: absolute; margin-left: 280px; margin-top: -4px;"> <a href="javascript:common.LoginForm();"><img src="/templates/form_login/close.gif" alt="Close" border="0"></a></div> <div class="title_right_text padding_bottom_5">join our mailing list!</div> <div style="background:#FFFFFF; width:290px; padding-top:10px;"> <table width="290" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="52" height="22"> <strong>name</strong></td> <td width="238"><input maxlength="32" class="bg_textbox" value="" name="u" id="uname" tabindex="99" /></td> </tr> <tr> <td height="22"> <strong> e-mail</strong></td> <td><input class="bg_textbox" name="pp" id="upass" tabindex="100" type="text" /><input name="department" type="hidden" value="About_Us" /></td> </tr> <tr> <td> </td> <td align="right"><label> <input type="image" name="imageField" src="templates/images/btton/bg_join.jpg" style="width:31px; height:25px;" /> </label></td> </tr> <tr> <td> </td> <td> </td> </tr> </table> </div> </form></div> </div> <!-- end login --> <center class="center_bg_page"> <div id="bg_page" style="text-align:left; width:981px;"> <div id="depart_01" class="depart_01"></div> <div id="line_white" class="line_white"> <div id="menu_top" class="menu_top"> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td height="20"><table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="32" height="20"> </td> <td width="112"><a href="Alumni" class="a_black text_10"> <div class="tab_1" onMouseOver="this.className='tab_1_on'" onMouseOut="this.className='tab_1'">alumni</div> </a></td> <td width="105"><a href="Giving" class="a_black text_10"> <div class="tab_1" onMouseOver="this.className='tab_1_on'" onMouseOut="this.className='tab_1'">giving</div> </a></td> <td width="105"><a href="KreftArts" class="a_black text_10"> <div class="tab_1" onMouseOver="this.className='tab_1_on'" onMouseOut="this.className='tab_1'">kreft arts</div> </a></td> <td width="105"><a href="Library" class="a_black text_10"> <div class="tab_1" onMouseOver="this.className='tab_1_on'" onMouseOut="this.className='tab_1'">library</div> </a></td> <td width="182"><a href="GraduateStudies" class="a_black text_10"> <div class="tab_1" onMouseOver="this.className='tab_1_on'" onMouseOut="this.className='tab_1'">graduate studies</div> </a></td> <td width="19"> </td> </tr> </table></td> </tr> <tr> <td height="20"> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="100" height="20"><a href="Admissions" class="a_black text_10"> <div class="tab_2" onMouseOver="this.className='tab_2_on'" onMouseOut="this.className='tab_2'">ADMISSIONS</div> </a></td> <td width="100"><a href="About" class="a_black text_10"> <div class="tab_2" onMouseOver="this.className='tab_2_on'" onMouseOut="this.className='tab_2'">ABOUT</div> </a></td> <td width="100"><a href="Academics" class="a_black text_10"> <div class="tab_2" onMouseOver="this.className='tab_2_on'" onMouseOut="this.className='tab_2'">ACADEMICS</div> </a></td> <td width="100"><a href="http://www.concordiacardinals.com" target="_blank" class="a_black text_10"> <div class="tab_2" onMouseOver="this.className='tab_2_on'" onmouseout="this.className='tab_2'">ATHLETICS</div> </a></td> <td width="100"><a href="Student_Life" class="a_black text_10"> <div class="tab_2" onMouseOver="this.className='tab_2'" onMouseOut="this.className='tab_2'">STUDENT LIFE</div> </a></td> <td valign="top"> <form action="search" method="post" style="margin:0;"> <table width="100%" height="19" border="0" cellpadding="0" cellspacing="0"> <tr> <td width="10%" valign="top"><img src="templates/images/tab_menu_search1.png" width="16" height="19" /></td> <td width="62%" style="padding-top:3px;" background="templates/images/tab_menu_search2.png"><input type="text" name="q" style="height:13px; border:#FFFFFF 0px; font-size:10px; width:80px;" value="Search" onClick="if(this.value=='Search'){this.value=''};" onBlur="if(this.value==''){this.value='Search'};" /> </td> <td width="28%" valign="bottom" style="padding-top:1px;"><input type="image" name="submit" src="templates/images/tab_menu_search3.png" /> </td> </tr> </table> </form> </td> </tr> </table></td> </tr> </table> </div> </div> <div id="depart_02" class="depart_02"><a href="templates/default.html"><img src="templates/images/logo.png" alt="Concordia University" width="266" height="34" hspace="20" vspace="1" border="0" /></a></div> <div id="depart_03" class="depart_03"> <div style="position:absolute; z-index:30; width:255px; height:361px; margin-left:25px; margin-top:170px;"> <table width="255" border="0" cellspacing="0" cellpadding="0"> <tr> <td><img src="templates/images/left_frame_home_01.png" width="20" height="21" /></td> <td><img src="templates/images/left_frame_home_02.png" width="215" height="21" /></td> <td><img src="templates/images/left_frame_home_03.png" width="20" height="21" /></td> </tr> <tr> <td valign="top" background="templates/images/left_frame_home_04.png"><img src="templates/images/left_frame_home_04.png" width="20" height="309" /></td> <td height="309" valign="top" background="templates/images/left_frame_home_05.png"> <!-- majicCMS inject cell a --> <div ><div class="blockBox"><div class="blockBody"><div class="text_16 text_white text_font_Myriad">educate your ambition</div> <div class="text_white text_11 text_font_Myriad" style="height: 120px; text-align: left; margin-top: 3px;">Concordia's programs are founded on strong student/faculty relationships, giving individuals the best chance to go as far as their determination and talent will take them. We help students educate their ambition and encourage them to stand up and be leaders in their fields of study. Concordia University Ann Arbor is a supportive academic their voice in the world. </div> </div></form></div> </div><!-- end injection --> <div style="height:15px;"></div> <!-- majicCMS inject cell d --> <div ><div class="blockBox"><div class="blockBody"><div class="text_16 text_white text_font_Myriad">be the voice. </div> <div class="text_white text_11 text_font_Myriad" style="height: 95px; text-align: left; margin-top: 3px;">Concordia's programs are founded on strong student/faculty relationships, giving individuals the best chance to go as far as their determination and talent will take them. </div> <div style="height: 20px; padding-top: 10px; text-align: right;"> <table width="100%" border="0" cellpadding="0" cellspacing="0"> <tbody><tr> <td align="right"><select name="select" class="bg_combox" style="border: 1px solid rgb(81, 30, 10); height: 22px; font-size: 11px;"> <option selected="selected"> Select a topic </option> </select></td> <td align="right"><input name="Submit" value="Go" style="border: 1px solid rgb(81, 30, 10); background-color: rgb(204, 204, 204); width: 25px; height: 22px; color: rgb(255, 255, 255); font-size: 11px; font-weight: bold;" type="submit"></td> </tr> </tbody></table> </div></div></form></div> </div><!-- end injection --> </td> <td valign="top" background="templates/images/left_frame_home_06.png"><img src="templates/images/left_frame_home_06.png" width="20" height="309" /></td> </tr> <tr> <td><img src="templates/images/left_frame_home_07.png" width="20" height="31" /></td> <td><img src="templates/images/left_frame_home_08.png" width="215" height="31" /></td> <td><img src="templates/images/left_frame_home_09.png" width="20" height="31" /></td> </tr> </table> <div style="height:20px; padding-top:10px;"><!-- AddThis Button BEGIN --> <a href="http://www.addthis.com/bookmark.php?v=250" onmouseover="return addthis_open(this, '', '[url]', '[TITLE]')" onmouseout="addthis_close()" onclick="return addthis_sendto()"><img src="http://s7.addthis.com/static/btn/lg-share-en.gif" width="161" height="20" alt="Bookmark and Share" style="border:0"/></a><script type="text/javascript" src="http://s7.addthis.com/js/250/addthis_widget.js?pub=xa-4a30b80062929688"></script> <!-- AddThis Button END --></div> </div> <?php include_once "random_swf.php" ?> </div> <div id="depart_04" class="depart_04"> <div style="height:272px; margin-left:290px;"> <table width="100%"> <tr><td width="71%"> <!-- majicCMS inject cell b --> <div ><div class="blockBox"><div class="blockBody"><table width="95%" align="center" border="0" cellpadding="0" cellspacing="0"> <tbody> <tr> <td valign="top" width="70%" align="left"> <div class="text_title_main">Are You The Voice?</div></td></tr> <tr style="font-family: Times;"> <td id="text_body" style="padding-right: 10px; padding-top: 10px;" valign="top" align="left"> <p>Concordia University Ann Arbor is a supportive academic community committed to providing personalized education. Every student brings to Concordia unique God-given talents, passions, skills and interests. We focus our attention on helping each student to find their place, their voice in the world.</p> <p>Concordia’s programs are founded on strong student/faculty relationships, giving individuals the best chance to go as far as their determination and talent will take them. We help students educate their ambition and encourage them to stand up and be leaders in their fields of study. Students can be the teacher, be the social worker, be the musician, be the artist, be the business leader, be the one following their dreams. Be the voice.</p> <p><img src="templates/images/btton/icon_f.jpg" width="29" height="30"> <img src="templates/images/btton/icon_e.jpg" width="30" height="30"> <img src="templates/images/btton/icon_c.jpg" width="25" height="29"></p></td></tr></tbody></table><input id="gwProxy" type="hidden"><!--Session data--><input onclick="jsCall();" id="jsProxy" type="hidden"><div id="refHTML"></div><input id="gwProxy" type="hidden"><!--Session data--><input onclick="jsCall();" id="jsProxy" type="hidden"><div id="refHTML"></div><input id="gwProxy" type="hidden"><!--Session data--><input onclick="jsCall();" id="jsProxy" type="hidden"><div id="refHTML"></div></div></form></div> </div><!-- end injection --></td><td width="29%"> <!-- majicCMS inject cell c --> <div ><div class="blockBox"><div class="blockBody"> <form action="" name="calendar" method="post"> <select name="month" id="month"> <option value="01" >January</option> <option value="02" >February</option> <option value="03" >March</option> <option value="04" >April</option> <option value="05" >May</option> <option value="06" >June</option> <option value="07" >July</option> <option value="08" selected="selected">August</option> <option value="09" >September</option> <option value="10" >October</option> <option value="11" >November</option> <option value="12" >December</option> </select> <select name="year" id="year"> <option value="2009" selected="selected">2009</option><option value="2010" >2010</option><option value="2011" >2011</option><option value="2012" >2012</option><option value="2013" >2013</option><option value="2014" >2014</option><option value="2015" >2015</option><option value="2016" >2016</option><option value="2017" >2017</option><option value="2018" >2018</option> </select><input type="submit" name="go" id="go" value="Go" /> </form><table border="0" width="100%" cellpadding="0" cellspacing="0" class="calendarTable"><tr> <td width='15%' align="center" class="calendarHeader">S</td> <td width='14%' align="center" class="calendarHeader">M</td> <td width='14%' align="center" class="calendarHeader">T</td> <td width='14%' align="center" class="calendarHeader">W</td> <td width='14%' align="center" class="calendarHeader">T</td> <td width='14%' align="center" class="calendarHeader">F</td> <td width='15%' align="center" class="calendarHeader">S</td> </tr><tr></tr><tr><td valign="top" class="calendarCell"><div align="right" class="calendarCellHeader"> </div></td><td valign="top" class="calendarCell"><div align="right" class="calendarCellHeader"> </div></td><td valign="top" class="calendarCell"><div align="right" class="calendarCellHeader"> </div></td><td valign="top" class="calendarCell"><div align="right" class="calendarCellHeader"> </div></td><td valign="top" class="calendarCell"><div align="right" class="calendarCellHeader"> </div></td><td valign="top" class="calendarCell"><div align="right" class="calendarCellHeader"> </div></td><td valign="top" class="calendarCell"><div align="right">1 </div> </td> </tr> <tr><td valign="top" class="calendarCell"><div align="right">2 </div> </td> <td valign="top" class="calendarCell"><div align="right">3 </div> </td> <td valign="top" class="calendarCell"><div align="right">4 </div> </td> <td valign="top" class="calendarCell"><div align="right">5 </div> </td> <td valign="top" class="calendarCell"><div align="right">6 </div> </td> <td valign="top" class="calendarCell"><div align="right">7 </div> </td> <td valign="top" class="calendarCell"><div align="right">8 </div> </td> </tr> <tr><td valign="top" class="calendarCell"><div align="right">9 </div> </td> <td valign="top" class="calendarCell"><div align="right">10 </div> </td> <td valign="top" class="calendarCell"><div align="right">11 </div> </td> <td valign="top" class="calendarCell"><div align="right">12 </div> </td> <td valign="top" class="calendarCell"><div align="right">13 </div> </td> <td valign="top" class="calendarCell"><div align="right">14 </div> </td> <td valign="top" class="calendarCell"><div align="right">15 </div> </td> </tr> <tr><td valign="top" class="calendarCell"><div align="right">16 </div> </td> <td valign="top" class="calendarCell"><div align="right">17 </div> </td> <td valign="top" class="calendarCell"><div align="right">18 </div> </td> <td valign="top" class="calendarCell"><div align="right">19 </div> </td> <td valign="top" class="calendarCell"><div align="right">20 </div> </td> <td valign="top" class="calendarCell"><div align="right">21 </div> </td> <td valign="top" class="calendarCell"><div align="right">22 </div> </td> </tr> <tr><td valign="top" class="calendarCell"><div align="right">23 </div> </td> <td valign="top" class="calendarCell"><div align="right">24 </div> </td> <td valign="top" class="calendarCell"><div align="right">25 </div> </td> <td valign="top" class="calendarCell"><div align="right">26 </div> </td> <td valign="top" class="calendarCell"><div align="right">27 </div> </td> <td valign="top" class="calendarCell"><div align="right">28 </div> </td> <td valign="top" class="calendarCell"><div align="right">29 </div> </td> </tr> <tr><td valign="top" class="calendarCell"><div align="right">30 </div> </td> <td valign="top" class="calendarCell"><div align="right">31 </div> </td> <td valign="top" class="calendarCell"><div align="right" class="calendarCellHeader"> </div></td><td valign="top" class="calendarCell"><div align="right" class="calendarCellHeader"> </div></td><td valign="top" class="calendarCell"><div align="right" class="calendarCellHeader"> </div></td><td valign="top" class="calendarCell"><div align="right" class="calendarCellHeader"> </div></td><td valign="top" class="calendarCell"><div align="right" class="calendarCellHeader"> </div></td></tr></table></div></form></div> </div><!-- end injection --></td></tr></table> </div> <div style="height:120px; width:977px;"> <table width="977" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="649" valign="bottom"><table width="635" border="0" cellpadding="0" cellspacing="0"> <tr> <td width="21" class="depart_04_col1"> </td> <td width="599" valign="middle" class="depart_04_col2 text_white"><a href="BookStore" class="a_white">bookstore</a> | <a href="Finance" class="a_white">business services</a> | <a href="congregations" class="a_white">congregations</a> | <a href="directories" class="a_white">directories</a> | <a href="events" class="a_white">events</a> | <a href="Finance" class="a_white">financial aid</a> | <a href="Finance" class="a_white">human resources</a> | <a href="Finance" class="a_white">jobs</a> | <a href="spiritual" class="a_white">spiritual life</a></td> <td width="15" height="21" class="depart_04_col3"> </td> </tr> </table></td> <td width="103"><a href="templates/Catering_Special_Event/default.html"><img src="templates/images/cuaa_club.jpg" width="94" height="98" border="0" /></a></td> <td width="101"><a href="templates/admissions/default.html"><img src="templates/images/yourstory.jpg" width="94" height="98" border="0" /></a></td> <td width="124" BACKGROUND="templates/images/tour_your_campusb.jpg"><a href="templates/aboutus/campus_announcements.html"> <object codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" type="application/x-shockwave-flash" align="middle" width="110px" height="80px" style="padding-top:10px;" id="InsertWidget_a5df30ee-e652-49f8-be65-c0ffe548b5fb" data="http://widgetserver.com/syndication/flash/wrapper/InsertWidget.swf" flashvars="r=2&appId=a5df30ee-e652-49f8-be65-c0ffe548b5fb&wbx_softkey=true&wbx_suppressGW=true" ><param value="transparent" name="wmode"/><param value="false" name="menu"/><param value="high" name="quality"/><param value="http://widgetserver.com/syndication/flash/wrapper/InsertWidget.swf" name="movie"/><param value="r=2&appId=a5df30ee-e652-49f8-be65-c0ffe548b5fb&wbx_softkey=true&wbx_suppressGW=true" name="flashvars"/><param name="allowScriptAccess" value="sameDomain" /></object> </a> </td> </tr> </table> </div> </div> <div id="depart_05" class="depart_05"></div> <div id="depart_06" class="depart_06"> <div style="position:absolute; z-index:2; height:37px; width:977px;"><img src="templates/images/pattern.png" width="977" height="37" /></div> <table width="981" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="14" height="39" class="depart_06_col1"> </td> <td width="957" class="depart_06_col2"> </td> <td width="14" class="depart_06_col3"> </td> </tr> </table> </div> <div id="depart_07" class="depart_07"> <div style="text-align:center; padding-top:10px;"><a href="#" class="a_black">Contact Us</a> <a href="#" class="a_black">Privacy Policy</a> <a href="#" class="a_black">Site Map</a> <a href="#" class="a_black">Terms & Conditions</a></div> <div style="text-align:center; padding-top:5px;">Concordia University <span class="a_black">4090 Geddes Rd., Ann Arbor 48105</span> 1-888-734-4237</div> <div style="text-align:center; padding-top:15px; font-size:10px;">Copyright © Concordia University - <a href="http://lsigroup.org" style="color:#000000; text-decoration:none" target="_blank">Developed by www.lsigroup.org</a></div> </div> </div> </center> <map name="Map" id="Map"> <area shape="rect" coords="11,1,22,23" href="javascript:ts('text_body',1)" /> <area shape="rect" coords="-1,1,10,23" href="javascript:ts('text_body',-1)" /> </map> </body> </html> Link to comment https://forums.phpfreaks.com/topic/172941-solved-php-includes/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.