Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Oct 2005
    Location
    Vancouver
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Javascript code automatically references to CSS sheet

    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;
    }
    ----------------------

  • #2
    New Coder
    Join Date
    Sep 2005
    Location
    New Zealand
    Posts
    27
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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
    ScrypTik Javascript editor with built in syntax error checking


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •