...

View Full Version : Modifying the size of an embed



billvasko
06-22-2010, 05:43 AM
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>

billvasko
06-24-2010, 04:13 AM
Any help??

Dean440
06-24-2010, 05:47 AM
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>


var elem = document.getElementById("wb-9ez75d");
elem.style.width = 300+"px";

Keleth
06-24-2010, 05:52 AM
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?

billvasko
06-29-2010, 02:43 AM
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



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum