A Digital Age Deserves A Digital Leader

Display things on mutiple pages without usin Frames,iFrame, shtml

Display things on mutiple pages without usin Frames,iFrame, shtml

Postby xxsonyboy4lfexx » Thu May 10, 2007 6:57 pm

Any code that can display things on mutiple pages without usin Frames,iFrame, shtml
Image
PRO Level 8
User avatar
Posts: 315
Joined: Sat Jan 07, 2006 4:42 pm
Location: California

Postby conf » Wed May 16, 2007 3:10 am

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.
PRO Level 2
Posts: 14
Joined: Tue May 15, 2007 8:06 pm

Return to HTML, CSS, and Scripts

Who is online

Users browsing this forum: No registered users and 9 guests