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 5 of 5
  1. #1
    New Coder
    Join Date
    Aug 2007
    Posts
    71
    Thanks
    17
    Thanked 0 Times in 0 Posts

    Modifying the size of an embed

    I have the following code for an embed that I would like to add to my site. However, the embed is too large for the box I am trying to put it in on my social network. I tried to add height/width parameters, but it did not work. Is there a way to modify the size? Thanks!!!

    <div id="wb-9ez75d"></div><script type="text/javascript" src="http://flockdraw.com/embed/9ez75d"></script>

  • #2
    New Coder
    Join Date
    Aug 2007
    Posts
    71
    Thanks
    17
    Thanked 0 Times in 0 Posts
    Any help??

  • #3
    Regular Coder
    Join Date
    Dec 2009
    Posts
    115
    Thanks
    2
    Thanked 10 Times in 10 Posts
    Quote Originally Posted by billvasko View Post
    I have the following code for an embed that I would like to add to my site. However, the embed is too large for the box I am trying to put it in on my social network. I tried to add height/width parameters, but it did not work. Is there a way to modify the size? Thanks!!!

    <div id="wb-9ez75d"></div><script type="text/javascript" src="http://flockdraw.com/embed/9ez75d"></script>
    Code:
    var elem = document.getElementById("wb-9ez75d");
    elem.style.width = 300+"px";

  • #4
    Senior Coder
    Join Date
    Jun 2008
    Location
    New Jersey
    Posts
    2,536
    Thanks
    45
    Thanked 259 Times in 256 Posts
    Eer... that depends on what the script is/does, doesn't it? The JS might just add a fixed size embed, in which case all you've done is modified the div its in, not the component itself?

  • #5
    New Coder
    Join Date
    Aug 2007
    Posts
    71
    Thanks
    17
    Thanked 0 Times in 0 Posts
    I don't have access to the JS, only the embed script. I am trying to add this embed to a module box that is smaller than the embed: www.flockdraw.com


  •  

    Posting Permissions

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