You got into the same problem you wanted to resize the iFrame. You think that changing the value of googleSearchFrameWidth will do the trick, but no.
Therefore, I resorted to manipulating the DOM. Since the iFrame name is " googleSearchFrame ", right after
<script type="text/javascript" src="http://www.google.com/afsonline/show_afs_search.js"></script>
I added another <script> with the following:
<script type="text/javascript"> document.getElementsByName('googleSearchFrame').item(0).width = 600; </script>
The above sets the iFrame width to 600px . In your case, obviously, you want to set it to 250 . If you are paranoid that Google may one day change the name of the iFrame, simply use the getElementsByTagName('iFrame') method and narrow it down to the position of your iFrame in the document (if you have multiple iFrames).
Jacob gube
source share