MX Includes Forum :: Include file with javascript - Bizzare!!!!
This thread was displayed: 158 times
Starting with 17th May 2007, Adobe Systems will stop offering support for any version of the discontinued InterAKT products. As a result, we will not answer to new support incidents starting with May 17th, 2007. Pending support incidents will still be followed in order to be closed. The product forums will remain open and be transformed in user-to-user forums. The general forums will be made read-only and not allow new posts or comments.
For more information about the affected products visit: www.interaktonline.com/Support/
avyo
02-14-2007 14:08:02 GMT +2
|
Hi,
I include a file with a MX CSS MENU STATIC.
Page code of menu_mx.php
<div id="absLayer1">
<div id="cssMenu1" class="horizontal">
<ul class="arktic_green">
<li class="hasImg"> <a href="index.php" title="Accueil"><img src="images/menu/accueil.jpg" alt="Accueil" width="136" height="28" /></a> </li>
<li class="hasImg"> <a href="#" title="Foliopage"><img src="images/menu/foliopage.jpg" alt="Foliopage" width="130" height="28" /></a>
<ul>
<li> <a href="#" title="A propos">A propos</a> </li>
<li> <a href="#" title="Le concept">Le concept</a> </li>
<li> <a href="#" title="Actualités">Actualités</a> </li>
<li> <a href="#" title="Nos partenaires">Nos partenaires</a> </li>
</ul>
</li>
<li class="hasImg"> <a href="#" title="Services"><img src="images/menu/services.jpg" alt="Services" width="134" height="28" /></a>
<ul>
<li> <a href="#" title="Fonctionnement">Fonctionnement</a> </li>
<li> <a href="#" title="Politique qualité">Politique qualité</a> </li>
<li> <a href="#" title="Devenir Prestataire">Devenir Prestataire</a> </li>
<li> <a href="#" title="Devenir Client">Devenir Client</a> </li>
<li> <a href="#" title="Visite guidée">Visite guidée</a> </li>
<li> <a href="#" title="Etudes de cas">Etudes de cas</a> </li>
<li> <a href="#" title="Questions fréquentes">Questions fréquentes</a> </li>
</ul>
</li>
<li class="hasImg"> <a href="#" title="Transactions"><img src="images/menu/transactions.jpg" alt="Transactions" width="133" height="28" /></a> </li>
<li class="hasImg"> <a href="#" title="Expertises"><img src="images/menu/expertises.jpg" alt="Expertises" width="132" height="28" /></a> </li>
<li class="hasImg"> <a href="#" title="Acces"><img src="images/menu/acces.jpg" alt="Acces" width="130" height="28" /></a> </li>
<li class="hasImg"> <a href="#" title="Contact"><img src="images/menu/contact.jpg" alt="Contact" width="135" height="28" /></a> </li>
</ul>
<br />
<script type="text/javascript">
View full message
|
|
|
Razvan Racasanu[InterAKT]
02-14-2007 15:02:17 GMT +2
|
Hello,
If you are using MX Includes, the page you include must be a proper HTML page, which menas that is must contain all HTML elements(HTML, HEAD, BODY) and must be valid. You need to make sure that all these elements are present.
Regards,
Razvan RACASANU
|
|
|
avyo
02-14-2007 16:14:39 GMT +2
|
Thanks for your help.
If I use HTML / BODY tags in include file, the CCS style for example are displaying in body tag of the main page (where the file is include) Idem for javascript contained in head section.
In the file include : could I place CCS and SCRIPT in HEAD SECTION ?
Thanks,
AVYO
|
|
|
Razvan Racasanu[InterAKT]
02-14-2007 16:16:27 GMT +2
|
Hello,
Both the CSS and the JavaScrip must be where it has been generated. It is not recommended to change the location. Can you attach the 2 files?
Regards,
Razvan RACASANU
|
|
|
avyo
02-14-2007 16:35:22 GMT +2
|
The code of menu.php (include file)
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <?php //PHP ADODB document - made with PHAkt 3.7.1?> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>Untitled Document</title> <meta http-equiv="Content-Type" c> </head> <body> <div id="absLayer1"> <div id="cssMenu1" class="horizontal"> <ul class="arktic_green"> <li class="hasImg"> <a href="index.php" title="Accueil"><img src="images/menu/accueil.jpg" alt="Accueil" width="136" height="28" /></a> </li> <li class="hasImg"> <a href="#" title="Foliopage"><img src="images/menu/foliopage.jpg" alt="Foliopage" width="130" height="28" /></a> <ul> <li> <a href="#" title="A propos">A propos</a> </li> <li> <a href="#" title="Le concept">Le concept</a> </li> <li> <a href="#" title="Actualités">Actualités</a> </li> <li> <a href="#" title="Nos partenaires">Nos partenaires</a> </li> </ul> </li> <li class="hasImg"> <a href="#" title="Services"><img src="images/menu/services.jpg" alt="Services" width="134" height="28" /></a> <ul> <li> <a href="#" title="Fonctionnement">Fonctionnement</a> </li> <li> <a href="#" title="Politique qualité">Politique qualité</a> </li> <li> <a href="#" title="Devenir Prestataire">Devenir Prestataire</a> </li> <li&g
View full message
|
|
|
avyo
02-14-2007 16:40:13 GMT +2
|
If I insert a CSS MENU STATIC in a page : menu.php for example.
This page is included in main.php.
In the source code (in browser), the .js file et .css files link are displaying not in <HEAD> section of main.php but in <BODY> section
<body>
------------------------------------------------------------------------------
<script src="includes/cssmenus2/js/animation.js" type="text/javascript"></script> <script src="includes/cssmenus2/js/cssmenus.js" type="text/javascript"></script> <link href="includes/cssmenus2/skins/arktic_green/horizontal.css" rel="stylesheet" type="text/css" />
------------------------------------------------------------------------------
</body>
AVYO
|
|
|
Razvan Racasanu[InterAKT]
02-15-2007 14:55:12 GMT +2
|
Hello,
Please make an archive of menu.php and main.php and attach it to a reply on this thread.
Regards, Razvan RACASANU
|
|
|