Reply
menu error
Old 04-17-2006, 06:20 PM menu error
Average Talker

Posts: 18
I have this page
http://www.troublefreetraveladvisor.com/websitedel.php

It opens up and displays good in Firefox & IE.

But for some reason, in dreamweaver(what i used to edit code etc) its display its not the same as when uploaded.

I use two Menu's and use Include to add them to my pages
left menu - menu.inc
right menu - menu2.inc

If i change menu2.inc to menu.inc it displays the entire site fine, i solved this earlier today but i must have undone something and its come backagain.

Code:
<div id="menu">
     <?php include("menu.inc"); ?>
 
    </div>
</div>
 
 
    <div id="right"><br />
<?php include("menu2.inc"); ?>
 
</div><br />


The last closed Div command is highlighted in red and on my page in Design view have - untitled document </head> in yellow highlight, but none of it on the uploaded page where it all looks perfect lol

Can anyone explain this ?
leeutalkin2me is offline
Reply With Quote
View Public Profile
 
When You Register, These Ads Go Away!
Old 04-17-2006, 06:38 PM Re: menu error
cdwhalley.com's Avatar
Skilled Talker

Posts: 75
From my experience, Dreamweaver mucks up .inc files by insisting on sticking tags in them that don't fit in the finished output.
I would recommend using notepad for the .inc files.
cdwhalley.com is offline
Reply With Quote
View Public Profile Visit cdwhalley.com's homepage!
 
Old 04-17-2006, 06:43 PM Re: menu error
Average Talker

Posts: 18
ok i will look into those files.

anythin that normally crops up in them that i should specifically remove
leeutalkin2me is offline
Reply With Quote
View Public Profile
 
Old 04-17-2006, 06:56 PM Re: menu error
daddy2five's Avatar
Skilled Talker

Posts: 77
Name: Daniel
Location: Stony Point , Noth Carolina
How about using Browser-spcific code. If you use the
preg_match(), $_SERVER[ HTTP_USER_AGENT] enviroment veriable you can discern the specific attributes of the browser accessing your page and display the code for that browser.
PHP Code:
<?php
if (preg_match("/MSIE/i" "$_SERVER[HTTP_USER_AGENT]')) {
echo " 
<LINK REV="stylesheet\" HREF=\"msie_style.css\">.";
} else if (
preg_match("/Mozilla/i" "$_SERVER[HTTP_USER_AGENT]')) {
echo " 
<LINK REV="stylesheet\" HREF=\"ns_style.css\">.";
}  else 
echo 
" <LINK REV=\"stylesheet\" HREF=\"other_style.css\">.";
}
?>
Hope this helps.
__________________
What is Yuwie?
Click here to find out

Last edited by daddy2five : 04-17-2006 at 10:29 PM.
daddy2five is offline
Reply With Quote
View Public Profile Visit daddy2five's homepage!
 
Old 04-17-2006, 06:58 PM Re: menu error
cdwhalley.com's Avatar
Skilled Talker

Posts: 75
Quote:
Originally Posted by leeutalkin2me
ok i will look into those files.

anythin that normally crops up in them that i should specifically remove
Well, normally if you look at the source code of a page that has been created with .incs made with DreamWeaver there are <BODY> and <HEAD> and <STYLE> tags all over the place.
Just have a go looking through your files in Notepad and see if everything is where it should be.
cdwhalley.com is offline
Reply With Quote
View Public Profile Visit cdwhalley.com's homepage!
 
Old 04-17-2006, 07:05 PM Re: menu error
Average Talker

Posts: 18
yikes, what the hell was that daddy2five lol
leeutalkin2me is offline
Reply With Quote
View Public Profile
 
Old 04-17-2006, 10:28 PM Re: menu error
daddy2five's Avatar
Skilled Talker

Posts: 77
Name: Daniel
Location: Stony Point , Noth Carolina
It's just sample code. Im new at this so please, if im way off base here let be know what can be done. I'm just trying to help. Im at work trying to remember this code off the top of my head, i know it has errors but do you get what im trying to do here?
__________________
What is Yuwie?
Click here to find out

Last edited by daddy2five : 04-17-2006 at 10:56 PM.
daddy2five is offline
Reply With Quote
View Public Profile Visit daddy2five's homepage!
 
Reply     « Reply to menu error
 

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


Webmaster Resources Marketplace:
Software Development Company | Webhosting.UK.com | Text Link Brokers 


   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 


Page generated in 0.13062 seconds with 12 queries