Issue with Forms and Google Toolbar addon

S

spike_h

I am not sure whteher this is an IE issue, a Google toolbar issue or a
FrontPage issue but...
I have recently written a website in FP2003, using forms. I wanted to change
the default backgound color of mandatory fields in the forms - no problem in
preview. However, when published, if a browser has Google toolbar addon
enabled, the colors default back to yellow. disable the Google toolbar no
problem, and no problem either in Firefox/netscape/Mozilla
Anyone any ideas?
 
A

AMysticWeb

Hi Spike,

Try this ...

-------------------------------------------

<!--[if IE]>
<script type="text/javascript">
function killAutofill(){
is = document.getElementsByTagName("INPUT");
for(i=0;i<is.length;i++)
is.style.backgroundColor = "";
ss = document.getElementsByTagName("SELECT");
for(i=0;i<ss.length;i++)
ss.style.backgroundColor = "";
}
window.onload=killAutofill;
</script>
<![endif]-->

-------------------------------------------

Got this from Mike @ http://TexasWebDevelopers.com Lot of useful FP stuff
and scripts.

Mike Smith,

http://FrontPageForms.com
FrontPage Form Tutorials
& Form Script Examples
 
S

spike_h

Sorry, fix didnt work. It kills the background color fine when Google toolbar
switched off, but when it is enabled does nothing.
Also I notice that - when previewed, and IE restricts active content, the
wrong colors are displayed - soon as active content is allowed programmed
colors are shown
Where are the default (form field) background colors defined if automatic is
selected in form field/style/format/background???

AMysticWeb said:
Hi Spike,

Try this ...

-------------------------------------------

<!--[if IE]>
<script type="text/javascript">
function killAutofill(){
is = document.getElementsByTagName("INPUT");
for(i=0;i<is.length;i++)
is.style.backgroundColor = "";
ss = document.getElementsByTagName("SELECT");
for(i=0;i<ss.length;i++)
ss.style.backgroundColor = "";
}
window.onload=killAutofill;
</script>
<![endif]-->

-------------------------------------------

Got this from Mike @ http://TexasWebDevelopers.com Lot of useful FP stuff
and scripts.

Mike Smith,

http://FrontPageForms.com
FrontPage Form Tutorials
& Form Script Examples



spike_h said:
I am not sure whteher this is an IE issue, a Google toolbar issue or a
FrontPage issue but...
I have recently written a website in FP2003, using forms. I wanted to change
the default backgound color of mandatory fields in the forms - no problem in
preview. However, when published, if a browser has Google toolbar addon
enabled, the colors default back to yellow. disable the Google toolbar no
problem, and no problem either in Firefox/netscape/Mozilla
Anyone any ideas?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top