banner rotators
I have a banner rotator that i made with perl. What i dont understand is how sites like fastadvert dont have to use
but they use this
fastadvert.com - make money with your website
If i try to use this
it doesnt work. Why? I just would like to know.
Thanks
Keith
a_gajic posted this at 18:08 — 29th October 2001.
They have: 71 posts
Joined: Aug 2001
It's just the different ways in which your ad rotators were programmed.
By the looks of that one, id=165 tells the script to pick an image out of a database of some kind.
keith2045 posted this at 21:41 — 29th October 2001.
They have: 27 posts
Joined: Oct 2001
No the id=165 is my id. Can you tell me how to program my script like that?
Keith
mjames posted this at 23:40 — 31st October 2001.
They have: 2,064 posts
Joined: Dec 1999
They use a complicated script that pulls data out of a database of entries. You can't just link the same way to your site and get the same effect. Using won't work because I believe it only works on a local server; you can't distribute the same code all over the web and expect it to work.
keith2045 posted this at 23:52 — 31st October 2001.
They have: 27 posts
Joined: Oct 2001
OK thanks for your help, but i have one problem. When a viewer views my site it gets stored in their cache. I know i can put this (below) in the html to stop it but what can i put in the perl code to prevent this?
Keith
Suzanne posted this at 00:12 — 1st November 2001.
She has: 5,507 posts
Joined: Feb 2000
The RESULTS of the Perl code (the generated HTML pages) is what goes into the user's cache. Perl creates the pages on the server and then delivers them (same as any server-side language) as HTML documents. The code you use to create those documents never leaves the server.
hth,
Suzanne
keith2045 posted this at 00:23 — 1st November 2001.
They have: 27 posts
Joined: Oct 2001
Is their anything i can do about it? I mean prevent it from showing the same banner? Any ideas? That code i posted works, but like after 30 sec.
Keith
Suzanne posted this at 03:29 — 1st November 2001.
She has: 5,507 posts
Joined: Feb 2000
What do you mean?
You could use a randomizing script for the banner, to usually prevent showing the same banner all the time, or you could set a cookie for each user so they never see the same banner twice.
What do you mean after 30 seconds? What happens after 30 seconds?
Please clarify.
Suzanne
keith2045 posted this at 03:53 — 1st November 2001.
They have: 27 posts
Joined: Oct 2001
Let me give you an example. When i visit the main page for the webmaster forums i see a banner (sports one). I then click calender. Then i click back to the main page right after the calendar page loads. I see a different banner then the sporst one
Now for my web site. I visit the main page. I see a Yahoo banner. Then click over to another page. Once that loads i hit a link that goes back to the main page. I still see the Yahoo banner. My script then prints in a file that i have viewed it (the yahoo banner) 1 time, not 2 times. Understand? Why is it doing this? I think you might have to see the code to tell me why, right?
I will post the code if you want me to.
Thanks
Keith
Suzanne posted this at 05:47 — 1st November 2001.
She has: 5,507 posts
Joined: Feb 2000
The reason the banners on this site show you different banners is because they rotate in a random fashion. It's a server-side script (you can get many for free out there).
The reason you only get one viewing instead of two is because the page is cached in your browser (not recreated every time you view the page). According to the browser, it's still showing you the same file, it hasn't pulled another from the server.
Yes, of course the code would help. However I think you would do well to read some more and ask some more questions so you can get a better understanding of the difference between server-side and client-side technologies. Keep asking!
Suzanne
MarcD posted this at 07:12 — 1st November 2001.
They have: 38 posts
Joined: Oct 2001
we use a php one that can be used in multiple sites / servers
using this php script within an img tag will pull a random picture out of that set field you can set different sizes and levels it also handles click stats with a code like
is that what you mean ?
I do not use netscape nor care if my stuff works or doesnt in it.
keith2045 posted this at 12:26 — 1st November 2001.
They have: 27 posts
Joined: Oct 2001
Thanks for all your help. I know that my site was being stored in the users cache. I was hoping someone could help me prevent it. I will look around
Keith
MarcD posted this at 03:30 — 2nd November 2001.
They have: 38 posts
Joined: Oct 2001
for no cache
netcommr posted this at 21:53 — 8th November 2001.
They have: 8 posts
Joined: Nov 2001
Keith,
What you need to stop cacheing is to have the SRC attribute of the image tag change dynamically on every page view, such as with a small javascript.
<script language="javascript"> ';
document.write(img);
// --></script>
this will change the image SRC on every page view, even if they hit the back button, so no reading will be done from cache...
http://www.KeywordDelivery.com
A dynamic response content delivery and management system which allows any web page to display content targeting the visitors interest based on the referrer.
Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.