HTML - Change Autoshape Color By A Button Press.
Hey, I need help making the bg color of an autoshape change its color by pressing a button. I'm using Microsoft FrontPage and am quite new to html. I know how to press a button and change the document background color but can not figure out how to do this but with an autoshape. Here is the code I have used to change the document background color:
HTML Code: <div style="width: 110; height: 19; position: absolute; left: 903; top: 6"> <font size="2" face="Verdana,Arial,Helvetica,Sans Serif"> <input type="button" name="colr" onclick="document.bgColor='#0000FF'" style="color: #0000FF; width: 18; height: 18; border: 3px outset #0000FF; background-color: #0000FF"> <input type="button" name="colr" onclick="document.bgColor='#00FF00'" style="width: 18; height: 18; color: #00FF00; border: 3px outset #00FF00; background-color: #00FF00"> <input type="button" name="colr" onclick="document.bgColor='#FFFFFF'" style="width: 18; height: 18; color: #FFFFFF; border: 3px outset #FFFFFF; background-color: #FFFFFF"> <input type="button" name="colr" onclick="document.bgColor='#FFFFFF'" style="width: 18; height: 18; color: #FFFFFF; border: 3px outset #FFFFFF; background-color: #FFFFFF"> </div> It says document.bgcolor= ect but I cannot figure out the name of the autoshape so am not sure, in the html I think it only says the ID of the autoshape but do not know where to go from there. Please try and help and thanks in advance. Similar TutorialsI am creating a website that has a search button with an image. I would like to know if there is some simple code that I can include that would display the same basic image with a different color when the user mouses over the button. Here is the code: <FORM name="searchform" onSubmit="return validateSearch();" METHOD="POST" ACTION="search_results_lt.asp"> <INPUT TYPE="text" NAME="Search" VALUE="" SIZE="20" > <INPUT TYPE=IMAGE SRC="images/search_button.gif" Name="SearchButton" Value="Submit"> </FORM> **** Thanks for your help, Robin Hello Im creating a IE Mobile website, which has limited CSS capabilities ( see http://blogs.msdn.com/windowsmobile/...es/213771.aspx ) and jscript capabilities( http://msdn.microsoft.com/library/de...ects2_jrzu.asp ) I have been able to change the buttons color and my current version I have the following code that changes the page background color when a button is focused. I just want the buttons to change color when the focus is on it and when no longer focused goes back to normal, so the user knows they have moved to another button. <HEAD><title>MySite</title> <SCRIPT TYPE="text/javascript"> <!-- function setbg(color) { document.bgColor=color; document.body.style.backgroundColor=color; } //--> </SCRIPT> </HEAD> <BODY> <INPUT TYPE="BUTTON" NAME="Btn1" VALUE="1" onFocus="setbg('red')" > <INPUT TYPE="BUTTON" NAME="Btn1" VALUE="1" onFocus="setbg('black')" > </BODY> </HTML> Any suggestion on how to change just button color upon mouseover and mouseout? Well thanks for any help 1 can extend! Example. On the index.html page are 3 buttons. Button 1 navigates to Page1.html Button 2 navigates to Page2.html Button 3 etc etc. Now what I want is when the person decides to go to: Page1.html. he will press Button1.png. He will hear a ding sound ( ding.mp3 ) and then be sent to Page1.html Page2.html he will press Button2.png. He will hear a clank sound (clank.mp3 )and then be sent to Page2.html Page3.html he will press Button3.png. He will hear a bang sound (bang.mp3 )and then be sent to Page3.html. So what I need to know is how to make 1 event do 2 things. Or heck seems like 1 event is doing 2 things. If you write me a code example. Please use the button names and sound files Ive used in the above example. if you use something like "soundfilegoeshere" ill get confused. Thanks for the time. hi all how do i change color for this code its for php tags Code: echo 'Not bad, you scored average'; i want it to be red thanks hey hotties, I need to know how to get this address line aligned to the right and colored yellow, please help me im already a month behind, any help will be greatly appreaciated. luv ya! Tiff here it is: tell me what i did wrong please! <!--Address--> <td width="620" height="15" colspan="3"; valign="right" style="background-image: url(back2.jpg)"; font-family: sans-serif; font-size: 0.7em"; color: rgb(255,255,0)">dHome Inc. 734 Whisper Lane Ashton, MN 38715 1 (800) 555-7487 </td> </tr> </table> </body> </html> Heya.. Plz temme how 2 chaNge the color of any link...lik if link color iz blue n i wnt to change it in red color..! In between tis link i want to add the code that change the color-- $html .= '<a href="'.$this->link('view',$question->id).'">Q)'.$question->question.'</a>'; 2 ezy is tis 4 u guys na Tc! I'm a SEO guy that knows HTML but my client wants me to center the blue box then make it white. Now, I didn't design the site - but I looked at the code - the box is centered in the code and the bg is white - but if you look at the page, it doesn't look centered and the bg is blue. She has used a WysiwygEZ to edit - I tried both and I can't get it centered or get the table bg white. Here's the site: http://www.pamolder.com/eventsandpress.php Hi everyone, I have been trying to change the colors around on this template ( http://www.oswd.org/design/preview/id/1876 ) but I cannot figure out how to change the dark blue background (the top color and bottom color) or the greyish color for the tabs. I can get part of the tabs to change color using my editor but even if I change each individual tab, the background color for that section is still the grey color. I have Dreamweaver and also Nvu as an editor and I'm just doing this to help a friend, so any help from you guys would be GREATLY appreciated. Thank you very much! Is it possible, and if so - how do I change color of an image using html. For example: HTML Code: <img src="http://i41.tinypic.com/30x7r49.png" border="0" color="blue /> But that doesn't work. I searched Google and found nothing. Any Solutions? Thank you in advance. Hello, I'm trying to change the text color within a <li> tag in order to display a red "*Updated*" text since we have updated step 3 and want the user to notice it. I've tried using div but it ends up putting the text after "Updated" on a new line instead of on the same line like I want it. Thank you for any help! Code: div.u1{ font-size:12px; color:red; } Code: <ol> <li>Enter your address in the box below</li> <li>Please check location</li> <li> <div class ="u1">*Updated*</div>For more info...</li> </ol> Yeah so I'm probably doing something incredibly stupid and I've just been staring at this for too long and can't see it... Go to: http://test.rent2ownsb.com/south_ben...properties.php There, under Additional Options for the properties you will see links. All I want to do is change the link color to black. That whole thing is inside a div class .property-middle So I have a css rule .property a to color black (it's near the end in my stylesheet, http://test.rent2ownsb.com/css/style.css) SO WHY IN THE WORLD ISN'T IT TURNING BLACK??? Thank you in advance for recovering my sanity. this is in style... .scrollright { width:0; height:0; border-left-width: 20px; border-left-style: solid; border-left-color: #33ccff; border-top: 10px solid transparent; border-bottom: 10px solid transparent; } this is where I make the thing on the page... <table style="position:absolute; z-index:-3; top:240px; left:1088px"> <tr> <td class="scrollright" onmouseover="this.style.borderLeftColor='#84DFC1';" onmouseout="this.style.borderLeftColor='#33ccff';" > </td> </tr> </table> the triangle is there the dang thing just wont change color...what gives??? I have this table that displays requests. The number of proposals is green. I need to make the request ID next to that red. How do I do that? $html .= "<tr>"; (number of proposals is green) $html .= "<td valign='top' height='20' style='border-top:1px solid #000000;color:#006600;padding-left:10px;' class='gtextNormal'>".$get_proposals."</td>"; $html .= "<td valign='top' height='20' style='border-top:1px solid #000000;' class='gtextNormal'>"; )This needs to display as red) $html .= "<a href='show_bids.php?id=$row[reqid]' class='gtextNormal'>$row[reqid]</a>"; $html .= "</td>"; Hey guys. This is my coding, below, for a form on my site. It's just the default white color (and is too bright for my site's color scheme). Is there any way I can change the color to grey or something else?? THanks in advance!! <form action="http://www.xxx.com/xxx/xxx/xxx.php?group=2" method="post"> <div align="center" style="height:30px;"><font size="1px" color="999999" face="Arial"><b>enter your email address and your info will be emailed to you</b></font></div><div align="center" style="height:30px;"><input name="email" value=" " /></div><div align="center"><input type="image" src="buttons.jpg" size="25" value="Find password" /></div> </form> okay so I'm using tables, (please don't lecture me on CSS) I'm doing this for a friend, and you would probably woun't do much for how much it pays. anyways so I'm using old fashioned tables in dreamweaver, I'm using a template and applying it to the html pages. In Dreamweaver, the links are the color that I want..grey,,,but when I upload them to the web, they go purple? or maybe it's the default blue. This is what I've done: 1) change them in the page properties in the template page -no good 2) attempt some basic css, with the automatic css selector in dreamweaver, uing a:link, a:hover etc, and applying it to the text --no good so can I change it in the code somewhere? or what??? no rebuilding and doing it in CSS is not an option, I don't know enough about it yet, Please help: www.altmedschools.com Can someone help me out. I need to know how to change the font color without using the deprecated <font> tag. Here is a sample of my top <body> tag. </head> <body style="color: (#0082A6); background-color: white" <h1 Class="centeralign">Lance Laughlin</h1> <br /> How would i change the font of the text in the <h1> tag? Thanks I was wondering how one would change the colors of text in a google advertisement.. I'm lost as to how it would be done.. Hi, I am trying to change the color of text inside the <tr> but only the text color changes but not hyperlink text color. I do not want to add style tag inside <td> or in <a> as i change the color of the row text only in certain conditions. Please could someone help me on how to change the hyperlink color inside <tr> Here is my sample code: HTML Code: <tr style="color:blue;"> <td> Some Text </td> <td> <a href="" class="folderLink" onclick="openTask();"> AccountNumber </a></td> </tr> I tried <tr style ="color:blue;link-color:blue;"> but didn't work as i am not sure of the syntax Hi, I have a web page which displays a article. Some of the words in the article are highlighted in different colors depending on how important they are. Now, I need to select some words, and click a button on the page, to change the color of those words into different color. Can anyone give me some idea how to approach this? I googled, but didn't find any information on this problem. Thanks!!!! at the moment the text is white and the background of the data area in the form is white too meaning people can't see what they type in. can someone please help so that they can see what they are typing in? here's the webpage; http://www.myspace.com/blissneso and here's the code; <BR><BR><form method="post" action="http://www.ymlp.com/subscribe.php?blissneso"> <table border="0"> <tr> <td colspan="2"><img src="http://img404.imageshack.us/img404/9911/tile18gk.jpg" alt="title" /></td> </tr> <tr> <td>Name:</td> <td><input type="text" name="YMLP0" size="20"></td> </tr> <tr> <td>Email:</td> <td><input type="text" name="YMLP1" size="20"></td> </tr> <tr> <td colspan="2">Select your location:</td> </tr> <tr> <td>NSW:</td> <td><input type="checkbox" name="CAT2"></td> </tr> <tr> <td>VIC:</td> <td><input type="checkbox" name="CAT3"></td> </tr> <tr> <td>QLD:</td> <td><input type="checkbox" name="CAT4"></td> </tr> <tr> <td>WA:</td> <td><input type="checkbox" name="CAT5"></td> </tr> <tr> <td>SA:</td> <td><input type="checkbox" name="CAT6"></td> </tr> <tr> <td>TAS:</td> <td><input type="checkbox" name="CAT7"></td> </tr> <tr> <td>ACT:</td> <td><input type="checkbox" name="CAT8"></td> </tr> <tr> <td>NT:</td> <td><input type="checkbox" name="CAT9"></td> </tr> <tr> <td>NEW ZEALAND:</td> <td><input type="checkbox" name="CAT10"></td> </tr> <tr> <td>OTHER COUNTRY:</td> <td><input type="checkbox" name="CAT11"></td> </tr> <tr> <td colspan="2"><input type="submit" value="Submit"></td> </tr> </table> </form> thanks for any help in advance!!! |