rejetto forum

Software => HFS ~ HTTP File Server => HTML & templates => Topic started by: crazyjust on August 14, 2008, 03:35:32 AM

Title: need help with button
Post by: crazyjust on August 14, 2008, 03:35:32 AM
Can someone please tell me how i can get this button to work. It works well with firefox but not with ie7

<div class="agreebutton">
 <a href="/Files">
 <button style="width:300px;height:30px;
border-top-color:#FFAD5B;
border-left-color:#FFAD5B;
border-right-color:#FFAD5B;
border-bottom-color:#FFAD5B;
background-color:#003F87";><b><FONT SIZE="-1""font color="#FFAD5B">Yes, I Agree To The Above Terms</FONT><b>
</button></a>

thanks in advance
Title: Re: need help with button
Post by: FRENCH CAN CAN on August 14, 2008, 04:50:46 AM
I have the correct code, goes well with IE7 + FX3.

<body>

<div class="agreebutton">
 <a href="/Files">
 <button style="width:300px;height:30px;
border-top-color:#FFAD5B;
border-left-color:#FFAD5B;
border-right-color:#FFAD5B;
border-bottom-color:#FFAD5B;
background-color:#003F87";><b><FONT SIZE="-1""font color=#FFAD5B">Yes, I Agree To The Above Terms</FONT></b>
</button></a></div>

</body>
Title: Re: need help with button
Post by: Wasserfloh on August 14, 2008, 10:49:10 AM
I have the correct code, goes well with IE7 + FX3.
No

... background-color:#003F87;"><b><font size="-1" color="#FFAD5B"> ...

Or better:
<button style=" ... background-color:#003F87; color:#FFAD5B; font-size:0.8em; font-weight:bold;">Yes, I Agree To The Above Terms</button>
Title: Re: need help with button
Post by: FRENCH CAN CAN on August 14, 2008, 11:59:43 AM
 ??? ??? ??? ??? ??? ??? ??? ??? ??? ??? ??? ???
Title: Re: need help with button
Post by: rejetto on August 14, 2008, 12:29:44 PM
he pointed out this part: "font color=#FFAD5B"
quotes included
that is actually invalid, for both html and xhtml
and merely fixed the syntax.
then suggested an alternative way, by using css
Title: Re: need help with button
Post by: crazyjust on August 14, 2008, 02:31:22 PM
problem resolved. I used this and it worked. i wasnt letting active x on ie allow it either before.

Code: [Select]
<INPUT type=button
value="Yes, I Agree To The Above Terms"
style="background-color:#003F87; color:#FFAD5B;"
onMouseOver="this.style.bgColor = '#003F87';"
onMouseOut="this.style.bgColor = '#003F87';"
onClick="self.location='/files/';">