473,413 Members | 1,798 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,413 software developers and data experts.

Editing appearance of form button

I use the following to create a button:

<form><input type=button value="See the Site Map"
onClick="self.location='sitemap.htm'"></form>

Is there a way to edit the code to accomplish any of the following?

1. Make the displayed text a two-line value, e.g., "See the" on one
line and "Site Map" on a new line.

2. Render the button itself in a different size or colors.

3. Make the text a different font or size or color, etc.

4. Insert images in place of the text.

I don't think it matters, but I edit using FrontPage 2003 on an XP Pro
machine. I'm hoping for compatibility with at least IE and Firefox.

Thanks for any advice you have. If there's somewhere online that
explains all this, just let me know that. I've spent a long time
looking already.

Nov 11 '05 #1
3 1266

Nick E. Name wrote:
I use the following to create a button:

<form><input type=button value="See the Site Map"
onClick="self.location='sitemap.htm'"></form>

Is there a way to edit the code to accomplish any of the following?

1. Make the displayed text a two-line value, e.g., "See the" on one
line and "Site Map" on a new line.
No there is not. However, you can place a marker so that it can be
parsed to have a two-line value. e.g.

value = "See the|Site Map" or value = "See the\nSite Map"
2. Render the button itself in a different size or colors.

3. Make the text a different font or size or color, etc.
For #2 and #3, this can be accomplished through the use of CSS.
4. Insert images in place of the text.
Take out the text, and replace with an image. For example:

before:

Image to my right. Image here. Image to my left.

after:

Image to my right. <img src = "path/image.jpg"> Image to my right.
I don't think it matters, but I edit using FrontPage 2003 on an XP Pro
machine. I'm hoping for compatibility with at least IE and Firefox.

Thanks for any advice you have. If there's somewhere online that
explains all this, just let me know that. I've spent a long time
looking already.


Nov 11 '05 #2

Nick E. Name wrote:
I use the following to create a button:

<form><input type=button value="See the Site Map"
onClick="self.location='sitemap.htm'"></form>

Is there a way to edit the code to accomplish any of the following?

1. Make the displayed text a two-line value, e.g., "See the" on one
line and "Site Map" on a new line.
No there is not. However, you can place a marker so that it can be
parsed to have a two-line value. e.g.

value = "See the|Site Map" or value = "See the\nSite Map"
2. Render the button itself in a different size or colors.

3. Make the text a different font or size or color, etc.
For #2 and #3, this can be accomplished through the use of CSS.
4. Insert images in place of the text.
Take out the text, and replace with an image. For example:

before:

Image to my right. Image here. Image to my left.

after:

Image to my right. <img src = "path/image.jpg"> Image to my left.
I don't think it matters, but I edit using FrontPage 2003 on an XP Pro
machine. I'm hoping for compatibility with at least IE and Firefox.

Thanks for any advice you have. If there's somewhere online that
explains all this, just let me know that. I've spent a long time
looking already.


Nov 11 '05 #3
In article <11*********************@g47g2000cwa.googlegroups. com>,
Jo******@gmail.com says...
I use the following to create a button:

<form><input type=button value="See the Site Map"
onClick="self.location='sitemap.htm'"></form>

Is there a way to edit the code to accomplish any of the following?

1. Make the displayed text a two-line value, e.g., "See the" on one
line and "Site Map" on a new line.

2. Render the button itself in a different size or colors.

3. Make the text a different font or size or color, etc.

4. Insert images in place of the text.


Why, if at all possible, would you do this with JavaScript? Try CSS.

--

Hywel
http://kibo.org.uk/
Nov 11 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Lindsey | last post by:
Hi I am wondering if anyone can help. We have a form used by a client to add news to a database, however at the moment the text edited is bog standard and the user can not bold or color the...
3
by: Nicolas | last post by:
I want to display in my application a PropertyGrid showing only the "Appearance" of a control (ie. textBox) so the user can change it. Bare with me, I'm new in csharp. Where do I go from:...
0
by: Sebi | last post by:
Hello All, I'm having problems, reading the new Values from CheckBox in a DataGrid. my Code Behind is C# I do exactly what other samples do, but I allways get the Initial Values instead of...
5
by: WestAussie | last post by:
Hello I'm new to .NET and have been working through some exercises to get a bit more fluent. I have no idea what I have done to cause command buttons to have their background appearance...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.