473,545 Members | 2,041 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Image replacement - Can it be clickable?

I followed Dan Cederholm's image replacement tutorial, to replace a header
tag by a logo. The h1 is clickable if no CSS is applied but it I replace
it by the logo, the area isn't clickable anymore when I pass the mouse
over the logo. Is there a way to replace a link by an image that will
still be clickable?
Thanks,

--

Kerberos.

http://www.opera.com
http://www.freebsd.org
http://www.auriance.com
http://www.osresources.com
http://exodus.jabberstudio.org
Jul 21 '05 #1
53 4901
Kerberos <me@privacy.net > wrote:
I followed Dan Cederholm's image replacement tutorial, to replace a header
tag by a logo.
Is there a reason not to just have an image in there?
It's simpler and more accessible.
The h1 is clickable if no CSS is applied but it I replace
it by the logo, the area isn't clickable anymore when I pass the mouse
over the logo. Is there a way to replace a link by an image that will
still be clickable?


Yes. Make sure that the <a> element still exists and that it fills the
full area of the heading. display: block; takes care of the second
part. The first part depends on exactly how you're hiding the real
heading.

Steve

Jul 21 '05 #2

Steve Pugh wrote:
Is there a reason not to just have an image in there?
It's simpler and more accessible.


Actully using the image replace ment is very accessible if done right.

Jul 21 '05 #3
"logic_eart h" <Th****@gd-studio.com> wrote:
Steve Pugh wrote:
Is there a reason not to just have an image in there?
It's simpler and more accessible.


Actully using the image replace ment is very accessible if done right.


The people who promote it claim that it is but the reality is somewhat
different.

Look at a page that uses it with CSS on and Images Off. Some variants
try to solve that issue but seem to end up introducing other problems.

Steve

Jul 21 '05 #4
.oO(logic_earth )
Actully using the image replace ment is very accessible if done right.


_All_ image replacement techniques I've seen so far failed with CSS
on/images off. I don't consider that accessible.

Micha
Jul 21 '05 #5
Michael Fesser <ne*****@gmx.ne t> wrote:
Actully using the image replace ment is very accessible if done right.


_All_ image replacement techniques I've seen so far failed with CSS
on/images off. I don't consider that accessible.


You are behind the times:
http://www.mezzoblue.com/tests/revis...e-replacement/

The Gilder/Levin method works quite well.

--
Spartanicus
Jul 21 '05 #6
Spartanicus <me@privacy.net > wrote:
Michael Fesser <ne*****@gmx.ne t> wrote:
Actully using the image replace ment is very accessible if done right.


_All_ image replacement techniques I've seen so far failed with CSS
on/images off. I don't consider that accessible.


You are behind the times:
http://www.mezzoblue.com/tests/revis...e-replacement/

The Gilder/Levin method works quite well.


Breaks at larger font sizes - if the text version needs more space
than the background image then the text starts to leak out from under
the image. Setting overflow: hidden; fixes that but then we're back to
a position where it fails for CSS on, Images off.

Steve

Jul 21 '05 #7
Steve Pugh <st***@pugh.net > wrote:
The Gilder/Levin method works quite well.


Breaks at larger font sizes - if the text version needs more space
than the background image then the text starts to leak out from under
the image.


I know, that's why I said "quite well". But this does not constitute
"broken" in my vocabulary, I'd classify that merely as a cosmetic quirk.

I'm not a fan of image replacement techniques, I use only one instance
of it on the index page of my personal site. There it holds up up to
200% zooming, above that the text starts leaking out from under the
image.

The only reason I used it was to see how well it worked (or not), after
having used it the only valid reason for using it is imo if it is
imperative that the text is indexed by SEs.

The proper way remains specifying the image's text as alt content, but
I'm not aware of any SE that indexes alt content in this type of
construct:

<h1><img src="fancyheade r.png" alt="fancy header text"></h1>

I can imagine a (commercial) situation where indexing of the above by
SEs is vital.

--
Spartanicus
Jul 21 '05 #8
*Spartanicus* <me@privacy.net >:

The proper way remains specifying the image's text as alt content,
You can still have CSS image replacement with this (even without server-
or client-side scripting):
<http://webdesign.criss ov.de/temp/ciwas/image-replacement>.
but I'm not aware of any SE that indexes alt content in this type of
construct:

<h1><img src="fancyheade r.png" alt="fancy header text"></h1>


<h1><object data="fancyhead er.png">fancy header text</object></h1>

should be easier to parse for them, but you'll in turn have problems with
browsers.

--
Your ad here!
Jul 21 '05 #9
Christoph Paeper <ch************ **@nurfuerspam. de> wrote:
The proper way remains specifying the image's text as alt content,
You can still have CSS image replacement with this


You seem to think that I want image replacement, I do not. Image
replacement techniques are nasty hacks, the only valid reason I can
think of for using it is, as I mentioned, situations where it is
imperative that the text content is indexed by SEs. The fact that an
image's alt content isn't indexed by SEs is a flaw in current SEs, it's
not a flaw in the coding method.
<http://webdesign.criss ov.de/temp/ciwas/image-replacement>.


I fail to see the point of this, it's an image replacement technique
(bad), that doesn't fix the one practical problem that the proper
solution suffers from.

--
Spartanicus
Jul 21 '05 #10

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

Similar topics

14
35527
by: Jeff Gillingham | last post by:
I'm using a stylesheet to place a small 'background image' in the upper left corner of several pages. Is there a simple way of making that image a clickable link? Thanks.
3
2038
by: inonzuk | last post by:
Hi everyone, I'm new to javascript and have the following problem: I have two image buttons: 1) <td><a href="http://localhost/gamerules.php" target="mainwindow"><img onMouseOver="return changeRules()" onMouseOut="return changeRulesBack()" name="b_rules" src="images/b_rules.jpg" width=130 height=90></a></td> 2)
3
5552
by: crazychrisy54 | last post by:
Hi there I just wondered if there is any way using GD to insert a clickable button or some clickable text into a image? It is possible to create images for buttons but what if you want a clickable button *inside* another image. I don't know if this is along the right lines but the following code puts a image inside another image. Perhaps...
0
7473
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7661
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. ...
1
7433
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
5976
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...
1
5340
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...
0
4949
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3458
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...
1
1891
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
0
712
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.