Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Post New Thread Reply

Register GFY Rules Calendar
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 02-09-2005, 05:06 AM   #1
AlCapone
Confirmed User
 
AlCapone's Avatar
 
Join Date: Sep 2003
Posts: 708
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!
__________________
"You can get more with a kind word and a gun than you can with a kind word alone.”

Last edited by AlCapone; 02-09-2005 at 05:07 AM..
AlCapone is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-09-2005, 05:39 AM   #2
Naughty
Confirmed User
 
Industry Role:
Join Date: Jul 2001
Location: Utopia
Posts: 6,483
nice, thanks
__________________
seks.ai for sale - ping me
Naughty is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-09-2005, 02:11 PM   #3
AlCapone
Confirmed User
 
AlCapone's Avatar
 
Join Date: Sep 2003
Posts: 708
Bump for the day crew.
__________________
"You can get more with a kind word and a gun than you can with a kind word alone.”
AlCapone is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-09-2005, 02:13 PM   #4
SmokeyTheBear
►SouthOfHeaven
 
SmokeyTheBear's Avatar
 
Join Date: Jun 2004
Location: PlanetEarth MyBoardRank: GerbilMaster My-Penis-Size: extralarge MyWeapon: Computer
Posts: 28,609
bump this is a good tip , i have used it for a couple months now
__________________
hatisblack at yahoo.com
SmokeyTheBear is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-09-2005, 02:15 PM   #5
SmokeyTheBear
►SouthOfHeaven
 
SmokeyTheBear's Avatar
 
Join Date: Jun 2004
Location: PlanetEarth MyBoardRank: GerbilMaster My-Penis-Size: extralarge MyWeapon: Computer
Posts: 28,609
cept the code is broken.. put it in a text file and link to it notice gfy parses out the document. with document.hahaha
__________________
hatisblack at yahoo.com
SmokeyTheBear is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-09-2005, 02:17 PM   #6
SmokeyTheBear
►SouthOfHeaven
 
SmokeyTheBear's Avatar
 
Join Date: Jun 2004
Location: PlanetEarth MyBoardRank: GerbilMaster My-Penis-Size: extralarge MyWeapon: Computer
Posts: 28,609
its the [] gets replaced with hahaha
__________________
hatisblack at yahoo.com
SmokeyTheBear is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-09-2005, 02:17 PM   #7
leedsfan
leedsfan
 
leedsfan's Avatar
 
Industry Role:
Join Date: Jul 2002
Location: purgatory
Posts: 2,564
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
leedsfan is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.