Guestbook- text changing color on new entry

J

Jakelma

Hey folks,
Feel like a bit of a dunce for not being able to solve this problem myself.
Anyway, my problem is that the text color in my guestbook changes color
every time someone adds a new post. I have a deep blue background on which I
want the text to be white. In the guestlog.htm, the text does remain white
on the background. However, when the guestbook.htm is refreshed, the text
for the entry changes to black which makes the entry difficult or impossible
to read. Any help would be appreciated.
 
J

Jakelma

Here is the code for the page.

<html>

<head>
<meta name="GENERATOR" content="Microsoft FrontPage 6.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<meta http-equiv="Content-Language" content="en-us">
<title>Guestbook</title>
<script language="JavaScript">
<!--
function FP_swapImg() {//v1.0
var doc=document,args=arguments,elm,n; doc.$imgSwaps=new Array(); for(n=2;
n<args.length;
n+=2) { elm=FP_getObjectByID(args[n]); if(elm) {
doc.$imgSwaps[doc.$imgSwaps.length]=elm;
elm.$src=elm.src; elm.src=args[n+1]; } }
}

function FP_preloadImgs() {//v1.0
var d=document,a=arguments; if(!d.FP_imgs) d.FP_imgs=new Array();
for(var i=0; i<a.length; i++) { d.FP_imgs=new Image;
d.FP_imgs.src=a; }
}

function FP_getObjectByID(id,o) {//v1.0
var c,el,els,f,m,n; if(!o)o=document; if(o.getElementById)
el=o.getElementById(id);
else if(o.layers) c=o.layers; else if(o.all) el=o.all[id]; if(el) return el;
if(o.id==id || o.name==id) return o; if(o.childNodes) c=o.childNodes; if(c)
for(n=0; n<c.length; n++) { el=FP_getObjectByID(id,c[n]); if(el) return el; }
f=o.forms; if(f) for(n=0; n<f.length; n++) { els=f[n].elements;
for(m=0; m<els.length; m++){ el=FP_getObjectByID(id,els[n]); if(el) return
el; } }
return null;
}
// -->
</script>
<meta name="Microsoft Theme" content="ripple 1011, default">
</head>

<body onload="FP_preloadImgs(/*url*/'buttonF1.gif', /*url*/'button44.gif')"
style="background-color: #041943">

<p>
<!--webbot bot="PurpleText" preview="Guest Book - Use this page to collect
the reactions of visitors to your web site. All of the comments submitted by
users will go to a different page, 'guestlog.htm' by default, which is then
included below. If you want to use a different file to capture comments,
change the File Name selected in the Form Properties dialog and in the Page
URL of the Include component below the form." -->
</p>
<hr>
<p><a href="http://xxxxxxxxxxxxxxxxxx.com/home.htm">
<font color="#FFFFFF">
<img border="0" id="img18" src="buttonE2.gif" height="32" width="160"
alt="Back to Home Page"
onmouseover="FP_swapImg(1,0,/*id*/'img18',/*url*/'buttonF1.gif')"
onmouseout="FP_swapImg(0,0,/*id*/'img18',/*url*/'buttonE2.gif')"
onmousedown="FP_swapImg(1,0,/*id*/'img18',/*url*/'button44.gif')"
onmouseup="FP_swapImg(0,0,/*id*/'img18',/*url*/'buttonF1.gif')"
fp-style="fp-btn: Embossed Capsule 1; fp-font-color-hover: #FFFFFF;
fp-transparent: 1" fp-title="Back to Home Page"></font></a></p>
<p><font face="Monotype Corsiva" size="5">Hi Everyone. We can't wait to
hear from all of you! XXXXXXX.</font></p>
<form method="POST" action="--WEBBOT-SELF--" onSubmit="return
FrontPage_Form1_Validator(this)" language="JavaScript" name="FrontPage_Form1">
<!--webbot bot="SaveResults" u-file="guestlog.htm" s-format="HTML/DL"
s-label-fields="FALSE" s-builtin-fields="Date Time" startspan
B-Reverse-Chronology="TRUE" S-Date-Format="%d %b %Y" S-Time-Format="%I:%M:%S
%p" --><input TYPE="hidden" NAME="VTI-GROUP" VALUE="0"><!--webbot
bot="SaveResults" endspan i-checksum="43374" -->
<h2><font face="Monotype Corsiva" size="6"><u><strong>Add Your 2
Cents</strong></u><b>
</b></font></h2>
<p><b><font face="Monotype Corsiva" size="5">Name</font></b></p>
<p>
<!--webbot bot="Validation" s-display-name="Name" b-value-required="TRUE"
i-minimum-length="3" i-maximum-length="30" --><input type="text" name="Name"
size="40" style="font-family: Monotype Corsiva; font-size: 18pt; font-weight:
bold; color: #FFFFFF; background-color: #041943" maxlength="30"></p>
<p><b><font face="Monotype Corsiva"
size="5">Comments/Suggestions</font></b></p>
<p>
<textarea name="Comments" rows="8" cols="52" style="font-family: Monotype
Corsiva; font-size: 18pt; font-weight: bold; background-color:#041943;
color:#FFFFFF"></textarea></p>
<p>
<font color="#FFFFFF">
<input type="submit" value="Submit Comments" style="font-family: Monotype
Corsiva; font-size: 14pt; font-weight: bold"></font>
<font color="#FFFFFF">
<input type="reset" value="Clear Comments" style="font-family: Monotype
Corsiva; font-size: 14pt; font-style: italic; font-weight: bold"></font></p>
<p>
<br>
<br>
<b><font face="Monotype Corsiva" size="4"><em style="font-style: normal">
After you submit your comments, you will need to refresh this page with your
browser in order to see your additions to the log.</em></font></b></p>
</form>
<!--webbot bot="Include" tag="BODY" u-include="guestlog.htm"
--><h5>Copyright © 2008 by XXXX. All rights reserved.<br>
Revised:
<!--webbot bot="TimeStamp" s-type="EDITED" s-format="%m/%d/%y %I:%M %p"
-->.</h5>

</body>

</html>
 
M

Mike Mueller

Most likely what the problem is was caused by guestbook Spam. Your code is
most likely fine, its just the crap that someone signed it with. No way to
tell without the URL


Of course, this in itself could be SPAM to get people to a porn site
 
S

Stefan B Rusynko

Open guestlog.htm page in your Online site in FP and wrap the code (inside the Body tag) with your formatting

--

_____________________________________________
SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
"Warning - Using the F1 Key will not break anything!" (-;
_____________________________________________


| Here is the code for the page.
|
| <html>
|
| <head>
| <meta name="GENERATOR" content="Microsoft FrontPage 6.0">
| <meta name="ProgId" content="FrontPage.Editor.Document">
| <meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
| <meta http-equiv="Content-Language" content="en-us">
| <title>Guestbook</title>
| <script language="JavaScript">
| <!--
| function FP_swapImg() {//v1.0
| var doc=document,args=arguments,elm,n; doc.$imgSwaps=new Array(); for(n=2;
| n<args.length;
| n+=2) { elm=FP_getObjectByID(args[n]); if(elm) {
| doc.$imgSwaps[doc.$imgSwaps.length]=elm;
| elm.$src=elm.src; elm.src=args[n+1]; } }
| }
|
| function FP_preloadImgs() {//v1.0
| var d=document,a=arguments; if(!d.FP_imgs) d.FP_imgs=new Array();
| for(var i=0; i<a.length; i++) { d.FP_imgs=new Image;
| d.FP_imgs.src=a; }
| }
|
| function FP_getObjectByID(id,o) {//v1.0
| var c,el,els,f,m,n; if(!o)o=document; if(o.getElementById)
| el=o.getElementById(id);
| else if(o.layers) c=o.layers; else if(o.all) el=o.all[id]; if(el) return el;
| if(o.id==id || o.name==id) return o; if(o.childNodes) c=o.childNodes; if(c)
| for(n=0; n<c.length; n++) { el=FP_getObjectByID(id,c[n]); if(el) return el; }
| f=o.forms; if(f) for(n=0; n<f.length; n++) { els=f[n].elements;
| for(m=0; m<els.length; m++){ el=FP_getObjectByID(id,els[n]); if(el) return
| el; } }
| return null;
| }
| // -->
| </script>
| <meta name="Microsoft Theme" content="ripple 1011, default">
| </head>
|
| <body onload="FP_preloadImgs(/*url*/'buttonF1.gif', /*url*/'button44.gif')"
| style="background-color: #041943">
|
| <p>
| <!--webbot bot="PurpleText" preview="Guest Book - Use this page to collect
| the reactions of visitors to your web site. All of the comments submitted by
| users will go to a different page, 'guestlog.htm' by default, which is then
| included below. If you want to use a different file to capture comments,
| change the File Name selected in the Form Properties dialog and in the Page
| URL of the Include component below the form." -->
| </p>
| <hr>
| <p><a href="http://xxxxxxxxxxxxxxxxxx.com/home.htm">
| <font color="#FFFFFF">
| <img border="0" id="img18" src="buttonE2.gif" height="32" width="160"
| alt="Back to Home Page"
| onmouseover="FP_swapImg(1,0,/*id*/'img18',/*url*/'buttonF1.gif')"
| onmouseout="FP_swapImg(0,0,/*id*/'img18',/*url*/'buttonE2.gif')"
| onmousedown="FP_swapImg(1,0,/*id*/'img18',/*url*/'button44.gif')"
| onmouseup="FP_swapImg(0,0,/*id*/'img18',/*url*/'buttonF1.gif')"
| fp-style="fp-btn: Embossed Capsule 1; fp-font-color-hover: #FFFFFF;
| fp-transparent: 1" fp-title="Back to Home Page"></font></a></p>
| <p><font face="Monotype Corsiva" size="5">Hi Everyone. We can't wait to
| hear from all of you! XXXXXXX.</font></p>
| <form method="POST" action="--WEBBOT-SELF--" onSubmit="return
| FrontPage_Form1_Validator(this)" language="JavaScript" name="FrontPage_Form1">
| <!--webbot bot="SaveResults" u-file="guestlog.htm" s-format="HTML/DL"
| s-label-fields="FALSE" s-builtin-fields="Date Time" startspan
| B-Reverse-Chronology="TRUE" S-Date-Format="%d %b %Y" S-Time-Format="%I:%M:%S
| %p" --><input TYPE="hidden" NAME="VTI-GROUP" VALUE="0"><!--webbot
| bot="SaveResults" endspan i-checksum="43374" -->
| <h2><font face="Monotype Corsiva" size="6"><u><strong>Add Your 2
| Cents</strong></u><b>
| </b></font></h2>
| <p><b><font face="Monotype Corsiva" size="5">Name</font></b></p>
| <p>
| <!--webbot bot="Validation" s-display-name="Name" b-value-required="TRUE"
| i-minimum-length="3" i-maximum-length="30" --><input type="text" name="Name"
| size="40" style="font-family: Monotype Corsiva; font-size: 18pt; font-weight:
| bold; color: #FFFFFF; background-color: #041943" maxlength="30"></p>
| <p><b><font face="Monotype Corsiva"
| size="5">Comments/Suggestions</font></b></p>
| <p>
| <textarea name="Comments" rows="8" cols="52" style="font-family: Monotype
| Corsiva; font-size: 18pt; font-weight: bold; background-color:#041943;
| color:#FFFFFF"></textarea></p>
| <p>
| <font color="#FFFFFF">
| <input type="submit" value="Submit Comments" style="font-family: Monotype
| Corsiva; font-size: 14pt; font-weight: bold"></font>
| <font color="#FFFFFF">
| <input type="reset" value="Clear Comments" style="font-family: Monotype
| Corsiva; font-size: 14pt; font-style: italic; font-weight: bold"></font></p>
| <p>
| <br>
| <br>
| <b><font face="Monotype Corsiva" size="4"><em style="font-style: normal">
| After you submit your comments, you will need to refresh this page with your
| browser in order to see your additions to the log.</em></font></b></p>
| </form>
| <!--webbot bot="Include" tag="BODY" u-include="guestlog.htm"
| --><h5>Copyright © 2008 by XXXX. All rights reserved.<br>
| Revised:
| <!--webbot bot="TimeStamp" s-type="EDITED" s-format="%m/%d/%y %I:%M %p"
| -->.</h5>
|
| </body>
|
| </html>
|
 
D

Dan L

In code (HTML) view change <body
onload="FP_preloadImgs(/*url*/'buttonF1.gif', /*url*/'button44.gif')"
style="background-color: #041943"> to <body
onload="FP_preloadImgs(/*url*/'buttonF1.gif', /*url*/'button44.gif')"
style="background-color: #041943; color: #ffffff;">

Jakelma said:
Here is the code for the page.

<html>

<head>
<meta name="GENERATOR" content="Microsoft FrontPage 6.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<meta http-equiv="Content-Language" content="en-us">
<title>Guestbook</title>
<script language="JavaScript">
<!--
function FP_swapImg() {//v1.0
var doc=document,args=arguments,elm,n; doc.$imgSwaps=new Array(); for(n=2;
n<args.length;
n+=2) { elm=FP_getObjectByID(args[n]); if(elm) {
doc.$imgSwaps[doc.$imgSwaps.length]=elm;
elm.$src=elm.src; elm.src=args[n+1]; } }
}

function FP_preloadImgs() {//v1.0
var d=document,a=arguments; if(!d.FP_imgs) d.FP_imgs=new Array();
for(var i=0; i<a.length; i++) { d.FP_imgs=new Image;
d.FP_imgs.src=a; }
}

function FP_getObjectByID(id,o) {//v1.0
var c,el,els,f,m,n; if(!o)o=document; if(o.getElementById)
el=o.getElementById(id);
else if(o.layers) c=o.layers; else if(o.all) el=o.all[id]; if(el) return el;
if(o.id==id || o.name==id) return o; if(o.childNodes) c=o.childNodes; if(c)
for(n=0; n<c.length; n++) { el=FP_getObjectByID(id,c[n]); if(el) return el; }
f=o.forms; if(f) for(n=0; n<f.length; n++) { els=f[n].elements;
for(m=0; m<els.length; m++){ el=FP_getObjectByID(id,els[n]); if(el) return
el; } }
return null;
}
// -->
</script>
<meta name="Microsoft Theme" content="ripple 1011, default">
</head>

<body onload="FP_preloadImgs(/*url*/'buttonF1.gif', /*url*/'button44.gif')"
style="background-color: #041943">

<p>
<!--webbot bot="PurpleText" preview="Guest Book - Use this page to collect
the reactions of visitors to your web site. All of the comments submitted by
users will go to a different page, 'guestlog.htm' by default, which is then
included below. If you want to use a different file to capture comments,
change the File Name selected in the Form Properties dialog and in the Page
URL of the Include component below the form." -->
</p>
<hr>
<p><a href="http://xxxxxxxxxxxxxxxxxx.com/home.htm">
<font color="#FFFFFF">
<img border="0" id="img18" src="buttonE2.gif" height="32" width="160"
alt="Back to Home Page"
onmouseover="FP_swapImg(1,0,/*id*/'img18',/*url*/'buttonF1.gif')"
onmouseout="FP_swapImg(0,0,/*id*/'img18',/*url*/'buttonE2.gif')"
onmousedown="FP_swapImg(1,0,/*id*/'img18',/*url*/'button44.gif')"
onmouseup="FP_swapImg(0,0,/*id*/'img18',/*url*/'buttonF1.gif')"
fp-style="fp-btn: Embossed Capsule 1; fp-font-color-hover: #FFFFFF;
fp-transparent: 1" fp-title="Back to Home Page"></font></a></p>
<p><font face="Monotype Corsiva" size="5">Hi Everyone. We can't wait to
hear from all of you! XXXXXXX.</font></p>
<form method="POST" action="--WEBBOT-SELF--" onSubmit="return
FrontPage_Form1_Validator(this)" language="JavaScript" name="FrontPage_Form1">
<!--webbot bot="SaveResults" u-file="guestlog.htm" s-format="HTML/DL"
s-label-fields="FALSE" s-builtin-fields="Date Time" startspan
B-Reverse-Chronology="TRUE" S-Date-Format="%d %b %Y" S-Time-Format="%I:%M:%S
%p" --><input TYPE="hidden" NAME="VTI-GROUP" VALUE="0"><!--webbot
bot="SaveResults" endspan i-checksum="43374" -->
<h2><font face="Monotype Corsiva" size="6"><u><strong>Add Your 2
Cents</strong></u><b>
</b></font></h2>
<p><b><font face="Monotype Corsiva" size="5">Name</font></b></p>
<p>
<!--webbot bot="Validation" s-display-name="Name" b-value-required="TRUE"
i-minimum-length="3" i-maximum-length="30" --><input type="text" name="Name"
size="40" style="font-family: Monotype Corsiva; font-size: 18pt; font-weight:
bold; color: #FFFFFF; background-color: #041943" maxlength="30"></p>
<p><b><font face="Monotype Corsiva"
size="5">Comments/Suggestions</font></b></p>
<p>
<textarea name="Comments" rows="8" cols="52" style="font-family: Monotype
Corsiva; font-size: 18pt; font-weight: bold; background-color:#041943;
color:#FFFFFF"></textarea></p>
<p>
<font color="#FFFFFF">
<input type="submit" value="Submit Comments" style="font-family: Monotype
Corsiva; font-size: 14pt; font-weight: bold"></font>
<font color="#FFFFFF">
<input type="reset" value="Clear Comments" style="font-family: Monotype
Corsiva; font-size: 14pt; font-style: italic; font-weight: bold"></font></p>
<p>
<br>
<br>
<b><font face="Monotype Corsiva" size="4"><em style="font-style: normal">
After you submit your comments, you will need to refresh this page with your
browser in order to see your additions to the log.</em></font></b></p>
</form>
<!--webbot bot="Include" tag="BODY" u-include="guestlog.htm"
--><h5>Copyright © 2008 by XXXX. All rights reserved.<br>
Revised:
<!--webbot bot="TimeStamp" s-type="EDITED" s-format="%m/%d/%y %I:%M %p"
-->.</h5>

</body>

</html>
 
J

Jakelma

Thanks folks.

Dan L said:
In code (HTML) view change <body
onload="FP_preloadImgs(/*url*/'buttonF1.gif', /*url*/'button44.gif')"
style="background-color: #041943"> to <body
onload="FP_preloadImgs(/*url*/'buttonF1.gif', /*url*/'button44.gif')"
style="background-color: #041943; color: #ffffff;">

Jakelma said:
Here is the code for the page.

<html>

<head>
<meta name="GENERATOR" content="Microsoft FrontPage 6.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<meta http-equiv="Content-Language" content="en-us">
<title>Guestbook</title>
<script language="JavaScript">
<!--
function FP_swapImg() {//v1.0
var doc=document,args=arguments,elm,n; doc.$imgSwaps=new Array(); for(n=2;
n<args.length;
n+=2) { elm=FP_getObjectByID(args[n]); if(elm) {
doc.$imgSwaps[doc.$imgSwaps.length]=elm;
elm.$src=elm.src; elm.src=args[n+1]; } }
}

function FP_preloadImgs() {//v1.0
var d=document,a=arguments; if(!d.FP_imgs) d.FP_imgs=new Array();
for(var i=0; i<a.length; i++) { d.FP_imgs=new Image;
d.FP_imgs.src=a; }
}

function FP_getObjectByID(id,o) {//v1.0
var c,el,els,f,m,n; if(!o)o=document; if(o.getElementById)
el=o.getElementById(id);
else if(o.layers) c=o.layers; else if(o.all) el=o.all[id]; if(el) return el;
if(o.id==id || o.name==id) return o; if(o.childNodes) c=o.childNodes; if(c)
for(n=0; n<c.length; n++) { el=FP_getObjectByID(id,c[n]); if(el) return el; }
f=o.forms; if(f) for(n=0; n<f.length; n++) { els=f[n].elements;
for(m=0; m<els.length; m++){ el=FP_getObjectByID(id,els[n]); if(el) return
el; } }
return null;
}
// -->
</script>
<meta name="Microsoft Theme" content="ripple 1011, default">
</head>

<body onload="FP_preloadImgs(/*url*/'buttonF1.gif', /*url*/'button44.gif')"
style="background-color: #041943">

<p>
<!--webbot bot="PurpleText" preview="Guest Book - Use this page to collect
the reactions of visitors to your web site. All of the comments submitted by
users will go to a different page, 'guestlog.htm' by default, which is then
included below. If you want to use a different file to capture comments,
change the File Name selected in the Form Properties dialog and in the Page
URL of the Include component below the form." -->
</p>
<hr>
<p><a href="http://xxxxxxxxxxxxxxxxxx.com/home.htm">
<font color="#FFFFFF">
<img border="0" id="img18" src="buttonE2.gif" height="32" width="160"
alt="Back to Home Page"
onmouseover="FP_swapImg(1,0,/*id*/'img18',/*url*/'buttonF1.gif')"
onmouseout="FP_swapImg(0,0,/*id*/'img18',/*url*/'buttonE2.gif')"
onmousedown="FP_swapImg(1,0,/*id*/'img18',/*url*/'button44.gif')"
onmouseup="FP_swapImg(0,0,/*id*/'img18',/*url*/'buttonF1.gif')"
fp-style="fp-btn: Embossed Capsule 1; fp-font-color-hover: #FFFFFF;
fp-transparent: 1" fp-title="Back to Home Page"></font></a></p>
<p><font face="Monotype Corsiva" size="5">Hi Everyone. We can't wait to
hear from all of you! XXXXXXX.</font></p>
<form method="POST" action="--WEBBOT-SELF--" onSubmit="return
FrontPage_Form1_Validator(this)" language="JavaScript" name="FrontPage_Form1">
<!--webbot bot="SaveResults" u-file="guestlog.htm" s-format="HTML/DL"
s-label-fields="FALSE" s-builtin-fields="Date Time" startspan
B-Reverse-Chronology="TRUE" S-Date-Format="%d %b %Y" S-Time-Format="%I:%M:%S
%p" --><input TYPE="hidden" NAME="VTI-GROUP" VALUE="0"><!--webbot
bot="SaveResults" endspan i-checksum="43374" -->
<h2><font face="Monotype Corsiva" size="6"><u><strong>Add Your 2
Cents</strong></u><b>
</b></font></h2>
<p><b><font face="Monotype Corsiva" size="5">Name</font></b></p>
<p>
<!--webbot bot="Validation" s-display-name="Name" b-value-required="TRUE"
i-minimum-length="3" i-maximum-length="30" --><input type="text" name="Name"
size="40" style="font-family: Monotype Corsiva; font-size: 18pt; font-weight:
bold; color: #FFFFFF; background-color: #041943" maxlength="30"></p>
<p><b><font face="Monotype Corsiva"
size="5">Comments/Suggestions</font></b></p>
<p>
<textarea name="Comments" rows="8" cols="52" style="font-family: Monotype
Corsiva; font-size: 18pt; font-weight: bold; background-color:#041943;
color:#FFFFFF"></textarea></p>
<p>
<font color="#FFFFFF">
<input type="submit" value="Submit Comments" style="font-family: Monotype
Corsiva; font-size: 14pt; font-weight: bold"></font>
<font color="#FFFFFF">
<input type="reset" value="Clear Comments" style="font-family: Monotype
Corsiva; font-size: 14pt; font-style: italic; font-weight: bold"></font></p>
<p>
<br>
<br>
<b><font face="Monotype Corsiva" size="4"><em style="font-style: normal">
After you submit your comments, you will need to refresh this page with your
browser in order to see your additions to the log.</em></font></b></p>
</form>
<!--webbot bot="Include" tag="BODY" u-include="guestlog.htm"
--><h5>Copyright © 2008 by XXXX. All rights reserved.<br>
Revised:
<!--webbot bot="TimeStamp" s-type="EDITED" s-format="%m/%d/%y %I:%M %p"
-->.</h5>

</body>

</html>
 

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