473,322 Members | 1,540 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,322 software developers and data experts.

Adding rotating ads to our PHP page

MoeRinging
Hi all,
I am very ignorant when it comes to CSS, PHP, Java so I need some serious help here.
We recently changed CMS's and this new CMS provides us access to all of our code, when in the past we all created work orders and someone else did all the coding for us. So please excuse me. Our site needs a lot but the revenue generating pages are first priority.
Our classifieds are PHP and I want to place ads on these pages but I'm not sure how to do so. In our CMS, there are themes and the PHP pages use these themes. Will I have to go in there and update the ads manually or is there a code I can use so the same rotating ads that are on all the other pages can rotate on the php pages too?

Can anyone help me with this issue?
Mar 2 '07 #1
7 1518
ronverdonk
4,258 Expert 4TB
Main question for me is: what is the format of these ads. Are they text, images, both? And how are they placed on the screen, i.e. using html <div>, <img> or dynamically via the DOM? Your website doesn't make me any wiser on this.

Anyway, to rotate the display of the messages using a programmed delay, you'll have to use JavaScript.

Ronald :cool:
Mar 2 '07 #2
Main question for me is: what is the format of these ads. Are they text, images, both? And how are they placed on the screen, i.e. using html <div>, <img> or dynamically via the DOM? Your website doesn't make me any wiser on this.

Anyway, to rotate the display of the messages using a programmed delay, you'll have to use JavaScript.

Ronald :cool:

The ads are placed in an interface that is already programmed for placement. When I read the code it looks like the ads are writen in java in my header. This is what I see:

<script type="text/javascript" src="http://orp.php.mediaspanonline.com/inc.php?uri=/&bannerPositions=Leaderboard,Banner-Top,Banner-Bottom,Skyscraper,Island,Tile-Right-1,Tile-Right-2,Tile-Right-3,Tile-Right-4,Tile-Right-5,Tile-Right-6,Tile-Right-7,Tile-Right-8,Tile-Right-9,Tile-Right-10"></script>

Yes, I know that's java and I asked in the PHP forum but here's why. Why does that java work on every page except the PHP pages?
Is there a script I can use on a PHP page?
Mar 2 '07 #3
ronverdonk
4,258 Expert 4TB
Keep in mind: Java is NOT JavaScript! Not even similar.
And what you show is JavaScript.

PHP is a server side language and JavaScript is a client side language. I.e. PHP runs on the server and JavaScript (along with the html) runs on the user's client pc.
PHP constructs html (and JS) code and sends it to the client for processing by the client's browser.

So the question is not whether JS can run in a PHP page, but if PHP constrcuts the JS code to be executed.

If this is all too complicated: show us the PHP page that you refer to.
And do it within php or code tags!! See the Posting Guidelines on this.

Ronald :cool:
Mar 2 '07 #4
Keep in mind: Java is NOT JavaScript! Not even similar.
And what you show is JavaScript.

PHP is a server side language and JavaScript is a client side language. I.e. PHP runs on the server and JavaScript (along with the html) runs on the user's client pc.
PHP constructs html (and JS) code and sends it to the client for processing by the client's browser.

So the question is not whether JS can run in a PHP page, but if PHP constrcuts the JS code to be executed.

If this is all too complicated: show us the PHP page that you refer to.
And do it within php or code tags!! See the Posting Guidelines on this.

Ronald :cool:


Ronald,
Thanks for being so patient!

I am so embarrassed to share my code because its such a mess.
Do you want all the code from the theme page that is in the CMS? When I click on the theme, it is broken down into parts: the ref stylesheet link, HTML head, HTML body, then theres a body content area that isnt editable, its just a solid area, then HTML body again, then my blocks area and finally a note at the bottom that says:
Important Note: All images/links must be complete URL's. For example:
<a href="http://www.yourpaper.com/images/logo.jpg">
<a href="http://www.yourpaper.com/index.php>

Do you want the code from all the HTML parts in the theme?
Oh my... I have a such a mess here. It's so confusing for me.

So sorry,
Monique
Mar 2 '07 #5
ronverdonk
4,258 Expert 4TB
No no, do not show all the code!
Just the PHP page of which you said that it did not show the ads.

Ronald :cool:
Mar 2 '07 #6
No no, do not show all the code!
Just the PHP page of which you said that it did not show the ads.

Ronald :cool:

Oh, I thought I did that in the very first post. My bad. I used the link button.

[PHP]http://orp.php.mediaspanonline.com/class_composer_index.php[/PHP]

Is this what you mean?
Mar 2 '07 #7
ronverdonk
4,258 Expert 4TB
No it is not. What you show is the client's result page. I saw that already in your first post.

What you'll have to show is the php source code that generates that page, but does not show the rotating ads.

Ronald :cool:
Mar 2 '07 #8

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

Similar topics

4
by: Ian Hubling | last post by:
I'm trying to complete a rotating banner ad within a page I have. The rotating add has four images that rotate in three-second increments. I've got the images to rotate ok - but now I want to go...
1
by: Sandy Bremmer | last post by:
I have seen many Javascripts that rotate images with each load or refresh of the page but so far all I've found require hard coding the image filename into the script. Does anyone know of a script...
1
by: Grunt | last post by:
Hi, I have been trying to put together a rotating banner. the code works but I am having a problem with the caching of the banner images. no matter what I try the page is constantly reloading the...
31
by: Royal Denning | last post by:
I am designing a table with 2 columns and 20 rows. I want to insert small images (each with a link) and a text title in each cell of the table. On refresh of the page, I would like to have the...
10
by: Sehboo | last post by:
Hi, I am looking for code which can rotate pictures without refreshing the page. I want to read randomly selected 5 images from database and then keep on rotating them every 5 seconds. ...
2
by: sgMuser | last post by:
Hi, I am not a good developer of Javascript codes. Needs this help to make some modification to this famous free javascript from Anarchos. i am using this in one of my webpage. What it does is,...
3
by: avalence | last post by:
Hello, I am trying to create a nice rotating earth globe (on mouse) on my web site, in order to display my professional relationships all over the world. The best way seems to be a javascript. In...
1
by: AR123 | last post by:
Hi I want to set up a rotating banner. Not sure how to incorporate my rotating banner code into the code below. I want the rotating banner to be the main feature image? This is set up in...
5
by: Michael | last post by:
Hello all, how could I rotate a server side image in asp.net and show it in web page? Thanks.
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.