PDA

View Full Version : Help - need to put a image and link into CSS


antimedia
10-23-2005, 11:08 AM
Hi Gang,
Ok here is the deal, I have a games page with popups to 1 ad, after the ad displays for 10 secs it fowards to the game. Now my problem is this: I have aabout 60 game pages and when I need to change the image and uurl for the ad it would have to modify about 60 pages maybe more .

Is there a way to do this in the CSS so all i have to do is put the new image and link and it would update it thruout all the ad pages?

Here is my current css I have no clue what the code would be for such a task or even where in my css it would be placed

Thank you in advance
Shawn

.img {margin-right:5px}
.img1 {margin-right:15px}

body {
background-color:#4B0049;
color:#7C2B96;
font-family:arial;
font-size:11px;
padding:0;
margin:0;
line-height:13px;
text-align:center;
}

#wrap {
background-color:#FFFFFF;
width:730px;
text-align:center;
}

#top {
background-image:url(images/top.gif);
width:701px;
height:96px;
}

#content {
width:701px;
height:100%;
}

#content_left {
width:146px;
text-align:left;
float:left;
}

#left_box {
width:143px;
border-width:1px;
border-color:#A8A8A8;
border-style:solid;
display:table;
}

#content_right {
width:555px;
text-align:left;
float:right;
}

#date_box {
width:555px;
height:24px;
background-color:#ECECEC;
text-align:right;
display:table;
}

#right_cont_left {
width:369px;
text-align:left;
float:left;
}

#right_cont_right {
width:186px;
text-align:left;
float:right;
}

#footer {
width:701px;
height:94px;
background:url(images/footer.jpg);
text-align:center;
}

.top {color:#414141; text-decoration:none}
.textpurple {font-family:arial;font-size:11px}
.textpurple1{font-family:arial;font-size:11px;text-decoration:underline;line-height:13px}
.textpurple1:hover{font-family:arial;font-size:11px;text-decoration:none}
.textprivacy {font-family:arial;font-size:11px;line-height:13px}

#m1r {
background-image:url(images/m1r.jpg);
width:145px;
height:24px;}

#m1 {
background-image:url(images/m1.jpg);
width:145px;
height:24px;}

#m2{
background-image:url(images/m2.jpg);
width:145px;
height:24px;}

#m2r{
background-image:url(images/m2r.jpg);
width:145px;
height:24px;}

#m3 {
background-image:url(images/m3.jpg);
width:145px;
height:24px;}

#m4 {
background-image:url(images/m4.jpg);
width:145px;
height:24px;}

#m5 {
background-image:url(images/m5.jpg);
width:145px;
height:24px;}

#m6 {
background-image:url(images/m6.jpg);
width:145px;
height:24px;}

#m7 {
background-image:url(images/m7.jpg);
width:145px;
height:24px;}

#m8{
background-image:url(images/m8.jpg);
width:145px;
height:24px;}



.gray {color:#A2A284; text-decoration:none;}

#box1 {
width:186px;
height:160px;
background-color:#E3D1EA;
}

#box2 {
width:184px;
height:219px;
border-width:1px;
border-color:#A8A8A8;
border-style:solid;
display:table;}

#boxpoll {
width:184px;
border-width:1px;
border-color:#A8A8A8;
border-style:solid;
display:table;}

#box3 {
width:184px;
height:133px;
border-width:1px;
border-color:#A8A8A8;
border-style:solid;
display:table;}

#box4 {
width:368px;
height:168px;
border-width:3px;
border-color:#440E62;
border-style:solid;
background-color:#5D2A79;
display:table;}

#box_h {
width:368px;
height:24px;
background-color:#440E62;
display:table;}

#box5 {
width:368px;
height:178px;
background-color:#E3D1EA;
display:table;}

#box51 {
width:368px;
height:150px;
background-color:#E3D1EA;
display:table;}

#box6 {
width:368px;
height:132px;
background-color:#EFEFEF;
display:table;}

#box61 {
width:555px;
height:132px;
background-color:#EFEFEF;
display:table;}

#box_h_priv {
width:555px;
height:24px;
background-color:#440E62;
display:table;}

.width {width:525px}
.width1 {width:115px}

#privacy_margin{margin-left:12px;margin-right:12px}
#margin_left {margin-left:12px;}
#margin_right {margin-right:6px;}
#margin_left1 {margin-left:8px;}
.margin_left2 {margin-left:8px;}

#column1 {
width:180px;
float:left;}

#column2 {
width:168px;
float:right;}

.white {color:#ffffff; text-decoration:none; font-size:11px;line-height:13px}
.bot_txt {color:#440E62; font-size:11px;text-decoration:none}
.dark {color:#000000; text-decoration:none; font-size:11px;line-height:13px}
.dark1{color:#000000; text-decoration:none; font-size:11px;line-height:10px}
.green {color:#39B54A; text-decoration:none}
.green_l {color:#ADE461; text-decoration:none;line-height:13px}
.gray {color:#737373; text-decoration:none;line-height:13px}
.gray_l {color:#DADADA; text-decoration:none;line-height:13px}
.big {font-size:12px;line-height:13px}
.n{font-size:11px}
.sm{font-size:10px}

#line {
height:1px;
background-image:url(images/dot.jpg);
}

#clear {
clear:both}


a { color:#7C2B96; text-decoration:none}

.search { width:118px;
height:21px;
font-family:tahoma;
font-size:12px;
border-style:;
border-width:;
border-color:#;
background-color:#;
color:#;
margin-left:0px;
margin-right:0px}

.textarea{ width:214px;
height:194px;
font-family:tahoma;
font-size:11px;
border-style:solid;
border-width:1px;
border-color:#BEC0C2;
background-color:#ffffff;
color:#585858;
overflow:auto;
margin-left:0px;
margin-right:0px}

.topstories1{font-size:11px;text-decoration:underline;line-height:13px}
.topstories1:hover{font-size:11px;text-decoration:none}
.topstories{font-size:11px;text-decoration:underline;line-height:11px}
.topstories:hover{font-size:11px;text-decoration:none}
.greenu{ color:#39B54A;font-size:11px;text-decoration:underline}
.content {color:#7C2B96; text-decoration:none;line-height:11px}
.contentu {color:#7C2B96; text-decoration:underline;line-height:13px}
.contentu:hover{text-decoration:none}

.u {text-decoration:underline}
.t {text-transform:uppercase}

a:hover{text-decoration:underline;}
#a:hover{text-decoration:none;}

Nightfire
10-23-2005, 01:21 PM
Can't add links in css. You'll need to either stick everything in a js file, or use a serverside language like php or asp

antimedia
10-24-2005, 07:43 AM
Ok here is what im talking about http://www.antimedia.org/ads/knight.php

You see the advertisement, what i need is a code that will display the image and the link, so all i need to do is modify the js code and it will propigate on all the ad pages. Do you know what im trying to get at?

Thanks for any Help
Shawn

_Aerospace_Eng_
10-24-2005, 12:48 PM
Well you ARE using php, you might as well learn something new today. Read this (http://www.joe2torials.com/view_tutorial.php?view=3).