Jump to content

Beareater

Members
  • Content Count

    5
  • Joined

  • Last visited

Community Reputation

0 Neutral

About Beareater

  • Rank
    Newbie
  1. ok, ok. I found where it says to download the "w3-include-HTML.js" I just dont know where to put it... i tried putting it in <head></head> on the main page (the one calling for the list) and I also tried saving it as its own file saved under the name above in the same directory. no luck..
  2. <script src="w3-include-HTML.js"></script> It must have something to do with this line... i have no "w3-include-HTML.js" file
  3. ok..I found a solution on this schools website http://www.w3schools.com/howto/howto_html_include.asp <!DOCTYPE html> <html> <body> <div w3-include-html="content.html"></div> <script src="w3-include-HTML.js"></script> </body> </html> The only problem is...i can copy this exact code (above) and save it in an .html file on my pc (to test it) and it does not work. It works great on the website test panel and is exactly what I need to be able to insert a list that I dont need to edit on every page. I even save this (below) in a seperate content.html file in the same directory. <a href="howto_google_maps.asp">Google Maps</a><br> <a href="howto_css_animate_buttons.asp">Animated Buttons</a><br> <a href="howto_css_modals.asp">Modal Boxes</a><br> <a href="howto_js_animate.asp">Animations</a><br> <a href="howto_js_progressbar.asp">Progress Bars</a><br> <a href="howto_css_dropdown.asp">Hover Dropdowns</a><br> <a href="howto_js_dropdown.asp">Click Dropdowns</a><br> <a href="howto_css_table_responsive.asp">Responsive Tables</a><br> If I edit the test on my pc with a couple of <h1></h1>'s they show up but not the list?? <!DOCTYPE html> <html> <body> <h1>help</h1> <div w3-include-html="content.html"></div> <script src="w3-include-HTML.js"></script> <h1>help</h1> </body> </html>
  4. Thanks Foxie for the lead with the include statement. I followed the link and it does look like PHP would do it, just will take me some time to work it, which is not a problem. I was just hoping there would be a simple HTML solution similar to when I source an image on my site; <img src="Thumb Art/Duck_Watercolor_thumb.jpg" class="featureimg" /> It just seems that if I can source and image I should be able to source a list of text... If i used PHP...... would the "source" look something like this and be found in the same directory?; list.php <?php $list='HTML for my list'; ?> and my page would look something like this?; //poetry page code// //html proceeding list// <?php include 'list.php'; echo "$list"; // HTML for my list ?> //HTML after list// Thank for the help also Male Newbie [ (: ]
  5. Good Day to All. I have a website to display my artwork and poetry. In the poetry section there is the main page with links to other pages and also an anthology which lists my poems by title, the titles are linked to a page to view the poems in their entirety. When you click the link to any poem, that page also displays the anthology so that you can easily navigate to the next poem that interests you without having to return to the main poetry page. The problem I find myself with is that when I want to add a new poem to the anthology I need to edit every page that contains that list. Not something I am interested in doing. I created the website from scratch several years ago and am just a novice, nothing fancy. I have searched the internet for answers but have yet to find what I am looking for. I would like to create the Anthology as a list of links on a separate page/file that can be referenced/sourced in each poetry page that would display the list. In this manner I only have to edit one page and those changes will reflect on all the associated pages. This is the navigation portion of the code that reflects the links desired; <div id="nav"> <ul> <li><a href="../index.html">Home Page</a></li> <li><a href="../aboutartist.html">About the Artist</a></li> <li><a href="../all-art.html">Gallery</a></li> </ul> <h2>Anthology</h2> <ul> <li><a href="achildcries.html">A Child Cries</a></li> <li><a href="addedupon.html">Added Upon</a></li> <li><a href="brokenflowers.html">Broken Flowers</a></li> <li><a href="deadlovers.html">Dead Lovers</a></li> <li><a href="dreamchaser.html">Dream Chaser</a></li> <li><a href="ebb.html">Ebb</a></li> <li><a href="eyes.html">Eyes</a></li> <li><a href="inthedark.html">In The Dark Recesses of Our Soul</a></li> <li><a href="luna.html">Luna</a></li> <li><a href="myancientpictographs.html">My Ancient Pictographs</a></li> <li><a href="raindrop.html">Rain Drop on the Back Porch Railing</a></li> <li><a href="restlessthenight.html">Restless The Night</a></li> <li><a href="summer.html">Summer</a></li> <li><a href="tameroftheuniverse.html">Tamer of the Universe</a></li> <li><a href="thankyouchild.html">Thank You Child</a></li> <li><a href="theburning.html">The Burning</a></li> <li><a href="unopenedbooks.html">Unopened Books</a></li> <li><a href="whereangelstread.html">Where Angels Tread</a></li> </ul> </div> Ideally, all the links below <h2>Anthology</h2> would be referenced/sourced from a different page/file. My difficulty is two fold. 1. How to source the link. I have tried javascript (which i do not know); <script src="../Poetry List/poetrylist.js"></script> This was the closest thing I could find that might get me where I want. 2. how to create/format the source page that contains the information. currently it is saved as .js Here is the poetry page of the website;http://sagebrushart.com/Poetry.html Any and all help would be greatly appreciated.
×
×
  • Create New...