...

View Full Version : How to inset an HTML Document in another using JS



alex11
07-17-2012, 01:16 AM
PHP include doesnt seem to work for me, so i was wondering how to make an external header for my website. Iframe will not work because the header has a drop down menu.

Thanks,
Alex

oneguy
07-17-2012, 01:42 AM
Write a javascript and link it to each related page externally. In the script make the appropriate changes to the structure of the document.

alex11
07-17-2012, 01:52 AM
That is out of my range.
Do you know any good websites where I can learn JavaScript?

DrDOS
07-17-2012, 02:12 AM
PHP include doesnt seem to work for me, so i was wondering how to make an external header for my website. Iframe will not work because the header has a drop down menu.

Thanks,
AlexPhP will work for this, you just may not have done it right. Javascript won't do this easily, php will. If the header is always the same, just name it header.txt and include it that way, php will write it verbatim to your page, anywhere you want it, just by including it there. If the header has stuff that changes you will need to do it differently, but php will still be able to do it.

alex11
07-17-2012, 02:18 AM
http://www.codingforums.com/showthread.php?t=268047



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum