I have a few link classes (some white, some black, depends on the area of the website). How can I make them look like the rest of the links in that section instead of that blue ugly thing?
I think if you are displaying the text ads, there would be no problem with you changing formatting... just as long as the ads are visible and there, but the text based banners cannot be changed. Correct me if I'm wrong. EDIT: Sorry, you asked how. Parse the ad variable before you echo it. Look for the first greater than sign > and then insert class="someclass" just before it.
I used <font>, <span>, i'm even using <div> and nothing... EDIT: Now I look stupid... Instead of a class I assigned an ID. It's done
I don't think those suggestions are enough, are they? When I view the source I see hard-coded settings, like style="width:468px; height:60px; style="width:466px; height:58px; Code (markup): Forcing the pixel size throws off my pages. Is there any way to modify or strip all of that out ?
Use text link type ads instead of banner ads (on the setup instructions that generates the PHP code).
Also, for those who are interested i've set this type of ID in a <span> CSS #coop a:link, #coop a:visited {color:#FFFFFF; text-decoration:underline;} #coop a:hover, #coop a:visited:hover {color:#000000; text-decoration:underline;} Code (markup): HTML <span id="coop">YOUR COOP CODE HERE</span> Code (markup):
sorry for the ignorance, but where (which file, where in code) do you put the span or div to change the link format?
Sorry but I'm not a real developer (just play one on tv). Here's the footer file I'm using and my novice attempt at placing the formatting (which doesn't work). Suggestions? <?php ini_set ("include_path", ini_get ("include_path") . ':../:../../:../../../:../../../../'); include ('ad_network.php'); echo '<span class="dp">'. $ad_network[0] ." | " . $ad_network[1] ." | " . $ad_network[2] ." | " . $ad_network[3] ." | " . $ad_network[4]. '</span>' ; ?>
Here is how I did it, using passthru.php PHP Code: <?php if (!function_exists('file_get_contents')) { function file_get_contents($url) { $handle = fopen($url, 'r'); $string = fread($handle, 4096000); fclose($handle); return $string; } } include ('ad_network.php'); echo preg_replace ("/</body>/i", '<DIV align="center" class="style?">' . $ad_network[0]. ' ' . $ad_network[1]. ' ' . $ad_network[2] . ' ' . $ad_network[3] . ' ' . $ad_network[4] . '</div></body>', file_get_contents(str_replace ('../', '', $_REQUEST['file']))); ?> You have to use CSS to do it this way. Make "style ?" (css "style ?") a color you want your links to be. Make sure to add an an a after "style ?" in your css. My css is below. Code: .style30 a {font-size: x-small; color: #B3D3E6; font-family: Geneva, Arial, Helvetica, sans-serif; }
thanks for the very detailed post. unfortunately, my pages are in php and I think you're solution only works on html pages.......can anyone provide a similar explanation on how I put the formatting in the footer of a php page (my code is in post above), instead of in passthru.php? Or if there are other solutions, I'm game....