Results 1 to 2 of 2

Thread: setting border to "0" in script

  1. #1
    Join Date
    Jul 2007
    Posts
    21
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default setting border to "0" in script

    hi, i believe this question is pretty basic. i'm trying to set the border to "0" for these two images, could someone inform me where to add that piece of code? thanks much
    greg

    Code:
    defaultbuttons: {enable: true, moveby: 1, leftnav: ['images/minus.jpg', -30, 17], rightnav: ['images/plus.jpg', 16, 17]},

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    The code you have there is known in javascript as a property definition, the syntax shows it to be a property of an otherwise unseen javascript object. The name of the property is defaultbuttons. The definition is itself another javascript object (enclosed with {}). Javascript objects and their properties are completely arbitrary constructions, they are only given meaning by how they are used by the rest of the code. As a result, there is nothing there in what you provided as a code snippet that clearly shows how to add a definition for the border of the images it mentions.

    To tell you how to script a border for those images, we would need to see more of the code, perhaps the entire script and markup for the page. However, you could define a border for all images on the page using css style. In a stylesheet, put:

    Code:
    img {
    border: none!important;
    }
    Now, an image by itself will have no border anyway. So these images are probably being given borders by virtue of the fact that they are linked images. If that's the case, you can use:

    Code:
    a img {
    border: none!important;
    }
    To be more specific, I would need to see all of the code involved in defining these images. So, if you want more help with these specific images:

    Please post a link to the page on your site that contains the problematic code so we can check it out.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

Bookmarks

Posting Permissions

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