...

View Full Version : Javascript code automatically references to CSS sheet



webvan83
10-16-2005, 07:12 PM
Hi,

I recently registered for a commission junction account (www.cj.com) and I'm trying to incorporate their java code into my site. However, the code automatically references and applies one of the styles I have written in one of my CSS style sheets which is quite annoying. I've managed to isolate the problem between the java code and the lines in the CSS sheet. Please find them below. I would greatly appreciate it if any of you could help!

-----JAVA CODE------
<html>
<head>
<link href="../CSS/horizontal-bar-test.css" rel="stylesheet" type="text/css">
</head>
<body>
<SCRIPT type="text/javascript" LANGUAGE="javascript" src="http://www.qksz.net/1e-ao2u"> </SCRIPT>
</body>
</html>
---------------------

-----CSS Code---------
a {
position:absolute;
top:-1px;
width:100px;
padding-top:4;
height: 29px;
padding-bottom:6;
font-family:"Arial";
font-size:11px;
font-weight:600;
color:#FFFFFF;
text-align:center;
background-color:#339900;
text-decoration:none;
left:197px;
}
----------------------

scrypter
10-17-2005, 01:57 AM
It is not easy(possible) to see their javascript code, so you will probably have to change your css. The "a" style is universally used for anchor, ie links. Your "a" appears to be something specific with absolute positioning etc. I think if you call it something else, you will be OK.
Paul



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum