Welcome Guest ( Log In | Register)



 
Reply to this topicStart new topic
> How To Edit Your "index Page", Adding new pages?
Kubi
post Jun 18 2005, 09:33 PM
Post #1


To Cool for Cache
Group Icon

Group: [MODERATOR]
Posts: 1,091
Joined: 16-June 05
From: Some Place.
Member No.: 8,317
T17 GFX Crew



This tutorial was requested by sxyloverboy.

Introduction:

sxyloverboy has asked me how to make your navigation bar on him website change to add another page, without having to do it on every page. Well, I have the answer for you!

Beginning


Assuming you have a FTP upload access, you'll be open your file "index.php"
-=Example=-

Once your "index.php" file is open press "CRTL+F" (Find) and search for something that looks like this;

CODE
                 <tr>
                               <td class="off" onmouseover="this.className='on'" onmouseout="this.className='off'"
                   width="100%" height="14" valign="top">&nbsp;
                                 <a href="#"><font color="#FF0000">Main</a></font></td>
                 </tr>


Once found, you can copy and paste it in wherever you want, say we want to add a page called "Members", this is what we need to do;

CODE
                 <tr>
                               <td class="off" onmouseover="this.className='on'" onmouseout="this.className='off'"
                   width="100%" height="14" valign="top">&nbsp;
                                 <a href="#"><font color="#FF0000">Main</a></font></td>
                 </tr>

Copy//Paste another one, like so;

CODE
                 <tr>
                               <td class="off" onmouseover="this.className='on'" onmouseout="this.className='off'"
                   width="100%" height="14" valign="top">&nbsp;
                                 <a href="#"><font color="#FF0000">Main</a></font></td>
                 </tr>
                 <tr>
                               <td class="off" onmouseover="this.className='on'" onmouseout="this.className='off'"
                   width="100%" height="14" valign="top">&nbsp;
                                 <a href="#"><font color="#FF0000">Main</a></font></td>
                 </tr>


Now you have another page! But we're not done yet! We need to change the name of the page so we don't have 2 of the same pages! Now that you have those 2 there, you need to change the second ones name, look for something in those that looks like this;

CODE
<font color="#FF0000">Main</a></font></td>


See the text that reads "Main"? Change that to whatever you want the page called, in this case "Members"

Now you should have something that looks like this;

CODE
                 <tr>
                               <td class="off" onmouseover="this.className='on'" onmouseout="this.className='off'"
                   width="100%" height="14" valign="top">&nbsp;
                                 <a href="#"><font color="#FF0000">Main</a></font></td>
                 </tr>
                 <tr>
                               <td class="off" onmouseover="this.className='on'" onmouseout="this.className='off'"
                   width="100%" height="14" valign="top">&nbsp;
                                 <a href="#"><font color="#FF0000">Members</a></font></td>
                 </tr>


And viola! You're done! How easy? But make sure, since you already have your files uploaded, you need to re-upload them into your FTP server or the changes won't take affect.

Now sxyloverguy ALSO asked me where to find some HTML tutorials! Well, I have the answer;
QUOTE
. Please note, I have written none of this, it's all written by someone else and distributed to people who need the help FREE. I claim nothing on draacs to be mine! It's a great site to learn almost anything about scripting, css, html, and java.
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic

Collapse

> Similar Topics

Topics Topics
  1. Dreamweaver Or Front Page Or Other?(108)
  2. Php Unique Hit Counter(28)
  3. Test Your Php Pages W/o Upload/internet(57)
  4. Refresh Web Page(6)
  5. Making Winrar Archives(12)
  6. Open Php Page From Another Server(7)
  7. Visual Basic 6.0 Help Needed(13)
  8. Refresh Page After Back Button Hit(11)
  9. Adding Rows & Columns In Html Table Using Javascript(1)
  10. Wap Source Code Viewer(4)
  11. Scrolling Images?(5)
  12. Error Code In Subscriptions Page(5)
  13. Adding Your Website To Google(20)
  14. Adding Shine To Text(1)
  15. Bmi (body Mass Index Calculator)(1)
  1. Create A Google Seach Result Page Embed Within Your Site Page.(12)
  2. Adding Drop Down Menus(4)
  3. Create Page?(11)
  4. Simple Javascript And Password System(6)
  5. What Is Your Home Or Start Page?(14)
  6. How To Make An Item Scroll With You On The Page.(9)
  7. How Do I Get Rid Of The Placeholder Page? [resolved](5)
  8. Page Load Error When Accessing Cpanel(0)
  9. 1350 Great Free Logos (jpg + Psd)(7)
  10. Adding Flash Music Player To Home/any Page(4)
  11. Need Help To Increase The Page Rank Of Website!(2)
  12. PHP Function To Add Previous and Next Page Feature(0)
  13. Naming Web Page Files(5)


 



- Lo-Fi Version Time is now: 25th July 2008 - 08:50 PM