HTML Tutorial


 Forum HomeForum Home   FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
RegisterRegister - Not registered yet? Got something to say? Join HTML Code Tutorial!
Problem with how to do SSI for a menu
Post new topic   Reply to topic    HTML Help Forum Index -> SSI
View previous topic :: View next topic  
Author Message
LadyGem



Joined: 16 Apr 2006
Posts: 6

PostPosted: Sun Apr 16, 2006 11:32 am     Problem with how to do SSI for a menu Reply with quote

Hi Gang,
Yes I know it's Easter Sunday and I hope you are all having a good one.
I am trying to get a menu to appear in a certain place on a page and something I am doing is incorrect.
Here is the code and I have marked the spot where I am trying to include the menu.
In case you need more info here are links to the relative documents.
The sample page is at
http://www.lady-gem.com/index-2.html

http://www.lady-gem.com/css/fpro-main.css

http://www.lady-gem.com/css/anylink.css

http://www.lady-gem.com/anylink.js

http://www.lady-gem.com/menu.shtml

<table class="one" align="center" cellspacing="2" border="0">
<tr>
<td valign="top">
<table align="center" cellspacing="0" cellpadding="0" bgcolor="#ffffff" border="0" width="700">
<tr>
<td valign="top">
<table class="three" cellspacing="0" cellpadding="0" border="0" width="700">
<tr>
<td align="center">
<img src="images/truck2.jpg" width="700" height="250" alt="truck2">
</td>
</tr>
</table>
<table cellspacing="0" cellpadding="0" border="0" width="700">
<tr>

<td width="700" bgcolor="#FFC96A" align="center">
<table align="center" cellspacing="1" bgcolor="#FFC96A" border="0">
<tr>
<td bgcolor="#FFC96A" align="center"><!--#echo var="menu.shtml" --></td>
</tr>
</table>
Any help greatly appreciated.

LG
Corey Bryant



Joined: 15 May 2004
Posts: 8154
Location: Castle Rock CO USA

PostPosted: Sun Apr 16, 2006 11:36 am     Reply with quote

Hm, what do you think you are doing incorrectly?

If http://www.lady-gem.com/index-2.html is the page that you want your menu to be included on, it needs to be http://www.lady-gem.com/index-2.shtml and your menu can be named with the extensions of shtml or html or htm or maybe even inc or txt

_________________
Corey
Loud Commerce | Loud Worx | Merchant Account Blog
LadyGem



Joined: 16 Apr 2006
Posts: 6

PostPosted: Sun Apr 16, 2006 12:13 pm     Problem with how to do SSI for a menu Reply with quote

Hi Corey,
I saved the html as .shtml but the menu still does not show up. However the word NONE does LOL. So there is still a problem somewhere for the menu not to show up in the spot where the word none now appears. Since I am new to this and only found info on the Internet I need help still.
Thank you for your answer and it did at least make something show up see.
http://www.lady-gem.com/index-2.shtml
LG
Corey Bryant



Joined: 15 May 2004
Posts: 8154
Location: Castle Rock CO USA

PostPosted: Sun Apr 16, 2006 12:28 pm     Reply with quote

First in your menu.shtml, keep in mind that you only want <body> html. You have the entire web page
Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

<html>
<head>
   <title></title>
   <link rel="stylesheet" href="css/fpro-main.css" type="text/css">
<link rel="stylesheet" href="css/anylink.css" type="text/css">
</head>

<body>
<table cellspacing="0" cellpadding="0" border="0" width="700">
<tr>
<td width="700" bgcolor="#ffffff" align="center">
<table align="center" cellspacing="1" bgcolor="#000000" border="0">
<tr>
<td class="nav" width="125" align="center">
<!--1st anchor link and menu -->
<a href="http://www.fisherproductionsonline.com" onClick="return clickreturnvalue()" onMouseover="dropdownmenu(this, event, 'anylinkmenu1')">SITE MAP</a>
<div id="anylinkmenu1" class="anylinkcss">
<a href="">Home</a>
<a href="">About Us</a>
<a href="">Off-site Links</a>
</div>
</td>

<td class="nav" width="125" align="center">
<!-- 2nd anchor link and menu -->
<a href="http://www.fisherproductionsonline.com" onClick="return clickreturnvalue()" onMouseover="dropdownmenu(this, event, 'anylinkmenu2')">DRAG RACES</a>
<div id="anylinkmenu2" class="anylinkcss">
<a href="spring-open/index.html">Spring Open</a>
<a href="march-et/index.html">March ET Points</a>
<a href="truck-showgo/index.html">Truck Show N Go</a>
<a href="mopar-madness/index.html">Mopar Madness</a>
</div>
</td>

<td class="nav" width="145" align="center">
<!-- 3rd anchor link and menu -->
<a href="http://www.fisherproductionsonline.com" onClick="return clickreturnvalue()" onMouseover="dropdownmenu(this, event, 'anylinkmenu3')">MUD BOGS</a>
<div id="anylinkmenu3" class="anylinkcss">
<a href="mud-bogs/march-06/index.html">March 06</a>
<a href="">---</a>
<a href="">---</a>
<a href="">---</a>
</div>
</td>

<td class="nav" width="145" align="center">
<!-- 4th anchor link and menu -->
<a href="http://www.fisherproductionsonline.com" onClick="return clickreturnvalue()" onMouseover="dropdownmenu(this, event, 'anylinkmenu4')">GALLERIES</a>
<div id="anylinkmenu4" class="anylinkcss">
<a href="portrait-gallery/index.html">Portrait Gallery</a>
<a href="misc-gallery/index.html">Miscellaneous</a>
</div>
</td>

<td class="nav" width="125" align="center">
<!-- 5th anchor link and menu -->
<a href="http://www.fisherproductionsonline.com" onClick="return clickreturnvalue()" onMouseover="dropdownmenu(this, event, 'anylinkmenu5')">ORDER INFO</a>
<div id="anylinkmenu5" class="anylinkcss">
<a href="ordervamotorpk.html">Drag Race Orders</a>
<a href="ordervalift.html">Mud Bog Orders</a>
</div>
</td>

<td class="nav" width="125" align="center">
<!-- 6th anchor link and menu -->
<a href="http://www.fisherproductionsonline.com" onClick="return clickreturnvalue()" onMouseover="dropdownmenu(this, event, 'anylinkmenu6')">CONTACT US</a>
<div id="anylinkmenu6" class="anylinkcss">
<a href="">Email Us</a>
</div>
</td>
</tr>
</table>


</body>
</html>
while it should only be
Code:
<table cellspacing="0" cellpadding="0" border="0" width="700">
<tr>
<td width="700" bgcolor="#ffffff" align="center">
<table align="center" cellspacing="1" bgcolor="#000000" border="0">
<tr>
<td class="nav" width="125" align="center">
<!--1st anchor link and menu -->
<a href="http://www.fisherproductionsonline.com" onClick="return clickreturnvalue()" onMouseover="dropdownmenu(this, event, 'anylinkmenu1')">SITE MAP</a>
<div id="anylinkmenu1" class="anylinkcss">
<a href="">Home</a>
<a href="">About Us</a>
<a href="">Off-site Links</a>
</div>
</td>

<td class="nav" width="125" align="center">
<!-- 2nd anchor link and menu -->
<a href="http://www.fisherproductionsonline.com" onClick="return clickreturnvalue()" onMouseover="dropdownmenu(this, event, 'anylinkmenu2')">DRAG RACES</a>
<div id="anylinkmenu2" class="anylinkcss">
<a href="spring-open/index.html">Spring Open</a>
<a href="march-et/index.html">March ET Points</a>
<a href="truck-showgo/index.html">Truck Show N Go</a>
<a href="mopar-madness/index.html">Mopar Madness</a>
</div>
</td>

<td class="nav" width="145" align="center">
<!-- 3rd anchor link and menu -->
<a href="http://www.fisherproductionsonline.com" onClick="return clickreturnvalue()" onMouseover="dropdownmenu(this, event, 'anylinkmenu3')">MUD BOGS</a>
<div id="anylinkmenu3" class="anylinkcss">
<a href="mud-bogs/march-06/index.html">March 06</a>
<a href="">---</a>
<a href="">---</a>
<a href="">---</a>
</div>
</td>

<td class="nav" width="145" align="center">
<!-- 4th anchor link and menu -->
<a href="http://www.fisherproductionsonline.com" onClick="return clickreturnvalue()" onMouseover="dropdownmenu(this, event, 'anylinkmenu4')">GALLERIES</a>
<div id="anylinkmenu4" class="anylinkcss">
<a href="portrait-gallery/index.html">Portrait Gallery</a>
<a href="misc-gallery/index.html">Miscellaneous</a>
</div>
</td>

<td class="nav" width="125" align="center">
<!-- 5th anchor link and menu -->
<a href="http://www.fisherproductionsonline.com" onClick="return clickreturnvalue()" onMouseover="dropdownmenu(this, event, 'anylinkmenu5')">ORDER INFO</a>
<div id="anylinkmenu5" class="anylinkcss">
<a href="ordervamotorpk.html">Drag Race Orders</a>
<a href="ordervalift.html">Mud Bog Orders</a>
</div>
</td>

<td class="nav" width="125" align="center">
<!-- 6th anchor link and menu -->
<a href="http://www.fisherproductionsonline.com" onClick="return clickreturnvalue()" onMouseover="dropdownmenu(this, event, 'anylinkmenu6')">CONTACT US</a>
<div id="anylinkmenu6" class="anylinkcss">
<a href="">Email Us</a>
</div>
</td>
</tr>
</table>

Since the server parses the file - what code are you using to include menu.shtml into your index-2.shtml file?

_________________
Corey
Loud Commerce |
Loud Worx | Loud Ads
LadyGem



Joined: 16 Apr 2006
Posts: 6

PostPosted: Sun Apr 16, 2006 12:58 pm     Problem with how to do SSI for a menu Reply with quote

Hi Corey,
Well I tried your suggestion and now it looks worse than ever. You can't see anything no images, background, nothing except a perverted version of the menu. Here is what I am using for the include.
<!--#include file="menu.shtml" -->

This is driving me nuts.

LG
Corey Bryant



Joined: 15 May 2004
Posts: 8154
Location: Castle Rock CO USA

PostPosted: Sun Apr 16, 2006 1:24 pm     Reply with quote

You have
Code:
<style type="text/css">
html {
scrollbar-face-color: #882222;
scrollbar-highlight-color: #000;
scrollbar-3dlight-color: #fff;
scrollbar-shadow-color: #888;
scrollbar-darkshadow-color: #444;
scrollbar-arrow-color: #882222;
scrollbar-track-color: #000;
}
</style>
<style type="text/css">
html {
scrollbar-face-color: #882222;
scrollbar-highlight-color: #000;
scrollbar-3dlight-color: #fff;
scrollbar-shadow-color: #888;
scrollbar-darkshadow-color: #444;
scrollbar-arrow-color: #882222;
scrollbar-track-color: #000;
}
</style>
twice also for some reason.

I also see
Code:
<!--#echo var="menu.shtml" --><
in your code. Not
Code:
<!--#include file="menu.shtml" -->


In regards to your images - try using virtual links.


_________________
Corey
Loud Commerce | Loud Worx | Merchant Account Blog
LadyGem



Joined: 16 Apr 2006
Posts: 6

PostPosted: Sun Apr 16, 2006 2:09 pm     Problem with how to do SSI for a menu Reply with quote

Hi Again Corey,
Yes I had changed it but have changed it back again to
<!--#include file="menu.shtml" -->
and also the extra html { for the scroll bars is now just one.

This is what I see when I open the page.
http://www.lady-gem.com/my-page.html

and it looks terrible. Yes I have emptyed my cache several times love. I don't know why but I am unable to see the image I have put up for you to look at so you see what I see, all I am seeing is my words saying my page looks like crap LOL. I know the code is correct.

LG
Corey Bryant



Joined: 15 May 2004
Posts: 8154
Location: Castle Rock CO USA

PostPosted: Sun Apr 16, 2006 2:30 pm     Reply with quote

Did you take a screen shot and is that what you are trying to show me? Or are you trying to show me the image is not showing up?

Are you putting all your images in the web root or the images folder?

_________________
Corey
Loud Commerce | Loud Worx | Merchant Account Blog
LadyGem



Joined: 16 Apr 2006
Posts: 6

PostPosted: Sun Apr 16, 2006 5:11 pm     Problem with how to do SSI for a menu Reply with quote

Hi Corey,
I was trying to show you an image of what I see when I open the index-2.shtml page. None of the images are showing up and yes they are all in an images folder. I see them when I view the page on my computer when I write the code but not once everything is uploaded. For now I am off to bed I have been at this far to long for today and it's given me a monster of a head ache.

Thanx for trying to help me love.

LG
Corey Bryant



Joined: 15 May 2004
Posts: 8154
Location: Castle Rock CO USA

PostPosted: Mon Apr 17, 2006 3:02 am     Reply with quote

How about this - what would be the correct path to the image? Have you tried typing it into the browser to see what is happening? It seems the path / case is incorrect

_________________
Corey
Loud Commerce |
Loud Worx | Loud Ads
LadyGem



Joined: 16 Apr 2006
Posts: 6

PostPosted: Mon Apr 17, 2006 6:27 am     Problem with how to do SSI for a menu Reply with quote

Hello Corey,
Here is what I get when I type the url for the image I was trying to show you.
Forbidden
You don't have permission to access /images/my-page.jpg on this server.

I am really stumped this time.

LG

Have edited this post myself.
Corey the problem has been fixed love. It was the .htacess file that was causing the problems. Thank you for all your help it is now working just fine.

LG
Corey Bryant



Joined: 15 May 2004
Posts: 8154
Location: Castle Rock CO USA

PostPosted: Mon Apr 17, 2006 8:26 am     Reply with quote

Glad to hear it. I work on Windows servers so I tend to forget about the htaccess file. But I knew something had to be wrong - since your code seemed to be correct Smile

_________________
Corey
Loud Commerce | Loud Worx | Toll Free Solutions
Display posts from previous:   
Post new topic   Reply to topic    HTML Help Forum Index -> SSI All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
HTML Help Archive
Powered by phpBB © 2001, 2005 phpBB Group
 
HOSTING / DESIGN
MAKE MONEY

Home
  |   Tutorials   |   Forum   |   Quick List   |   About
Copyright ©1997-2002 Idocs and ©2002-2007 HTML Code Tutorial