1.11M Members

Resizing Google's Result IFrame

 
0
 

Hi..
I'm designing a web that contain Google Custom Search Engine and I put the result in a page. But it doesn't match with the template I've already made because the IFrame is too wide..

<script type="text/javascript">
  				var googleSearchIframeName = "cse-search-results";
  				var googleSearchFormName = "cse-search-box";
  				var googleSearchFrameWidth = 600;
  				var googleSearchDomain = "www.google.com";
  				var googleSearchPath = "/cse";
			</script>

I try to change the FrameWidth variable to lower value but it still doesn't work.. var googleSearchFrameWidth = 500; How can I handle this?!?

 
0
 

If Google sets a width when it loads, it overrides anything you do.

 
0
 

It means, I can do nothing with what google do..
Okay..thank's...

But if there is a way to do that I will be glad...

 
0
 

I looked for the same question long ago
i found the answer i was helped by a tutorial online about the google iframe
but i do not remember the site:
All the problem resides on the input of the search form where it says:

<input type="hidden" name="cof" value="FORID:10" />

I changed the value of the value from 10 to 11.
Here is the result if you want to try:

http://www.wordtosay.com/google.php

 
0
 

wow..that's nice result..
I'll try it soon..

thanks,

You
This article has been dead for over six months: Start a new discussion instead
Post:
Start New Discussion
Tags Related to this Article