473,396 Members | 2,011 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Inserting JavaScript in all pages?

Hi,

I am making a free web-host for my guild of a mmorpg. The server is based off Fedora OS and cPanel/WHM. Here I want a code to be placed automatically on all the pages of every account when its called by the browser.

(Its a JavaScript that would show news and some messages from the main guild websites' XML feeds)

The problem here is how can I go about doing this?

The easiest way is to ask the account holders on my server to place a code snippet on their pages but it shouldn't be like that as several of the account holders have websites with as much as 400 static pages. These guys obviously never heard of dynamic websites so don't blame me for it :o

Watching some free hosts gave me the idea, how do they insert banners in their members pages? sop surely i can do thus in the same principle.

Share your knowledge on this please, I've no idea how to go about doing this.
Jul 15 '07 #1
4 2563
Chrisjc
375 256MB
Hi,

I am making a free web-host for my guild of a mmorpg. The server is based off Fedora OS and cPanel/WHM. Here I want a code to be placed automatically on all the pages of every account when its called by the browser.

(Its a JavaScript that would show news and some messages from the main guild websites' XML feeds)

The problem here is how can I go about doing this?

The easiest way is to ask the account holders on my server to place a code snippet on their pages but it shouldn't be like that as several of the account holders have websites with as much as 400 static pages. These guys obviously never heard of dynamic websites so don't blame me for it :o

Watching some free hosts gave me the idea, how do they insert banners in their members pages? sop surely i can do thus in the same principle.

Share your knowledge on this please, I've no idea how to go about doing this.

I believe this question is more of instreting a code on your members area to display a banner??? Thus this thread should be moved into which ever code you plan on useing to display the banner?? If that is the question... other wise I am not understanding?
Jul 16 '07 #2
How should I say?...

Okay assume I run a free host, what I want to know is how to show ads on my users pages? how can I force insert scripts on pages like that?
Jul 16 '07 #3
Chrisjc
375 256MB
from hosting... on the / from your Apache server... in terms its not from there.. it would be from the page you actaully made... the site its self the PAGE...

so users.php or something like that....

it would be coded into that page... your server interms wouldnt force an ad like that... you have to have a code some where to say get this banner image from here and display it here... with a link going here... something in terms like that....

Or am I miss understanding you still?
Jul 16 '07 #4
Chrisjc
375 256MB
you should use Apache mod_layout.
Jul 16 '07 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

14
by: Miranda | last post by:
Hi, I have a ASP/vbscript program that generates random passwords. The problem is I need to insert those passwords into an Access database of 327 clients. I have the random password program...
5
by: Iain Porter | last post by:
Hi, I'm trying to store large strings to a database, so am using the text field type (LongText). I have used this before when storing the html of a webpage, and was able to store more than 255...
2
by: j van c | last post by:
I have a menubar on my main page. when clicking on a menu item I want to open an existing htm page at a certain position in my main page I use no frames. It should be replacing a div-section....
3
by: Joachim Klassen | last post by:
Hi all, first apologies if this question looks the same as another one I recently posted - its a different thing but for the same szenario:-). We are having performance problems when...
6
by: 35th Ave Media | last post by:
Hello, I have about 60+ pages that I need to insert a MAILTO: tag so people can email the page using their email client. The body of the message is going to be the URL of that page. Using ASP,...
2
by: ste-m | last post by:
Hi there, I was wanting to calculate how long my web pages take to load, and to insert this time into my HTML source code (not visible from the browser, but only in source view) as a HTML...
2
by: Slain | last post by:
I have a big list of HTML files, which need to be updated with a common text. <script language=JavaScript src="./highlight.js"></script> I need to add the above line in each of the html...
5
by: atlanteavila | last post by:
Hello all, I have a problem with inserting text with quotes, or html code in to a MYSql Database. I've been trying to create my own content management system, and unfortunately I've come accross a...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.