Display things on mutiple pages without usin Frames,iFrame, shtml
2 posts
• Page 1 of 1
Display things on mutiple pages without usin Frames,iFrame, shtml
Any code that can display things on mutiple pages without usin Frames,iFrame, shtml
- xxsonyboy4lfexx
- Posts: 315
- Joined: Sat Jan 07, 2006 4:42 pm
- Location: California
Hi xxsonyboy4lfexx :-)
What you want,It can be done with many ways.
Every way have their advantages and disadvantages.
You SaiD:
No frame or iframe,No shtml
So here the options you have:
1.) With some PHP
In exact part that you want to display, whatever you want to display,
insert the following code:
- Code: Select all
include("YourStuff.php");
of course to work this thing every Webpage that you have,it should have a .php extension and the server or you locally test environment should also support php,apache environment.
2.) With some Javascript
Please,let me give you an example.
- Code: Select all
document.writeln("<a href='#'>link1</a>");
document.writeln("<a href='#'>link2</a>");
document.writeln("<a href='#'>link3</a>");
document.writeln("<a href='#'>link4</a>");
Place the above,in a new .txt file and Save it as test.js
Now,You can put any text or link do you want in the above code.
After that,you should go between the body tags and you place the
following code,in the exact part,that you want display whatever you want.
- Code: Select all
<script type="text/javascript" src="http://yourdomain.com/test.js"></script>
That's all your options :-)
EdiTeD: With First Way you should also manually add the open and close of PHP taG because in this forum doesn't allow to use those tags.
2 posts
• Page 1 of 1
Return to HTML, CSS, and Scripts
Who is online
Users browsing this forum: No registered users and 9 guests