SitePoint Sponsor

User Tag List

Results 1 to 2 of 2

Thread: Web Badge Sizing

  1. #1
    SitePoint Member lplatz's Avatar
    Join Date
    Feb 2005
    Posts
    22
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Web Badge Sizing

    I have been provided a link for a web badge. To make the badge fit, I'd like to control the size of the default image. The following is the basic javascript link

    Code:
    <script type="text/javascript" src="http://www.companyname.com/webbadge/insertwebbadge.js?bid=###" ></script>
    What variable can I add to this section of code to control the size of the linked image.

  2. #2
    Grüße aus'm Pott
    SitePoint Award Recipient Pullo's Avatar
    Join Date
    Jun 2007
    Location
    Germany
    Posts
    2,486
    Mentioned
    40 Post(s)
    Tagged
    3 Thread(s)
    Hi there,

    I'm afraid it's not possible to add anything to the <script> tag which will in any way influence the behaviour of the JavaScript it references.

    I assume from what you write that this JavaScript somehow outputs an image (badge) to the screen.
    One possible way to alter the badge's appearance would be with CSS.

    Better still, if you could post a link to a page where I can actually see this badge, then I would be in a far better position to help you.
    How well do you know your JavaScript from your jQuery?
    Check out SitePoint's latest JavaScript challenge


    My blog

Tags for this Thread

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
  •