Michael Peters wrote: > Joel Gwynn wrote: > >>So the ads are inserted via javascript and not interpreted php? What >>are the non-javascript options, just out of curiousity. > > > It really shouldn't be that hard to write a one mode C::A that would > randomly pick an ad and send it to the browser. If you use mod_rewrite > (or mod_perl) you can even make anyone looking at the source think it's > just a normal jpg. > > Something like: > > <img src="/random_ad.jpg" /> > > And then in your httpd.conf (using mod_rewrite) > > RewriteRule ^/random_ad\.jpg$/ /my_add.cgi [R,L]
Or if you want to get fancy and specify the height and width... <img src="/50x100/random_ad.jpg" /> with the following rewrite rule RewriteRule ^/(.*)x(.*)/random_ad.jpg$/ /my_add.cgi?height=$1&width=$2 [R,L] Just some ideas :) -- Michael Peters Developer Plus Three, LP --------------------------------------------------------------------- Web Archive: http://www.mail-archive.com/[email protected]/ http://marc.theaimsgroup.com/?l=cgiapp&r=1&w=2 To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
