473,612 Members | 2,331 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

disguising links as buttons

Hello,

for a project I am currently working at, I have to use form-buttons
and normal links (a href...) in the same pages together. Both should
look the same. No problem with IE and Opera but I cannot get this to
work with Mozilla.

If anyone would like to give me an hint, he can find an example here:

http://www.wiesodenn.de/problem/problem.html

dummy1 and dummydummy2 are form-buttons, dummy3 is the href-link.

The text for the buttons and the links is generated with php and that
is the reason why Ido not want to use images with grafic text as
buttons.

Does anyone know how to make this work with the main browsers?

All three buttons should have the same size and that small border half
way round...

(by the way, I cannot check this on a Mac, I f anyone would be so
nice..., thank you)

Thank you in advance for any answer..

Klaus
Jul 20 '05 #1
17 4498
Klaus Schulz wrote:

http://www.wiesodenn.de/problem/problem.html

dummy1 and dummydummy2 are form-buttons, dummy3 is the href-link.

All three buttons should have the same size and that small border half
way round...


They all look pretty much the same in my Mozilla 1.3, except that the
first button is a bit smaller than the others.
Matthias

Jul 20 '05 #2
Klaus Schulz wrote:
for a project I am currently working at, I have to use form-buttons
and normal links (a href...) in the same pages together. Both should
look the same. No problem with IE and Opera but I cannot get this to
work with Mozilla.


Could you restructure the page such that dummy1 and dummy2 were not within
the form? If so you could then create little forms that just contained the
submit button:

<form action="dummy1" method="GET"><i nput type="submit"
value="dummy1"> </form>
That will work in all browsers that support forms. The downside is that
search engines, etc will not be able to follow the links and the links will
not be rendered correctly as links in a non-visual browser.

--
Chris Lambert (http://web.trout-fish.org.uk/)
Celibacy is not hereditary.
Jul 20 '05 #3
Tim
On Fri, 26 Sep 2003 14:21:29 +0200,
Klaus Schulz <kl****@yahoo.d e> wrote:
for a project I am currently working at, I have to use form-buttons
and normal links (a href...) in the same pages together. Both should
look the same.


Being deliberately deceptive is not in the interests of the user.

--
My "from" address is totally fake. The reply-to address is real, but
may be only temporary. Reply to usenet postings in the same place as
you read the message you're replying to.
Jul 20 '05 #4
Hello Chris,

On Fri, 26 Sep 2003 16:00:25 +0100, Chris Lambert
<ne**@trout-fish.org.uk> wrote:
Could you restructure the page such that dummy1 and dummy2 were not within
the form? If so you could then create little forms that just contained the
submit button:

<form action="dummy1" method="GET"><i nput type="submit"
value="dummy1" ></form>
Hmm, the whole application consits of a lot of pages. I think I could
do this on some of them, but on all? I have to try.
That will work in all browsers that support forms. The downside is that
search engines, etc will not be able to follow the links and the links will
not be rendered correctly as links in a non-visual browser.


This would be no problem, as the pages build an applictaion for a
customer in internet where only customer people will have account to
use the pages.

I will try to follow your advice.
Thank you.

Klaus
--
Mary Pickford
"Adding sound to movies would be like putting lipstick on the Venus de Milo."
Jul 20 '05 #5
Hello Matthias,

On Fri, 26 Sep 2003 15:12:42 +0200, Matthias Gutfeldt
<sa************ @gmx.net> wrote:
http://www.wiesodenn.de/problem/problem.html
All three buttons should have the same size and that small border half
way round...


They all look pretty much the same in my Mozilla 1.3, except that the
first button is a bit smaller than the others.


Yes, that is the problem. The button is smaller and the drawn right
hand border is not visible. For a proper layout, all the buttons need
to appear the same size. If the link on the button would have less
characters, the button would be more small.

Klaus
--
Always remember you're unique, just like everyone else.
Jul 20 '05 #6
Klaus Schulz wrote:
Hello,

for a project I am currently working at, I have to use form-buttons
and normal links (a href...) in the same pages together. Both should
look the same. No problem with IE and Opera but I cannot get this to
work with Mozilla.


CSS is your friend. Consider styling for both links and buttons.

--
William Tasso - http://WilliamTasso.com
Jul 20 '05 #7
On Sat, 27 Sep 2003 01:24:09 +0930, Tim <ad***@sheerhel l.lan> wrote:
Being deliberately deceptive is not in the interests of the user.


Normally I would agree, but this is going to be an application for a
closed circle of users. (Replacement for a software they used
locally).

I think (in this case only!) it would be more confusing for the user,
to explain why this here is a button and that there is a link ...

It is not meant for tricking the user but to give him something he
remenbers.

Klaus
--
William Shakespeare, Hamlet
Tis brief, my lord. As a woman's love.
Jul 20 '05 #8
Hello,

On Sat, 27 Sep 2003 10:45:45 +0100, "William Tasso"
<ne****@tbdata. com> wrote:
CSS is your friend. Consider styling for both links and buttons.


Yes, I tried, as you can see in the example, but I was unable to make
them look like they should.

Perhaps you can hint me the right way...

Klaus

--
When asked if you believe in God, you ask, "Which one?"
Jul 20 '05 #9
Klaus Schulz wrote:
Hello,

On Sat, 27 Sep 2003 10:45:45 +0100, "William Tasso"
<ne****@tbdata. com> wrote:
CSS is your friend. Consider styling for both links and buttons.


Yes, I tried, as you can see in the example, but I was unable to make
them look like they should.

Perhaps you can hint me the right way...


This is one I used recently:

#button {
margin:0;
display:inline;
color:#fff;
background-color:#f00;
text-decoration:none ;
font-family: tahoma;
font-weight:900;
border:1px solid #fff;
}
a.button {
color:#fff;
background-color:#f00;
text-decoration:none ;
font-size:1em;
font-weight:900;
font-family: tahoma;
padding: 0.5ex 1ex;
border:1px solid #fff;
}

I'd like to know what shortcomings it has - if any in your application.

--
William Tasso - http://WilliamTasso.com
Jul 20 '05 #10

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

Similar topics

4
56655
by: KS | last post by:
Im trying to prevent the user from clicking any other links on my page when the user have selected/clicked a href once. Sometimes it takes a while before the next page loads so some user will try clicking other links or the same link. I can prevent this when i use buttons by calling onclick and in a javascript getElementsByTagName("input") and then check the type to be type of "button" or "submit" which i then disable. It works. This also...
7
10549
by: Chris | last post by:
I'm using eight links listed horizontally as a menu on my site. I'm using font-variant:small-caps and they are padded so that they mimic buttons. My gripe is with the way IE handles the focus rectangle on these links. It insists on drawing this crazy shape that traces the text, which with small caps looks rather assinine. Firefox handles the same task very gracefully (yeah Gecko!) and I would like to force IE to do the same. The site...
32
81510
by: Mark Johnson | last post by:
You have an, a, anchor with href link. Can you use a stylesheet to effectively disable the link, so that you can't click on it; that it will appear simply as text?
14
4819
by: Eli | last post by:
I'm fairly unfamiliar with CSS, but want to develop a way to skin a web application by using stylesheets for everything, including all images. I have a set of images used as buttons - mostly for simple links rather than form input buttons. <a href="mypage.php?action=add&id=7"><img src="..." border="0"></a> <a href="mypage.php?action=delete&id=7"><img src="..." border="0"></a>
0
1374
by: Vladi | last post by:
Hello everybody, I have a asp.net 1.1 page which has the following controls: 4 Images whose src points to an image.aspx file which returns a different jpg from a DB 1 flash object on top of those which contains buttons with links embedded in them to another pages (each having the same layout, identical to the page I'm talking about). The transfer is realised with some url_get method in the flash. I don't know because I didn't make it and...
1
1388
by: Daniel Jung | last post by:
Hi I made a links list which looks like buttons. http://lingo.uib.no/v5/buttontest.html I'm stuck now. How do I get the black border right when the button is pressed? The thing is, buttons really have TWO borders, making it even more 3d-ish. So I had the links in spans with a thin dark grey border to wrap a container around the link, but it didn't work out.
16
14482
by: Frances | last post by:
<a href="#1"> <a name="#1"> this link is not working in FF (works fine in IE..) would appreciate thoughts/suggestions.. thank you.. Frances
3
1383
by: Nico | last post by:
I have an idea but don't know if it's possible, from a technical point of view. Imagine to have some text. Example "John and Mary go to the cinema." I'd like to have this kind of links. By selecting "John" I can go to: Link 1 (eg. page 1)
8
2340
by: DJA | last post by:
Hello, I site I designed has links that don't seem to work in mac IE 5.2. In my site I'm using CSS to imitate image buttons by using the background image property along with a little extra markup to make it work. When you mouse over the button the hover state is activated and the 'over' graphic is displayed, and the link url is displayed in the bottom left corner of the screen. When clicked, though, nothing happens and you are not...
0
8617
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8568
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8422
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7044
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6082
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4047
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4111
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2555
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1699
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.