|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Stay one step ahead of the competition. Evaluate and give feedback
on some of the hottest web development tools on the market today.
Make your opinion heard! Click
Here
|
|
#1
|
|||
|
|||
|
I need to have a CGI (possibly free) that will be able to simply rotate banners (scheduled through a simple text file) but with the ability to have links too.
All the ones I have found are only Banners (not cliccable) or require SSI includes. I don't want to have pages called shtml. Any suggestion for a file to look for ? Thanks |
|
#2
|
|||
|
|||
|
I don't have a CGI solution for you, but if you have access to the server config files, you can edit them to make .HTML files server-parseable.
A less elegant solution that I once used myself is a Javascript function that rotates or randomly selects images from a list. It would be a little more trouble to update your list than a simple text file, but if you use an external .js file, it could be a fairly workable situation. |
|
#3
|
|||
|
|||
|
Thanks for ansering.
I don't know if I have access to config file. It could be but I think the answer is no. In any case I don't know how to do it. What I rewally need is something wich LIVE creates HTML page (sometimes banners would be mine, other by ad companies) Thanks anyway. Can you email me JS source if ready) just to look at ? |
|
#4
|
|||
|
|||
|
This is one of the better banner ad solutions around, although it has become a litle bloated in recent times:
www.awsd.com/script/webadverts You can call banners through SSI or Non-SSI with this script, and you can add/edit/remove banners through an administration panel. A manky looking admin panel, but it's free/share, so how bad. adam [This message has been edited by dahamsta (edited 08-06-99).] |
|
#5
|
|||
|
|||
|
Marcello,
The JS source to the banner ad rotation script is: <script language="javascript"> <!-- Image Selector // Cameron Gregory - cameron@bloke.com // http://www.bloke.com/ // http://www.bloke.com/javascript/Random/ // http://www.bloke.com/javascript/Random/link.html // This line and about must remain .. then you can use it for free... // // ChangeLog // // // Sat Sep 21 16:36:47 EDT 1996 // Added associate URL list. // // Fri Sep 13 18:36:20 EDT 1996 // Created from the base of Selector() // // Usage: // RandomImage(images) // RandomImageLong(images,iparams) // RandomImageLink(images,urls) // RandomImageLinkLong(images,urls,iparams) // images is space or comma separated file list // urls is space or comma separated list of url's // iparams params to add to <img> function RandomImageLong(images,iparams) { /* si: start index ** i: current index ** ei: end index ** cc: current count */ si = 0; ci=0; cc=0; imageSet = new Array(); ei = images.length; for (i=1;i<ei;i++) { if (images.charAt(i) == ' ' | | images.charAt(i) == ',') { imageSet[cc] = images.substring(si,i); cc++; si=i+1; } } ind = Math.floor(Math.random() *cc); document.writeln("<img "+iparams+" src="+imageSet[ind]+" alt=""+imageSet[ind]+"">"); } function RandomImage(images) { RandomImageLong(images," "); } function RandomImageLinkLong(images,urls,iparams) { /* si: start index ** i: current index ** ei: end index ** cc: current count */ imageSet = new Array(); urlSet = new Array(); si = 0; ci=0; cc=0; ei = images.length; for (i=1;i<ei;i++) { if (images.charAt(i) == ' ' | | images.charAt(i) == ',') { imageSet[cc] = images.substring(si,i); cc++; si=i+1; } } ind = Math.floor(Math.random() *cc); si = 0; ci=0; cc=0; ei = urls.length; for (i=1;i<ei && cc <=ind ;i++) { if (urls.charAt(i) == ' ' | | urls.charAt(i) == ',') { urlSet[cc] = urls.substring(si,i); cc++; si=i+1; } } //document.writeln("<img "+iparams+" src="+imageSet[ind]+" alt=""+imageSet[ind]+"">"); document.writeln("<a href=""+urlSet[ind]+""><img "+iparams+" src="+imageSet[ind]+" alt=""+imageSet[ind]+""></a>"); } function RandomImageLink(images,urls) { RandomImageLinkLong(images,urls,"border=0"); } // End Script --> </script> You then reference it in your HTML by: <script language="javascript"> RandomImageLink("banner1.gif banner2.gif banner3.gif ","http://www.link1.com http://www.link2.com http://www.link3.com "); </script> (adding as many banners and links as you want) |
|
#6
|
|||
|
|||
|
Thank you very much both
|
![]() |
| Viewing: Dev Shed Forums > Programming Languages > Perl Programming > Suggestion for CGI for banners no SSI |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|