SitePoint Sponsor

User Tag List

Results 1 to 2 of 2

Hybrid View

  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
    Gre aus'm Pott gold trophysilver trophybronze trophy
    Pullo's Avatar
    Join Date
    Jun 2007
    Location
    Germany
    Posts
    6,056
    Mentioned
    219 Post(s)
    Tagged
    12 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.


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
  •