Expand|Select|Wrap|Line Numbers
- <div id="googleSearchUnitIframe"> </div>
- <script type="text/javascript">
- var winW = 630;//default
- if (parseInt(navigator.appVersion)>3) {
- if (navigator.appName=="Netscape") {
- winW = window.innerWidth;
- }
- if (navigator.appName.indexOf("Microsoft")!=-1) {
- winW = document.body.offsetWidth;
- }
- }
- var googleSearchIframeName = 'googleSearchUnitIframe';
- var googleSearchFrameWidth = winW * .76;
- var googleSearchFrameborder = 0 ;
- var googleSearchDomain = 'www.google.com';
- </script> <script type="text/javascript"
- src="http://www.google.com/afsonline/show_afs_search.js">
- </script></div>
This little javascript actually works great, but what I am trying to do is handle if/when the user wants to resize their browser window. At this point the google frame will stay the same size and everything will resize behind it. I want to make it so that the googleSearchFrameWidth will be recalculated everytime the user presses F5(which it does now) or resizes the window(which it does not do now). It may require the page to be reloaded whenever the window is resized, that is fine. I don't mind a google search request being resent everytime the window is resized.
What c0dez r ur going to give me to m4ke it werk?!?!?!1!!11eleven!! Need help plz pzl plzzzzzz.