dynamiccomp Posted January 13, 2007 Posted January 13, 2007 Hi there, I was wondering if anyone could help me out with showing me how to add custom banners and footers to my store. want to incorporate my flash banner and my row of image links to incorporate my store into the rest of my site. I also have a row of image links that I want placed in the footer. I'm not sure how to modify it for php because it was done all in html. I want to incorporate this code into the header: td><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="778" height="143"> <param name="movie" value="../Flash%20file/1-a.swf"> <param name=quality value=high> <embed src="../Flash%20file/1-a.swf" quality=high pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="778" height="143"></embed> </object></td> </tr> </table> <table width="778" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="778"><img src="images/index_02.gif" width=335 height=42 alt=""> <div id="marqee" style="position:absolute; width:225px; height:28px; z-index:1; left: 12px; top: 152px;"> <script language="JavaScript1.2"> //Specify the marquee's width (in pixels) var marqueewidth="300px" //Specify the marquee's height var marqueeheight="25px" //Specify the marquee's marquee speed (larger is faster 1-10) var marqueespeed=1 //configure background color: var marqueebgcolor="" //Pause marquee onMousever (0=no. 1=yes)? var pauseit=0 //Specify the marquee's content (don't delete <nobr> tag) //Keep all content on ONE line, and backslash any single quotations (ie: that\'s great): var marqueecontent='<nobr><font face="Arial">Thank you for visiting Dynamic Hosting, a service of Comp Docs.</font></nobr>' ////NO NEED TO EDIT BELOW THIS LINE//////////// marqueespeed=(document.all)? marqueespeed : Math.max(1, marqueespeed-1) //slow speed down by 1 for NS var copyspeed=marqueespeed var pausespeed=(pauseit==0)? copyspeed: 0 var iedom=document.all||document.getElementById if (iedom) document.write('<span id="temp" style="visibility:hidden;position:absolute;top:-100px;left:-9000px">'+marqueecontent+'</span>') var actualwidth='' var cross_marquee, ns_marquee function populate(){ if (iedom){ cross_marquee=document.getElementById? document.getElementById("iemarquee") : document.all.iemarquee cross_marquee.style.left=parseInt(marqueewidth)+8+"px" cross_marquee.innerHTML=marqueecontent actualwidth=document.all? temp.offsetWidth : document.getElementById("temp").offsetWidth } else if (document.layers){ ns_marquee=document.ns_marquee.document.ns_marquee2 ns_marquee.left=parseInt(marqueewidth)+8 ns_marquee.document.write(marqueecontent) ns_marquee.document.close() actualwidth=ns_marquee.document.width } lefttime=setInterval("scrollmarquee()",20) } window.onload=populate function scrollmarquee(){ if (iedom){ if (parseInt(cross_marquee.style.left)>(actualwidth*(-1)+8)) cross_marquee.style.left=parseInt(cross_marquee.style.left)-copyspeed+"px" else cross_marquee.style.left=parseInt(marqueewidth)+8+"px" } else if (document.layers){ if (ns_marquee.left>(actualwidth*(-1)+8)) ns_marquee.left-=copyspeed else ns_marquee.left=parseInt(marqueewidth)+8 } } if (iedom||document.layers){ with (document){ document.write('<table border="0" cellspacing="0" cellpadding="0"><td>') if (iedom){ write('<div style="position:relative;width:'+marqueewidth+';height:'+marqueeheight+';overflow:hidden">') write('<div style="position:absolute;width:'+marqueewidth+';height:'+marqueeheight+';background-color:'+marqueebgcolor+'" onMouseover="copyspeed=pausespeed" onMouseout="copyspeed=marqueespeed">') write('<div id="iemarquee" style="position:absolute;left:0px;top:0px"></div>') write('</div></div>') } else if (document.layers){ write('<ilayer width='+marqueewidth+' height='+marqueeheight+' name="ns_marquee" bgColor='+marqueebgcolor+'>') write('<layer name="ns_marquee2" left=0 top=0 onMouseover="copyspeed=pausespeed" onMouseout="copyspeed=marqueespeed"></layer>') write('</ilayer>') } document.write('</td></table>') } } </script> </div> <a href="aboutus.htm"><img src="images/index_03.gif" width=79 height=42 alt="about us top" border="0"></a><a href="biz/services.htm"><img src="images/index_04.gif" width=88 height=42 alt="services top" border="0"></a><a href="hosting.htm"><img src="images/index_05.gif" width=93 height=42 alt="hosting top" border="0"></a><a href="design.htm"><img src="images/index_06.gif" width=82 height=42 alt="design top" border="0"></a><a href="support/support.htm"><img src="images/index_07.gif" alt="support top" width="94" height="42" border="0"></a></td> </tr> </table> This is what I want to beable to put in the footer <table width="778" border="0" cellspacing="0" cellpadding="0" background="images/index_58.gif"> <tr> <td align="right"><div align="right"> <div id="Layer1" style="position:absolute; width:306px; height:31px; z-index:1; left: 7px; top: 1130px; visibility: visible;"> <div align="left" class="style6 style5 style13"><strong>Copyright © 2000-2007 <a href="http://www.compdocs.com" target="_blank">Comp Docs</a><br> [compdocs.com] All Rights Reserved </strong></div> </div> <a href="aboutus.htm"><img src="images/index_53.gif" width=96 height=46 alt="about us link" border="0"></a><a href="biz/services.htm"><img src="images/index_54.gif" width=89 height=46 alt="services link" border="0"></a><a href="hosting1.htm"><img src="images/index_55.gif" width=90 height=46 alt="hosting link" border="0"></a><a href="design.htm"><img src="images/index_56.gif" width=78 height=46 alt="design link" border="0"></a><a href="support/support.htm"><img src="images/index_57.gif" width=114 height=46 alt="support link" border="0"></a></div></td> </tr> </table> <span class="style7"> </span><span class="style12"><span class="style11">|<a href="java script:;" onClick="MM_openBrWindow('support/partners.htm','','status=yes,scrollbars=yes,width=815,height=600')"> Partners</a> | <a href="sitemap.htm">Site Map </a>| <a href="contactus.htm">Contact Us</a> |</span> <a href="support/policy.htm" class="style11">Legal </a><span class="style11">| <a href="payment.htm"><span class="style10">Store <span class="style13">| <span class="style10">Store</span> | </span></span></a></span></span> <br> Member of <a href="http://www.michiganbusiness.us" target="_blank">Michigan Business Directory</a> <div id="Layer4" style="position:absolute; width:117px; height:62px; z-index:5; left: 69px; top: 1238px;"><img src="images/buttons/powered%20by.gif" alt="Powered by Comp Docs" width="118" height="62"></div> <div id="Layer1" style="position:absolute; width:101px; height:65px; z-index:2; left: 224px; top: 1218px;"> <div align="center" style="width:125px;"><a href="http://www.webhostingstuff.com/verified/compdocs.html" title="DM Computers Web Hosting" target="_blank"><img src="https://www.webhostingstuff.com/seal.gif" border="0" alt="Comp Docs Web Hosting"></a><br> <font style="font-size:10px;font-family:Verdana, Arial, Helvetica, sans-serif;color:#777777;">Status Verified by</font><br> <a href="http://www.webhostingstuff.com" title="We recommend affordable web hosting services by Comp Docs Web Hosting" style="font-size:10px;font-family:Verdana, Arial, Helvetica, sans-serif;color:#777777;" target="blank">Web Hosting Stuff</a></div> </div> <p> </p> <div id="Layer3" style="position:absolute; width:133px; height:78px; z-index:4; left: 544px; top: 1233px;"> <div align="center" style="width:120px;"><font style="font-size:10px;font-family:Verdana, Arial, Helvetica, sans-serif;color:#777777;">Please vote for us at</font><br> <a href="http://www.webhostingstuff.com/company/Compdocs.html" title="DM Computers Web Hosting Reviews" target="_blank"><img src="http://www.webhostingstuff.com/images/vote01.gif" border="0" alt="Comp Docs Web Hosting"></a><br> <a href="http://www.webhostingstuff.com" title="We recommend affordable web hosting services by Comp Docs Web Hosting" style="font-size:10px;font-family:Verdana, Arial, Helvetica, sans-serif;color:#777777;" target="blank">Web Hosting Stuff</a></div> </div> <div id="Layer2" style="position:absolute; width:124px; height:75px; z-index:3; left: 377px; top: 1233px;"> <div align="center" style="width:120px;"><font style="font-size:10px;font-family:Verdana, Arial, Helvetica, sans-serif;color:#777777;">Uptime Monitored by</font><br> <a href="http://www.webhostingstuff.com/uptime/Compdocs.html" title="Comp Docs Web Hosting" target="_blank"><img src="http://www.webhostingstuff.com/uptimestatus/4382.gif" border="0" alt="Comp Docs Web Hosting"></a><br> <a href="http://www.webhostingstuff.com" title="We recommend affordable web hosting services by Comp Docs Web Hosting" style="font-size:10px;font-family:Verdana, Arial, Helvetica, sans-serif;color:#777777;" target="blank">Web Hosting Stuff<br> </a></div> </div> I greatly appreciate any help I could get. Thank you Dynamiccomp
Guest Posted January 13, 2007 Posted January 13, 2007 You can edit the footer by opening the file catalog/includes/languages/english.php and browsing down to approximately line 365 and looking for define('FOOTER_TEXT_BODY', 'copyright...... The' before the copyright is where your code for the footer starts and it ends with a '); You can paste your code directly in between there after the code that already exists. Be sure to make a back up before you make any changes. You will have to upload to your server to test it because you can't see the php in design view of dreamweaver. As for the header that file can be easily edited in the file catalog/includes/header.php Good Luck! James
Recommended Posts
Archived
This topic is now archived and is closed to further replies.