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?!?

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

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...

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

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

thanks,

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.