ultratek Posted September 23, 2008 Share Posted September 23, 2008 i am using the include function to load my header (http://www.justinvenablephoto.com/header.html) and when you click my gallery button it loads /menubar.php when you click the commercial button iwant it to load a seperate page just to the right of this menu (/commercial.php) in menubar.php i have the menu div set to a width and to float left..in commercial.php i have the gallery for commercial.php in a div with a set width and to float right... now with php can i have these two seprate pages to load there divs side by side? if so...how? on the commercial.php i am using include to load the menubar.php...is this right if i want the menu to show for each gallery section/page? http://www.justinvenablephoto.com/menubar.php http://www.justinvenablephoto.com/commercial.php http://www.justinvenablephoto.com/index.php Link to comment https://forums.phpfreaks.com/topic/125467-php-and-divs/ Share on other sites More sharing options...
DyslexicDog Posted September 23, 2008 Share Posted September 23, 2008 Please post the code from those pages it sounds like you have some scope problems. Link to comment https://forums.phpfreaks.com/topic/125467-php-and-divs/#findComment-648624 Share on other sites More sharing options...
ultratek Posted September 23, 2008 Author Share Posted September 23, 2008 menubar.php: <?php $page_title = 'Commercial'; include ('header.html'); ?> <script src="Scripts/AC_RunActiveContent.js" type="text/javascript"></script> <style type="text/css"> <!-- #width { width: 190px; float: left; } --> </style> <div align="left" id="width"> <div align="left"> <script type="text/javascript"> AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0','width','190','height','400','title','Menu','src','menu','quality','high','pluginspage','http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash','movie','menu' ); //end AC code </script> <noscript> <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0" width="190" height="400" title="Menu"> <param name="movie" value="menu.swf" /> <param name="quality" value="high" /> <embed src="menu.swf" quality="high" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="190" height="400"></embed> </object> </noscript> </div> </div> <?php include ('footer.html'); ?> commercial.php: <?php $page_title = 'Commercial'; include ('menubar.php'); ?> <style type="text/css"> <!-- #width { float: right; width: 560px; } --> </style> <script type="text/javascript"> <!-- function MM_openBrWindow(theURL,winName,features) { //v2.0 window.open(theURL,winName,features); } //--> </script> <div align="right" id="width"> <div align="center"><img src="images/PicIcons/Qaulity_01small.jpg" width="107" height="107" onclick="MM_openBrWindow('images/Qaulity_01.jpg','','location=yes,width=468,height=362')" /> <img src="images/PicIcons/Qaulity_02small.jpg" width="107" height="107" onclick="MM_openBrWindow('images/Qaulity_02.jpg','','location=yes,width=468,height=362')" /></div> </div> Link to comment https://forums.phpfreaks.com/topic/125467-php-and-divs/#findComment-648626 Share on other sites More sharing options...
DyslexicDog Posted September 23, 2008 Share Posted September 23, 2008 You will need to use frames to load a separate page into the same page. If you don't want to use frames you'll need to setup something in javascript to support displaying the data on the same page. Link to comment https://forums.phpfreaks.com/topic/125467-php-and-divs/#findComment-648634 Share on other sites More sharing options...
ultratek Posted September 23, 2008 Author Share Posted September 23, 2008 thank you very much Link to comment https://forums.phpfreaks.com/topic/125467-php-and-divs/#findComment-648641 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.