Including the HTML from a file

I don't know there is a more elegant way to do it, so if anyone has any suggestions, I'd be happy to hear. I have a sliding menu made with ypSlideOutMenu, and I have a lot of links loading different web pages in the menu. I don't use frames or anything, so I have the same code in each of my 15 html pages so that it looks the same. It is a very redundant way of doing things, so I want to add a submenu or something, I need to change all the 15 web pages so that they are the same.

A more viable solution for this would be to have each of my Web pages linking to an external html file which contained the code to generate my navigation menu, as well as menus button etc. This way I could edit a single file instead of 15. I thought it would be easy to do, like when you bind a javascript file to include the actual code, or a CSS file instead. The only problem is that I don't know how to have just the Web page to load external html code into a Web page, and have this code to be executed as if it were on the Web page. I tried SSI and php, but I'm not really sure what I'm doing when I use these. Should I use a CSS file, or is there another way to do this? Thanks in advance.

jeffch wrote:
> For some reason I still can't make it work. I don't know if that's a problem
> trying to bind a file php from my index.html file or if I should have all my
> files .html as the .php files. I haven't worked much with php and I do not know
> what makes it different than .html, apart from the fact that you need it for the forums
> and when data are presented on a Web page. The code in menu.inc is simply:

Just change the extension name of index.html to index.php

Tags: Dreamweaver

Similar Questions

  • Using the HTML from Photoshop file in Dreamweaver (was: Help...) Newbie here)

    Hello

    I am new to dreamweaver. I know a little Photoshop and wanted to create a simple website using photoshop and dreamweaver. I created a page layout and decided on different parts and when registering in the web, it creates a set of image files and an html file.

    Now, when I placed this html file in dreamweaver, all wrong just like I created in photoshop, but when I tried to place a SWF on an image that has been decided on the Photoshop, the other images (slices on photshop) get scrambled in dreamweaver. I tried everything but I can't understand how place an object even while placing text on an image, the whole layout file gets blurred.

    Any help please. I want to place a swf file and also write a 'radio player' section above the SWF on an image in dreamweaver.

    Thank you

    Photoshop design slicing will give output you 'image' - it's a very bad habit. You should only cut design elements & use CSS in a Web page.

    I would recommend you take some time and go through the tutorial before you continue working - http://net.tutsplus.com/articles/news/slice-and-dice-that-psd/

    This will give you a quick overview of how you can recreate the PSD using CSS design for creating a site 'good '.

  • The subscription Plan does Adobe Stock includes the use of video files and photos?

    The monthly package of stock Adobe includes the use of video files or do you pay in addition to authorize video files?

    The videos are distinct from $79 per video. They are not included in the subscription.

  • Code snippets don't appears in the html Robohelp 10 files

    Hello

    I'm trying to insert an excerpt (I tried adding new and using existing ones) in a subject.

    The code snippet displays in the Editor pane and also in the output pdf control and in the subject preview pane.

    However when I opened the HTML directly from windows Explorer, the code snippet does not appear. One of my outings use these html files and I'm eager to make the most of the functionality of the code snippet.

    Any tips?

    Thank you

    Caroline

    Hello

    When you insert a snippet, which you're really insert is a code in the HTML code that looks like this:

    This code will have to be dealt with during the build process to insert the actual information extracted.

    RoboHelp is not similar to other editors HTML in that you simply edit can be used immediately. Working with RoboHelp projects is similar to the use of ingredients to prepare a dish. You will need to cook the dough biscuits to have cookies!

    See you soon... Rick

  • the classpath from a file or mainClass outdoor pot?

    Hello

    I need launch a new JVM.

    To do my production code (-) choose a certain pot and starts a class inside. The name of this class is not fixed. The selected jar has other jars in his part of the manifesto of class path.

    For my tests, I want to replace my red jars of the main pot with folders target of compilation of my Eclipse projects that make up my application.

    It's pretty easy to get this files because I configured the project Starter depend on other projects from my application so that they are available via the System.getProperty ("java.class.path"). But eclipse creates the absolute path in there. The result is that I can't use the output of System.getProperty ("java.class.path") as a command line parameter, it's just for a long time.

    I tried to put the path of class in a jar of tempoarry, but it looks like that the class path is not added to the trace from the class when i is simply added as another classpath how entry line in pots. On the other hand I can't run this tempoarry jar file by - option pot because the main class cannot be found if it is not located in the temporary jar...

    [edit]

    Meanwhile, I found that the main problem is not so much other projects but the 3rd party libs that eclipse returns them in their maven repository location. They blow up my classpath. I tried to convert their paths to parent, but this does not change that much...

  • include the HTML code and COMPONENTS of the ADF

    I used Corel PHOTO-PAINT 12.0 to generate a web menu and I want to include in my project in a jspx page.
    When I paste the code of < table >... < / table > tags < af:form > < / af:form > a mess to the page in the browser.

    But if I only use html page looks in good condition. I need you use the HTML for the menu and I need use adf compont to display another given.


    my version of JV is 11.1.1.6.0

    Hello

    try to put your HTML inside cdata like this

    Google
    ]]>
    

    Kind regards

  • Reoading updated the text (from web) file

    I have a project that captures the text from a text file I have on my server. The code I use is at the bottom of this post...

    I have an empty cast member called "ClientListImport" and the script works great! - but the problem I have is when I update the text on the server (via a PHP script), the project manager does not update unless I left the projector and the re-launch. I tried to re - run the importFileInto script in the projector, but it won't pull in the new values.

    It's almost as if the text file is cached, or re - run the command is simply ignored for some reason any. How can I get Director to import the text updated on my server? I have to purge the first original text file? The code can be run one time?

    Any help would be appreciated.
    Thank you!
    ------

    Here is the code I use to insert the text file in my "ClientListImport": cast member

    > tempURL = getNetText (" http://www.MYWEBSITE.com/ClientListImport.txt")

    New: you need to add a fake query string so that the Director does not use
    a version cached

    netID = getNetText (" http://www.MYWEBSITE.com/ClientListImport.txt?id=" &)
    the milliseconds)

    > If netDone (netID) then
    > member("ClientListImport").text = netTextResult (netID)
    > end if

    Be aware that you must run a loop on a frame netDone expects to return
    Property to TRUE before accessing the netTextResult(). It is possible it is a 'failure '.
    for you because you jump right in front of the netDone because netTextResult is
    SET TO FALSE.

    -script #movie:
    global gNetID

    on prepareMovie
    tURL = "" http://www.MYWEBSITE.com/ClientListImport.txt?id= " "
    tURL = tURL & string (milliseconds)
    gNetID = getNetText (tURL)
    end

    on enterFrame
    If netDone (gNetID) then
    If netError (gNetID) = 'OK' then
    Member ("ClientListImport"). Text = netTextResult (gNetID)
    -spread regardless of other changes are necessary
    on the other
    alert ' text file read error: "& netError (gNetID)
    end if
    end if
    end

  • Remove the HTML from a string

    I have some data which are recorded by a rich text editor, but I need to display it in a datagrid without HTML tags.

    Someone at - it a regular expression for the elimination of all of the HTML in a string?

    Y at - it another way to do this in flex.

    Thank you

    Nevermind I found it. In case anyone is interested.

    [var myPattern: RegExp = /<[^>] * > / g
    txt = txt.replace(myPattern,"")

  • With the help of iTunes. How do I do the MP3 from mp4 files - using cds?

    I had a cd I had ripped off music too - initially in iTunes mp4 files.

    I put this cd in my computer and iTunes asked to import the files in.   He said that she already had these files, and I would like to replace them...   I said yes.

    I was hoping that the origianl mp4 files would be replaced by MP3s from my cd - but it wasn't the case.   When I looked in my iTunes folder, to copy them to my sansa, replacement/new files were still all mp4s.

    Currently, in iTunes, if I'm going in Edition > Preferences > import music... the frame is AAC Encoder.   If I change it to MP3 encoder, will be future air imported as MP3 files?  Or should I do something else?

    Advice would be much appreciated...

    Poppy says:

    I had a cd I had ripped off music too - initially in iTunes mp4 files.

    I put this cd in my computer and iTunes asked to import the files in.   He said that she already had these files, and I would like to replace them...   I said yes.

    I was hoping that the origianl mp4 files would be replaced by MP3s from my cd - but it wasn't the case.   When I looked in my iTunes folder, to copy them to my sansa, replacement/new files were still all mp4s.

    Currently, in iTunes, if I'm going in Edition > Preferences > import music... the setting is AAC Encoder.   If I change it to MP3 encoder, will be future air imported as MP3 files? Or should I do something else?

    Advice would be much appreciated...

    I think it's okay from there, they will be imported as MP3 files.

  • Move all Lightroom, including the camera from one PC to the other data.

    I need to move all the files in Lightroom and camera raw from this PC to a new and don't know how to do it correctly. I did a general export of pictures on a USB key, but notice that only jpeg files have been transferred. Can someone explain the correct way to transfer all the data files. In addition, this PC is running W7 and the new PC is W8. Do I need to know to make the transition seamless? Thanks in advance for the help.

    Gary

    http://TV.Adobe.com/watch/the-complete-picture-with-Julieanne-Kost/how-to-migrate-LR-to-an other-computer.

  • How to use the command-line ADT to build an app, iOS, including the ActionScript native extension file

    Hi all

    I have packaged ANE files in my iOS app. I can export their version don't build via FB, no problem.

    But how can I include these DONKEY by ADT command line files? I do like the other files in the library?

    Thanks in advance for any help.

    I was stupid who did not find the proper syntax.

    extdir - extensionsDir will do the trick.

  • Target the movieclip from a file of class AS3 - remove/add child

    Halo.

    I have a very simple question (for those who use external class files).

    Assuming that I have a MovieClip that is manually added to the stadium and I want to access it from the inside of my definition of the class.

    Thus, the code would be:

    MovieClip (root). MyMovieClip

    But I can't understand how to use remove/add child in this kind of situation.

    I'd appreciate advice.

    Thank you

    If you can reference using them, you can remove it using:

    MovieClip (root). MyMovieClip.parent.removeChild (MovieClip (root). MyMovieClip);

    and you can add to any displayobjectcontainer.

  • Remove # and clear the line from txt files

    Hello

    I have problem with my program.

    I need to remove the empy lines in my txt file.

    This is file look like:

    # Standard capacitance data file
    # Model capacity: parallel (K = 3.0)
    # Created by: ECT32v2 for Beta2.25 of Win32 (July 10, 2003 01:54:24)
    # Source: rec_flow_f45_v800_n2.bcp
    # Description: contents of the buffer to capture mode
    # Date: 12:04:43 GMT standard time, 29 March 04
    # Electrodes = 8, measures = 28
    # Data for plan 1

    # 1 frame (0 msec)
    0.006-0,001-0.004-0, 002 - 0.028-0.031-0,002
    -0.008-0, 005 - 0.007 - 0.024 0.005 0.004
    -0.014-0, 002 - 0.011-0.004 0.002
    -0.008 - 0.003 - 0.004 0.003
    -0.011 0.001 0.002
    0.005 0.004
    0,008

    # structure 2 (10 ms)
    -0.002 0, 005 - 0.008 0.006-0,002 0,023 0.011
    -0.008-0.004 - 0.004 - 0.003 0.010 0.001
    -0.007-0,001-0,012 0.007 0,008
    -0.015-0.004 0.002 0.001
    -0.007-0,002 0.001
    -0.002 0,008
    0.005

    I want to remove all empty lines, lines containing ' # '.

    I try as an attachment, but it does not work.

    How can I do this?

    Regads,
    Sorry for my English

    Ben Merci for example. Somehow, I missed the framework which enabled search expresion. Your example has sent me to the help files to understand. I have modified my first code for the show method, I hope I have the correct explanation. Not trying to do someones homework for them, but for those who need a quick start, maybe this will help someone else along the way.

  • Remove the string from txt file

    I have a .txt file (see table) I use the spreadsheet for the array function to retrieve the data I need. I am trying to extract over time of Inspection and the number doubles alongside that separately, but I have a problem with the delimiter. The .txt file will still not of this size, but the 1st and the last line will be the same


  • What happened to the audio from .mov files in Windows Live Movie Maker?

    I'm running on Windows Vista Edition family 64-bit.  Recently, I downloaded Windows Live Movie Maker and have been playing with it.  Can I import my camera Kodak .mov files.  However, when I saw or save the movie, there is no audio or the audio has been accelerated so fast, you won't hear scratching noises.  Other videos work properly.  It's just the .mov files.  Can I do to solve this problem?

    Hi all

    Given that the program that you are having a problem with is Windows Live Movie Maker, you will need to contact Windows Live Help for support.
    Click here for a link to the message in the Windows Live Help for Movie Maker community.

    They should be able to give a better answer, or you can consult the questions and see if your question has already been answered.

    Sincerely,
    Marilyn
    Microsoft Answers Support Engineer
    Visit our Microsoft answers feedback Forum and let us know what you think

Maybe you are looking for

  • A little help please with a formula

    I am new to spreadsheets, so my knowledge is VERY limited. However, I did my first spreadsheet in numbers for a construction project and I'm starting to see how powerful and useful it can be. In my list of expenses, I have sometimes recurring element

  • Store TV 2 to - HDD not recognized in Windows 7

    My camera 2 TB store TV is no longer recognized by Windows 7. I went into Device Manager and the device is listed as "Unknown".So, in the device Mgr I uninstalled / reinstalled but still no joy. I think that the problem is a corrupted driver. I searc

  • How to move toward the front of the indicator chart of selected waveform

    Hello. I would like to put a number of indicators on the front (that's about 20 small flags or mauby more). When the user select one of them, the indicator is resized to the entire façade. The problem is that a number of small indicators appears as o

  • Windows 7 folder with the files disappeared - not in the Recycle bin - where?

    Hello While in Windows and playing music with WMP, I wanted to rename the folder where the current files of music played. He says that the folder is busy with something. I closed WMP and tried to rename it, he still repeated the record is held by ano

  • Computer restart and display BSoD error constantly

    My computer restarts and gives me a blue screen error message. Minidump: https://SkyDrive.live.com/redir?RESID=27EED93B82BAB133! 120 & authkey =! AFPe1f7a4LP64IA