GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   FIX the Google Problem!!!! (script) (https://gfy.com/showthread.php?t=429185)

AlCapone 02-09-2005 05:06 AM

FIX the Google Problem!!!! (script)
 
Some of you may have noticed that when coloring your pages & sites with stylesheets, you end up with some of the text inputs on your forms a weird yellow color, for areas that have "auto-fill" content contained within them. The Google Toolbar causes this annoyance. This can be obnoxious if you have a light colored text for your form fields., so here's the fix.

Step 1: Copy the following code and paste it into notepad -
PHP Code:

  if(window.attachEvent)
    
window.attachEvent("onload",setListeners);
  
  function 
setListeners(){
    
inputList document.getElementsByTagName("INPUT");
    for(
i=0;i<inputList.length;i++)
      
inputList[i].attachEvent("onpropertychange",restoreStyles);
    
selectList document.getElementsByTagName("SELECT");
    for(
i=0;i<selectList.length;i++)
      
selectList[i].attachEvent("onpropertychange",restoreStyles);
  }

  function 
restoreStyles(){
    if(
event.srcElement.style.backgroundColor != "" && event.srcElement.style.backgroundColor != "#a0d0ff"){
      
event.srcElement.style.backgroundColor "#a0d0ff"/* color of choice for AutoFill */
      
document.all['googleblurb'].style.display "block";
    }
  } 

Step 2: Save this file as "googlefix.js" or whatever you like.

Step 3: Paste the following code into the [head] of each of your documents where form elements are -
PHP Code:

<script type="text/javascript" src="googlefix.js"></script> 

That's it!

Enjoy!

Naughty 02-09-2005 05:39 AM

nice, thanks

AlCapone 02-09-2005 02:11 PM

Bump for the day crew.

SmokeyTheBear 02-09-2005 02:13 PM

bump this is a good tip , i have used it for a couple months now

SmokeyTheBear 02-09-2005 02:15 PM

cept the code is broken.. put it in a text file and link to it notice gfy parses out the document. with document.hahaha

SmokeyTheBear 02-09-2005 02:17 PM

its the [] gets replaced with hahaha

leedsfan 02-09-2005 02:17 PM

Quote:

Originally Posted by AlCapone
Some of you may have noticed that when coloring your pages & sites with stylesheets, you end up with some of the text inputs on your forms a weird yellow color, for areas that have "auto-fill" content contained within them. The Google Toolbar causes this annoyance. This can be obnoxious if you have a light colored text for your form fields., so here's the fix.

Step 1: Copy the following code and paste it into notepad -
PHP Code:

  if(window.attachEvent)
    
window.attachEvent("onload",setListeners);
  
  function 
setListeners(){
    
inputList document.getElementsByTagName("INPUT");
    for(
i=0;i<inputList.length;i++)
      
inputList[i].attachEvent("onpropertychange",restoreStyles);
    
selectList document.getElementsByTagName("SELECT");
    for(
i=0;i<selectList.length;i++)
      
selectList[i].attachEvent("onpropertychange",restoreStyles);
  }

  function 
restoreStyles(){
    if(
event.srcElement.style.backgroundColor != "" && event.srcElement.style.backgroundColor != "#a0d0ff"){
      
event.srcElement.style.backgroundColor "#a0d0ff"/* color of choice for AutoFill */
      
document.all['googleblurb'].style.display "block";
    }
  } 

Step 2: Save this file as "googlefix.js" or whatever you like.

Step 3: Paste the following code into the [head] of each of your documents where form elements are -
PHP Code:

<script type="text/javascript" src="googlefix.js"></script> 

That's it!

Enjoy!


thanks i was wondering what caused that


All times are GMT -7. The time now is 02:28 PM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123